Threads

Get a thread with its messages (fat get)

Returns the thread plus its **full** messages in chronological (`timestamp` ascending) order — the complete conversation an agent reads as memory. A `spam`-labeled thread requires the key's `label_spam_read` permission. Unknown/cross-tenant inbox or thread ids return an indistinguishable `404`.

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

Returns the thread plus its full messages in chronological (timestamp ascending) order — the complete conversation an agent reads as memory. A spam-labeled thread requires the key's label_spam_read permission. Unknown/cross-tenant inbox or thread ids return an indistinguishable 404.

Authorization

x-api-key<token>

The per-tenant API key. Sent as the x-api-key request header. The key is tenant-scoped.

In: header

Path Parameters

inbox_id*string

The inbox's opaque id (e.g. inb_…).

thread_id*string

The thread id.

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/inboxes/string/threads/string"
{  "id": "string",  "inbox_id": "string",  "subject": "string",  "preview": "string",  "senders": [    "string"  ],  "recipients": [    "string"  ],  "labels": [    "string"  ],  "message_count": 0,  "size": 0,  "last_message_id": "string",  "received_timestamp": "2019-08-24T14:15:22Z",  "last_activity_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "messages": [    {      "id": "string",      "thread_id": "string",      "inbox_id": "string",      "labels": [        "string"      ],      "from": "string",      "to": [        "string"      ],      "cc": [        "string"      ],      "bcc": [        "string"      ],      "reply_to": [        "string"      ],      "subject": "string",      "text": "string",      "html": "string",      "extracted_text": "string",      "extracted_html": "string",      "preview": "string",      "headers": {},      "in_reply_to": "string",      "references": [        "string"      ],      "size": 0,      "timestamp": "2019-08-24T14:15:22Z",      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z",      "attachments": [        {          "id": "string",          "filename": "string",          "content_type": "string",          "size": 0,          "content_disposition": "string",          "content_id": "string"        }      ]    }  ]}
{  "name": "string",  "message": "string"}
{  "name": "string",  "message": "string"}
{  "name": "string",  "message": "string"}