Table of Contents

Interface IEmailLogCollectionResource

Namespace
Mailtrap.EmailLogs
Assembly
Mailtrap.Abstractions.dll

Represents the email logs collection resource for an account.

public interface IEmailLogCollectionResource : IRestResource
Inherited Members

Methods

List(EmailLogsListFilter?, string?, CancellationToken)

Lists email logs with optional filters and cursor-based pagination.

Task<EmailLogsListResponse> List(EmailLogsListFilter? filter = null, string? searchAfter = null, CancellationToken cancellationToken = default)

Parameters

filter EmailLogsListFilter

Optional filter. When null, no filter query params are added.

searchAfter string

Optional cursor (message_id UUID from previous response's next_page_cursor) for the next page.

cancellationToken CancellationToken

Token to control operation cancellation.

Returns

Task<EmailLogsListResponse>

Response with messages, total count, and next page cursor.