POST
Send a text

Authorizations

Authorization
string
header
required

A project API key, alt_live_… or alt_test_….

Headers

Idempotency-Key
string

Up to 255 characters. Repeating a request with the same key replays the stored response for 24 hours; the same key with a different request is a 409.

Maximum string length: 255

Body

application/json
number_id
string
required
to
string
required
body
string
required
Maximum string length: 1600

Response

The text.

id
string
required

Keeps the stored msg_ prefix.

object
string
required
Allowed value: "text"
number_id
string
required
direction
enum<string>
required
Available options:
inbound,
outbound
from
string
required
to
string
required
body
string
required
segments
integer
required
status
enum<string>
required
Available options:
sent,
simulated,
received,
failed
created_at
string<date-time>
required
account_id
string | null
error_code
string | null
media
object[]