List Inbox Thread Emails
list-inbox-thread-emailsPurpose: List the emails in one Resend inbox thread, oldest first, without their bodies.
Instructions
Purpose: List the emails in one Resend inbox thread, oldest first, without their bodies.
NOT for: Reading a message's body (use get-inbox-thread-email). Not for the thread's folder, labels or read state (use get-inbox-thread, which returns them with the first page of emails).
Returns: For each email: its email ID, direction (inbound or outbound), from, to, subject, received_at, read state, and how many attachments it carries.
When to use: You need the next page of a long thread after get-inbox-thread, or only the emails of a thread. A message's ID IS the email ID that get-inbox-thread-email, reply-to-inbox-thread-email, and forward-inbox-thread-email take as their "emailId". This endpoint is paginated: when more emails exist, pass the last email's ID back as "after" for the next, newer page. When paging backward with "before", pass the first email's ID back as "before".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Email ID after which to retrieve more (the next, newer page). Cannot be used with "before". An ID that is not a message of this thread returns a 404. | |
| limit | No | Number of emails to retrieve. Default: 20, Max: 100, Min: 1. Emails are oldest first. | |
| before | No | Email ID before which to retrieve more (the previous, older page). Cannot be used with "after". An ID that is not a message of this thread returns a 404. | |
| inboxId | Yes | Inbox ID | |
| threadId | Yes | Thread ID |