SMS Studio
← SMS Studio

Send a text from your app with the SMS API

When a customer books an appointment, your app can text them the time. Send a single SMS to their number and use the message ID to follow its delivery.

Create an account
Example request Β· cURL
curl 'https://api.sms.studio/api/v1/sms/send' \
  -H "Authorization: Bearer $SMS_STUDIO_API_TOKEN" \
  --data-urlencode 'to=12025550123' \
  --data-urlencode 'text=Your appointment is confirmed for Friday at 10 AM.'
Message preview
Your appointment is confirmed for Friday at 10 AM.

Send your first SMS

Open the API section in your account and save your token on your server as SMS_STUDIO_API_TOKEN. Replace the example number with your test phone number, including the country code, using digits only. For destinations outside the US and Canada, include from_name with a sender name of up to 11 letters or digits.

Read the send response

Check the JSON status field. When it is "Ok", SMS Studio has accepted the message. Save the id from the response. The excerpt below shows the fields you need to track it.

{
  "status": "Ok",
  "id": "d7160b84-90f9-4469-b012-ad2de7b599dd",
  "units": 1
}

Check delivery status

Set MESSAGE_ID to the ID returned by the send request. Use the same token to look up the latest status. A status of delivered means the carrier has reported delivery.

curl --get 'https://api.sms.studio/api/v1/sms/status' \
  -H "Authorization: Bearer $SMS_STUDIO_API_TOKEN" \
  --data-urlencode "message_id=$MESSAGE_ID"