Package io.mailtrap.api.emaillogs
Interface EmailLogs
- All Known Implementing Classes:
EmailLogsImpl
public interface EmailLogs
API for listing and retrieving email sending logs.
-
Method Summary
Modifier and TypeMethodDescriptionReturns a single email log message by its UUID.list(long accountId, String searchAfter, EmailLogsListFilters filters) Returns a paginated list of email logs for the account.
-
Method Details
-
list
Returns a paginated list of email logs for the account.- Parameters:
accountId- account IDsearchAfter- optional cursor (message_id UUID from previous response next_page_cursor) for the next pagefilters- optional filters; pass null or empty to omit- Returns:
- paginated list with messages, total_count, and next_page_cursor
-
get
Returns a single email log message by its UUID.- Parameters:
accountId- account IDsendingMessageId- message UUID- Returns:
- the message with details and events, or throws if not found
-