Skip to content

Send Single SMS

Sending a single SMS is very easy and should take just a few seconds to integrate.

POST
/sms/send

Request Data

Headers

X-Api-Key
required
string
The API Key for your Workspace.

JSON Data

sender
required
string
Sender Name for the SMS.
recipient
required
string
format: E.164
Recipient Number (E.164 format) for the SMS.
content
required
string
The Content of the SMS to send.
sendAtUtc
string
format: date-time (ISO 8601)
The date (UTC) in ISO 8601 format for when the SMS should be scheduled. If not specified, the SMS will be sent immediately.

Response Data

JSON Data

id
string
format: long / int64
The SMS ID from Connect.
countryCode
string
Country code extracted from the phone number.

Integration Sample

Paste this in your favourite terminal to send your first SMS. Don’t forget to replace the things.

Sending with cURL
curl -X POST https://connect-api.divergent.cloud/sms/send \
-H "X-Api-Key: { API_KEY }" \
--json '{
"sender": "{ SENDER_NAME }",
"recipient": "{ RECIPIENT_NUMBER }",
"content": "{ CONTENT }"
}'