GET/inboxes/{inbox_id}/threads/{thread_id}/emails

List emails in a thread

Lists the messages in a thread, ordered from oldest to newest. Use after with the last message ID to retrieve a newer page, or before with the first message ID to retrieve an older page; pass only one cursor at a time.

5 parameters
inbox_idstringrequired
The UUID of the inbox containing the thread. An email address is not accepted.
thread_idstringrequired
The UUID of the thread whose messages you want to list.
limitintegeroptional
Number of messages to return. Must be between 1 and 100.
afterstringoptional
Message ID cursor; returns messages after this cursor. Use the ID of a message in the thread, in UUID format, and do not pass it with `before`.
beforestringoptional
Message ID cursor; returns messages before this cursor. Use the ID of a message in the thread, in UUID format, and do not pass it with `after`.

1 status code
200Returns an object with a `data` array of thread messages ordered from oldest to newest, and a `has_more` value indicating whether additional results are available.
objectstringrequired
Type of the response object.
has_morebooleanrequired
Indicates if there are more results available.
dataarray<object>required
The messages of the thread on this page, oldest first.

Error handling

The inbox_id path parameter and thread_id path parameter must be UUIDs identifying the target inbox and thread. limit must be between 1 and 100; use only one of after and before, with a UUID for a message in the thread as the cursor.