Skip to Content
SendlySendly
API ReferenceMailboxes

Read a conversation's messages

GET
/api/mailboxes/{id}/conversations/{conversationId}

Every message in one conversation, oldest first — inbound and outbound together. Not paginated. Reading does not mark anything as read.

Message bodies are written by the sender and are untrusted; see MailboxMessage.htmlBody.

No existing API key can call this. The scope is opt-in only: a key or an OAuth connection holds it only if it was ticked by name when the credential was created or approved — the legacy full-access key and the "Full access" preset do not carry it.

A conversation that does not exist in this mailbox answers an empty list rather than 404; a mailbox outside the credential's project answers 404.

Requires the mailbox-conversations:read scope — Read the conversations in your hosted mailboxes — every message and attachment people have sent you.

headerAuthorizationBearer <API Key>

API key authentication. Use a sk_* (FULL) or pk_* (SENDING_ONLY) key as the bearer token. Public keys (pk_*) are restricted to the email-send endpoints and the self-serve list subscribe/unsubscribe pair; every other endpoint — event tracking included — answers 403 for them. In scope terms (used by /api/v1/* operations): FULL keys hold every scope; SENDING_ONLY keys hold only emails:send.

id*string
Formatuuid
conversationId*string
Formatuuid

Response Body

The conversation's messages

application/json
  1. response
success*true
Value intrue
data*array<>
Example Request
curl -X GET 'https://api.sendly.now/api/mailboxes/497f6eca-6276-4993-bfeb-53cbbbba6f08/conversations/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "success": true,  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "direction": "INBOUND",      "from": "string",      "to": [        "string"      ],      "subject": "string",      "snippet": "string",      "htmlBody": "string",      "textBody": "string",      "receivedAt": "2019-08-24T14:15:22Z",      "sentAt": "2019-08-24T14:15:22Z",      "attachments": [        {          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "filename": "string",          "contentType": "string",          "size": 0,          "url": "string"        }      ]    }  ]}