Skip to main content
GET
/
mailbox
/
threads
/
{thread_id}
/
content
Get clean thread content
curl --request GET \
  --url https://app.sendmux.ai/api/v1/mailbox/threads/{thread_id}/content \
  --header 'Authorization: Bearer <token>'
{
  "ok": true,
  "meta": {
    "request_id": "<string>",
    "thread_id": "<string>",
    "participants": [
      {
        "email": "agent@example.com",
        "name": "Support"
      }
    ],
    "states": {
      "thread_state": "<string>",
      "email_state": "<string>",
      "option_hash": "<string>"
    }
  },
  "data": [
    {
      "id": "<string>",
      "thread_id": "<string>",
      "subject": "<string>",
      "participants": {
        "from": {
          "email": "agent@example.com",
          "name": "Support"
        },
        "to": [
          {
            "email": "agent@example.com",
            "name": "Support"
          }
        ],
        "cc": [
          {
            "email": "agent@example.com",
            "name": "Support"
          }
        ],
        "bcc": [
          {
            "email": "agent@example.com",
            "name": "Support"
          }
        ],
        "reply_to": [
          {
            "email": "agent@example.com",
            "name": "Support"
          }
        ]
      },
      "dates": {
        "received_at": "<string>",
        "sent_at": "<string>"
      },
      "body": {
        "text": "<string>",
        "html": "<string>",
        "is_truncated": true,
        "truncated_at_chars": 123,
        "signature_stripped": true,
        "quotes_stripped": true,
        "extracted_links": [
          "<string>"
        ]
      },
      "headers": {
        "selected": {
          "message_id": [
            "<string>"
          ],
          "in_reply_to": "<string>",
          "references": [
            "<string>"
          ],
          "reply_to": [
            {
              "email": "agent@example.com",
              "name": "Support"
            }
          ]
        },
        "full": [
          {
            "name": "<string>",
            "value": "<string>"
          }
        ]
      },
      "attachments": [
        {
          "id": "<string>",
          "filename": "<string>",
          "content_type": "application/pdf",
          "size_bytes": 123,
          "disposition": "<string>",
          "content_id": "<string>",
          "download_url": "<string>"
        }
      ],
      "states": {
        "email_state": "<string>",
        "option_hash": "<string>"
      }
    }
  ],
  "pagination": {
    "has_more": true,
    "next_cursor": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Sendmux API key. Use a root API key for Management API routes, or a mailbox credential for Mailbox API routes. Obtain keys from the dashboard under API Keys.

Headers

If-None-Match
string

Path Parameters

thread_id
string
required

Query Parameters

part
enum<string>
Available options:
auto,
text,
html
max_body_chars
integer
Required range: 1 <= x <= 1000000
strip_signature
boolean
strip_quotes
boolean
include_html
boolean
include_headers
enum<string>
Available options:
none,
selected,
full
include_attachments
enum<string>
Available options:
none,
metadata
cursor
string
limit
integer
Required range: 1 <= x <= 100
sort
enum<string>
Available options:
asc,
desc
mailbox_id
string

Mailbox public ID to target when the credential grants access to more than one mailbox. Omit when the credential is scoped to exactly one mailbox.

Response

Clean thread content

ok
enum<boolean>
required
Available options:
true
meta
object
required
data
object[]
required
pagination
object
required