Skip to main content
POST
Send a message
Place an outbound message on your Comms line. Scope: comms_send

Request

Headers

Body parameters

string
E.164 destination phone number. Required unless conversation_id is set.
string
Existing conversation to continue. Required unless to is set.
string
required
Message text delivered to the recipient.
string
Optional: auto (default), sms, or imessage. auto lets the host pick a rail. If iMessage is rejected before anything leaves the phone (Android / not registered), Comms retries once as SMS on the same line. Timeouts and unknown sends do not fall back.
string
Same as the Idempotency-Key header. Either form is accepted.

Response

202 Accepted

First time this idempotency key is seen.

200 OK (duplicate)

Same idempotency key already processed — no second send.

Errors

Code samples

See also