Table of Contents

Interface IInboundMessageCollectionResource

Namespace
Mailtrap.Inbound
Assembly
Mailtrap.Abstractions.dll

Represents the inbound message collection resource for an inbox.

public interface IInboundMessageCollectionResource : IRestResource
Inherited Members

Methods

List(string?, CancellationToken)

Lists received messages in the inbox, with cursor-based pagination.

Task<InboundMessagesListResponse> List(string? lastId = null, CancellationToken cancellationToken = default)

Parameters

lastId string

Optional pagination cursor from a previous response's last_id. null for the first page.

cancellationToken CancellationToken

Token to control operation cancellation.

Returns

Task<InboundMessagesListResponse>

A page of messages, with total count and next-page cursor.