API reference
POSTRequires Bearer token
Send SMS or WhatsApp
/api/notifications/sms
Queue an SMS or WhatsApp message. `channel` is `sms` or `whatsapp`. Phone numbers must start with `+`.
Path parameters
This endpoint has no path parameters.
Query parameters
This endpoint has no query parameters.
Request body
| Field | Type | Description |
|---|---|---|
channel Required | string | `sms` or `whatsapp`. e.g. "sms" |
phone_number Required | string | Recipient in international format. e.g. "+2250700000001" |
message Required | string | Message body (max 255 characters). e.g. "Your code is 00990" |
Responses
| Status | Meaning |
|---|---|
| 202 | See the example response. |
| 500 | See the example response. |