Skip to main content
POST
/
sms
/
v1
/
messages
Send an SMS message
curl --request POST \
  --url https://api.voyant.travel/sms/v1/messages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "to": "+14155551234",
  "body": "Your code is 123456",
  "from": "<string>"
}
'
{
  "data": {
    "id": "<string>",
    "organizationId": "<string>",
    "toNumber": "<string>",
    "fromNumber": "<string>",
    "body": "<string>",
    "segments": 123,
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "priceCents": 123,
    "providerMessageSid": "<string>",
    "providerStatus": "<string>",
    "errorCode": "<string>",
    "errorMessage": "<string>",
    "sentAt": "2023-11-07T05:31:56Z",
    "deliveredAt": "2023-11-07T05:31:56Z",
    "lastEventAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Voyant Cloud API token, passed as Authorization: Bearer <token>. Each token carries a fixed set of scopes; an operation rejects tokens missing its required scope.

Body

application/json
to
string
required

E.164 recipient.

Pattern: ^\+[1-9]\d{1,14}$
Example:

"+14155551234"

body
string
required
Required string length: 1 - 1600
Example:

"Your code is 123456"

from
string | null

Optional sender number or alphanumeric sender id.

Maximum string length: 20

Response

Message queued

data
object
required