List mailbox messages
Changed onReturns a cursor-paginated list of messages for the authenticated mailbox. Requires Mailbox API access.
Request
- Base URL: https://app.sendmux.ai/api/v1
- URL: https://app.sendmux.ai/api/v1/mailbox/messages
- 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).
Filter to messages in this folder ID.
Filter to messages in this thread ID.
Full-text search query across message fields.
Filter by sender email address or display name.
Filter by To recipient email address or display name.
Filter by CC recipient email address or display name.
Filter by BCC recipient email address or display name.
Filter by subject text.
Filter by message body text.
Header name to match with header_value.
Header value to match with header_name.
Minimum message size in bytes.
Maximum message size in bytes.
Require this message keyword, such as $seen.
Exclude messages with this keyword.
Filter to messages after this ISO 8601 timestamp.
Filter to messages before this ISO 8601 timestamp.
When true, only return messages with attachments.
When true, only return unread messages.
Message field to sort by.
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
Message list
Example response
{
"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
}
],
"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"
}
]
}
]
}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