Get Inbox Thread
get-inbox-threadPurpose: Get one thread in a Resend inbox: the thread itself plus the metadata of its emails, oldest first.
Instructions
Purpose: Get one thread in a Resend inbox: the thread itself plus the metadata of its emails, oldest first.
NOT for: Reading a message's body. This tool returns no html or text, because a whole conversation's bodies would flood the response. Use get-inbox-thread-email for one message's body.
Returns: The thread's id, subject, folder, labels and read state, then for each email its email ID, direction (inbound or outbound), from, to, subject, received_at, read state, and how many attachments it carries. Emails are paginated: when more exist, pass the last email's ID back as "after". When paging backward with "before", pass the first email's ID back as "before".
When to use: User wants to see a conversation, or you need a message's email ID. 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". Get the thread ID from list-inbox-threads or search-inbox-threads.
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: 100, 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 |