Inbox
POST
/inbox/chats/{id}/messages

Sends as the chat's sender account, or from the mailbox on an email chat (a reply in the same thread, to the address that last wrote). Email chats take text only for now: attachments or a voiceMessage on one is a 400.

Authorization

bearerAuth
AuthorizationBearer <token>

An API key created under Settings → API & Webhooks.

In: header

Path Parameters

id*string

Header Parameters

Idempotency-Key?string

Unique key per action (e.g. a UUID). Reusing it replays the first response instead of sending again, so a retry can't double-send. Recommended on all writes.

Lengthlength <= 255

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/inbox/chats/string/messages" \  -H "Content-Type: application/json" \  -d '{    "text": "Thanks for connecting! Happy to share more."  }'
{  "data": {    "ok": true,    "messageId": "string",    "campaignLead": {      "id": "string",      "status": "pending"    }  }}