Send an SMS message to a phone number. Messages are sent via the Surge SMS API and queued for delivery.
API key authentication. Include your API key in the Authorization header as: Authorization: Bearer <your-api-key>
SMS message details
Recipient phone number in E.164 format.
"+17189153182"
The text message to send. Must not be empty.
"Hello from OpenMic!"
Sender phone number in E.164 format. Optional — defaults to your account's Surge phone number if not provided.
"+16625658792"
SMS queued for delivery
Unique message identifier.
"msg_01kpbgtyntfktvzseh0ykcmqm4"
The phone number the message was sent from.
"+16625658792"
The phone number the message was sent to.
"+17189153182"
The message body that was sent.
"Hello from OpenMic!"
The delivery status of the message.
queued "queued"