Skip to main content
POST
/
api
/
v1
/
sms
Send SMS
curl --request POST \
  --url https://api.torpedo.co.mz/api/v1/sms \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "to": "+258841234567",
  "body": "Your verification code is 482910. Expires in 10 minutes."
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "status": "queued"
  }
}

Authorizations

X-API-Key
string
header
required

Prefix tor_ followed by a base64url-encoded random key. Obtain one from POST /api/v1/workspaces or POST /api/v1/auth/keys.

Headers

Idempotency-Key
string

Unique key to prevent duplicate sends on retry

Body

application/json
to
string
required

Recipient phone number in E.164 format (Mozambican numbers only)

Example:

"+258841234567"

body
string
required

Message text

Required string length: 1 - 1600
Example:

"Your verification code is 482910. Expires in 10 minutes."

Response

Message queued

data
object