Skip to main content
POST

Authorizations

X-API-Key
string
header
required

Authenticate every request by passing your API key in the X-API-Key header. Keys are scoped to your organization hierarchy.

Headers

Idempotency-Key
string

Optional idempotency key: a unique string of 16-200 printable ASCII characters (a UUID is recommended). Retrying the write with the same key within 24 hours returns the stored response of the first call with an X-Idempotent-Replayed: true response header instead of executing it again. Reusing a key with a different request body returns 422 (IDEMPOTENCY_MISMATCH); a duplicate sent while the first call is still running returns 409 with a Retry-After header. Keys are scoped per endpoint and organization.

Required string length: 16 - 200

Body

application/json
organization_id
string
required
phone_number_ids
string[]
required

Sending phone number IDs (1-49). New conversations are spread randomly across them; each recipient is then pinned to one number (sticky sender).

Required array length: 1 - 49 elements
name
string
required
protocol
enum<string>
required
Available options:
sms,
mms
contact_list_ids
string[]
required
message_text
string
required
type
enum<string>

Project type. Optional for broadcast (the default).

Available options:
broadcast
channel
enum<string>
default:10dlc

Messaging channel. Defaults to 10dlc.

Available options:
10dlc,
toll-free
brand_id
string

Required when channel=10dlc; omit when channel=toll-free.

campaign_id
string

Required when channel=10dlc; omit when channel=toll-free.

toll_free_verification_id
string

Required when channel=toll-free; omit when channel=10dlc. Must match the verification behind the chosen phone_number_ids.

phone_number_id
string
deprecated

Deprecated. Use phone_number_ids. A single id is accepted and treated as a one-element phone_number_ids. Provide one of phone_number_ids or phone_number_id.

suppression_list_ids
string[]
media_ids
string[]

Contact field appended as a redirect query param on tracking links. Use 'phone', a contact custom-field name, or omit for no param (default). The field's name becomes the query-param key; the contact's value is the value.

Maximum string length: 64

Response

Project created. Status reflects completeness (awaiting_test when ready to test).

success
boolean
required
data
object
required