Table of Contents

Interface IInboundThreadCollectionResource

Namespace
Mailtrap.Inbound
Assembly
Mailtrap.Abstractions.dll

Represents the inbound thread collection resource for an inbox.

public interface IInboundThreadCollectionResource : IRestResource
Inherited Members

Methods

List(string?, string?, CancellationToken)

Lists conversation threads in the inbox matching search, with cursor-based pagination.

Task<InboundThreadsListResponse> List(string? lastId, string? search, CancellationToken cancellationToken = default)

Parameters

lastId string

Optional pagination cursor from a previous response's last_id.

search string

Optional search term.

cancellationToken CancellationToken

Token to control operation cancellation.

Returns

Task<InboundThreadsListResponse>

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

List(string?, CancellationToken)

Lists conversation threads in the inbox, with cursor-based pagination.

Task<InboundThreadsListResponse> 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<InboundThreadsListResponse>

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