Skip to Content
SendlySendly
API ReferenceMailboxes

Reply to a conversation

POST
/api/mailboxes/{id}/conversations/{conversationId}/reply

Answer the person who last wrote in, from the mailbox's own address, inside the same thread.

You cannot name the recipient or the sender. The recipient is the sender of the latest inbound message and the sender is the mailbox in the path. This is not sendMailboxMessage: that starts a new conversation with an address you name, under mailboxes:send; this one only ever answers someone who wrote first, under a separate scope, so holding one never implies the other.

Supply either a plain-text body or a structured React Email document. Sendly renders HTML and a matching plain-text alternative.

The mailbox's signature is opt-in per send. includeSignature defaults to false; set it to true to have Sendly add the saved signature under your text and above the quoted original, in both parts.

Refusals worth handling by name:

  • 422 UNPROCESSABLE — the thread has no inbound message to answer, or the mailbox is not provisioned.
  • 422 SEND_REFUSED — the recipient is suppressed or the project may not send.
  • 429 SENDING_LIMIT_REACHED — a daily or account sending limit; wait the Retry-After and retry.
  • 429 BILLING_LIMIT_EXCEEDED — the plan's monthly sending quota is spent (error.next names upgrade_plan, no Retry-After); upgrade the plan.
  • 502 JMAP_SUBMISSION_FAILED — the mail server refused the submission. Nothing was sent.
  • 409 SEND_NOT_RECORDED — the reply WAS sent; Sendly could not write its record at that moment (error.details.submitted is true). Do not send it again.

A reply cannot be recalled once sent.

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.

Requires the mailbox-conversations:reply scope — Reply to conversations in your hosted mailboxes, from the mailbox's own address.

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
application/json
  1. body
body?string
Lengthlength <= 50000
Default""
document?

Brandable email rendered by React Email. Text is escaped; images/GIFs use public HTTPS URLs. Columns stack on phones. No HTML, scripts, or arbitrary CSS.

includeSignature?boolean

Add the mailbox's saved signature under the message. Default false: a body that already ends with a sign-off is sent exactly as written. When true and the mailbox has a signature, it is added to the HTML and the plain-text parts (above the quoted original on a reply); a body that already ends with the signature does not get a second one. The response's signatureIncluded says what happened.

Response Body

Reply submitted

application/json
  1. response
success*true
Value intrue
data*
Example Request
curl -X POST 'https://api.sendly.now/api/mailboxes/497f6eca-6276-4993-bfeb-53cbbbba6f08/conversations/497f6eca-6276-4993-bfeb-53cbbbba6f08/reply' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "success": true,  "data": {    "submitted": true,    "status": "queued",    "signatureIncluded": true  }}