API reference
POSTRequires Bearer token
Send SMS or WhatsApp
/api/notifications/sms
Queue an SMS or WhatsApp message. Delivery is asynchronous (202).
channelissmsorwhatsapp. WhatsApp uses the same body; the company must have the WhatsApp module enabled.phone_numbermust be E.164 and start with+.messageis limited to 255 characters.- The company SMS or WhatsApp quota is consumed before the job is queued. When the quota is exhausted the response is
429witherror_codeSMS_QUOTA_REACHEDorWHATSAPP_QUOTA_REACHED. - A user token is gated by the company notification modules. A license in read-only grace returns
403LICENSE_READONLY.
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 E.164 format (must start with +).e.g. "+2250700000001" |
message Required | string | Message body (max 255 characters). e.g. "Your code is 00990" |
Responses
| Status | Meaning |
|---|---|
| 202 | Queued for delivery |
| 429 | Quota exhausted |
| 401 | Missing or invalid Bearer token. |