Skip to main content
POST
/
v2
/
send-sms
Send SMS
curl --request POST \
  --url https://api.openmic.ai/v2/send-sms \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "from_number": "+16625658792",
  "to_number": "+17189153182",
  "message": "Hello from OpenMic! Here is your appointment link: https://example.com/book"
}
'
{
  "id": "msg_01kpbgtyntfktvzseh0ykcmqm4",
  "from_number": "+16625658792",
  "to_number": "+17189153182",
  "message": "Hello from OpenMic! Here is your appointment link: https://example.com/book",
  "status": "queued"
}

Authorizations

Authorization
string
header
required

API key authentication. Include your API key in the Authorization header as: Authorization: Bearer <your-api-key>

Body

application/json

SMS message details

to_number
string
required

Recipient phone number in E.164 format.

Example:

"+17189153182"

message
string
required

The text message to send. Must not be empty.

Example:

"Hello from OpenMic!"

from_number
string

Sender phone number in E.164 format. Optional — defaults to your account's Surge phone number if not provided.

Example:

"+16625658792"

Response

SMS queued for delivery

id
string

Unique message identifier.

Example:

"msg_01kpbgtyntfktvzseh0ykcmqm4"

from_number
string

The phone number the message was sent from.

Example:

"+16625658792"

to_number
string

The phone number the message was sent to.

Example:

"+17189153182"

message
string

The message body that was sent.

Example:

"Hello from OpenMic!"

status
enum<string>

The delivery status of the message.

Available options:
queued
Example:

"queued"