List mailbox threads
Changed onReturns a cursor-paginated list of conversation threads for the authenticated mailbox. Filter by text, participant, folder, unread state, attachment presence, or date range.
Request
- Base URL: https://app.sendmux.ai/api/v1
- URL: https://app.sendmux.ai/api/v1/mailbox/threads
- 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)
Query parameters
Pagination cursor — the next_cursor from the previous response.
Maximum results (default 50, max 100).
Full-text search query across thread messages.
Filter by participant email address or display name.
Filter to threads with messages in this folder ID.
Filter to threads updated after this ISO 8601 timestamp.
Filter to threads updated before this ISO 8601 timestamp.
When true, only return threads with attachments.
When true, only return threads with unread messages.
Sort direction.
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
Thread list
Example response
{
"data": [
{
"last_message": {
"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
}
],
"bcc": [
{
"email": "agent@example.com",
"name": "Support"
}
],
"cc": [
{
"email": "agent@example.com",
"name": "Support"
}
],
"from": {
"email": "agent@example.com",
"name": "Support"
},
"keywords": [
"$seen",
"$flagged",
"agent_triaged"
],
"to": [
{
"email": "agent@example.com",
"name": "Support"
}
]
},
"participants": [
{
"email": "agent@example.com",
"name": "Support"
}
]
}
]
}Changes
- info
removed
subschema #2from the///response propertyallOflist for the response status - info
added
subschema #2to the///response propertyanyOflist for the response status
- info
- info
added the optional property
//to the response with the status
- info