Send an SMS

Sends an outbound SMS from the specified line. Requires that an inbound SMS was received from the destination number within the last 24 hours (conversation window compliance).

Authentication

AuthorizationBearer

Send as Authorization: Bearer <your-key>. Obtain keys from the portal — prefix sk_live_ for production, sk_test_ for sandbox.

Request

This endpoint expects an object.
line_idstringRequiredformat: "uuid"
ID of the line to send from
tostringRequired
Destination phone number in E.164 format
textstringRequired1-1600 characters
SMS message body

Response

SMS sent
idstring
Carrier message SID
line_idstringformat: "uuid"
tostring

Destination phone number (E.164)

textstring
Message body
statusstring
Carrier delivery status
created_atdatetime

Errors

400
Bad Request Error
401
Unauthorized Error
402
Payment Required Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
429
Too Many Requests Error
502
Bad Gateway Error