Get clean message content
Changed onReturns deterministic clean JSON content for one message. Attachment output is metadata only; attachment contents are not parsed by this endpoint.
Request
- Base URL: https://app.sendmux.ai/api/v1
- URL: https://app.sendmux.ai/api/v1/mailbox/messages/{message_id}/content
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://app.sendmux.ai/oauth/authorize, token URL https://app.sendmux.ai/oauth/token, scopes: mailbox.read)
Path parameters
Message ID.
Query parameters
Body part to return. auto prefers text when available.
Maximum body characters to return before truncation.
When true, remove detected email signatures.
When true, remove quoted reply text.
When true, include links extracted from the body.
When true, include HTML content when available.
Header detail to include in the response.
Attachment detail to include. Contents are not returned.
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.
Headers
Weak ETag from a previous response. Returns 304 when unchanged.
Response
Clean message content
Example response
{
"meta": {
"request_id": "req_clxxxxxxxxxxxxxxxxxxxxxxxxx"
},
"data": {
"attachments": [
{
"content_type": "application/pdf",
"disposition": "attachment",
"download_url": "https://app.sendmux.ai/api/v1/mailbox/messages/msg_123/attachment-downloads/attref_abc123?download_token=...",
"filename": "invoice.pdf",
"size_bytes": 12345
}
],
"headers": {
"selected": {
"reply_to": [
{
"email": "agent@example.com",
"name": "Support"
}
]
}
},
"participants": {
"bcc": [
{
"email": "agent@example.com",
"name": "Support"
}
],
"cc": [
{
"email": "agent@example.com",
"name": "Support"
}
],
"from": {
"email": "agent@example.com",
"name": "Support"
},
"reply_to": [
{
"email": "agent@example.com",
"name": "Support"
}
],
"to": [
{
"email": "agent@example.com",
"name": "Support"
}
]
}
}
}Changes
- info
added the required property
///to the response with the status - info
added the required property
///to the response with the status
- info
- breaking
the
/response's property type changed from no type toobjectfor status - info
removed
subschema #2from the/response propertyallOflist for the response status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status
- breaking