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?, 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.