Skip to main content
Threads group related messages into conversations. They are created automatically when messages are sent or received — you cannot create a thread directly. Threads are ordered by most recent activity.

List threads

List threads for a mailbox with cursor pagination, ordered by most recent message activity.

Path parameters

Query parameters

Response (200)

JSON

Code examples


Get thread

Get a single thread with all its messages (metadata only — no body content) inline.

Path parameters

Response (200)

JSON

Code examples


List populated folders

List the folders containing at least one accessible thread in the mailbox. Returns a sorted JSON array of folder names. Empty folders are omitted.
JSON
cURL

Move a thread

Move a thread to inbox, spam, or archive. Use a claimed agent API key for its own mailbox, or an admin API key. Omitting folder or passing null leaves the folder unchanged. You cannot set folder to blocked. Returns the updated ThreadResponse with 200 OK. An unsupported folder returns 422. A missing thread returns 404; insufficient access can return 403 or 404.
cURL

Delete thread

Delete a thread. Returns 204 No Content on success. Deleting a thread deletes the messages in it and frees their storage immediately — those bytes stop counting toward the inbox’s storage cap right away.

Path parameters

Code examples


Thread object

ThreadResponse (list items)

ThreadDetailResponse (single thread)

Includes all ThreadResponse fields plus: