Postman collection
Try the API interactively with the Postman collection.Base URL
Authentication
Send your API token in theAuthorization header on every authenticated request:
| Header | Value |
|---|---|
Accept | application/json |
Authorization | Bearer {API_TOKEN} |
Content-Type | application/json (POST/PUT) |
Channels
The send endpoints support the following channels:| Channel | Slug | Endpoint | Notes |
|---|---|---|---|
| SMS | sms | /send-sms | Transactional, promotional, OTP |
| RCS | rcs | /send-rcs | Text, standalone card, carousel; fallback_sms and fallback_sms_sender for SMS fallback |
| Truecaller | truecaller | /send-truecaller | Branded verified messages; fallback_sms and fallback_sms_sender for SMS fallback |
whatsapp | /send-whatsapp | Approved business sender | |
email | /send-email | Transactional & promotional |
channel field.
Recipient targeting
Every send endpoint accepts one of the following recipient inputs:| Field | Type | Use case |
|---|---|---|
to | string | Single phone number or email |
contact | string | Saved contact ID |
contacts | array | Multiple saved contact IDs |
group | string | Single group ID |
groups | array | Multiple group IDs (use "standalone" for ungrouped contacts) |
numbers | string | Newline-separated raw phone numbers |
contacts, groups, numbers, etc.), the request is treated as a campaign and queued through Sling’s bulk job pipeline.
Common request fields
Beyond the recipient inputs, send endpoints share a common shape:| Field | Type | Description |
|---|---|---|
sender | string | Approved sender ID or sender ID record ID |
message | string | Message text content |
type | string | transactional, promotional, or otp |
callback | string | Public HTTPS URL that receives delivery updates |
reference | string | Custom message ID. Used in place of the auto-generated message_id |
send_on | string | ISO datetime to schedule the message for later delivery |
campaign_name | string | Label for multi-recipient campaigns |
mode | string | single or campaign (multi-recipient) |
Response convention
Successful single-recipient sends return:status: "fail" with a message or details field describing the cause:
Error codes
| Status | Meaning |
|---|---|
400 | Missing or invalid request fields |
400 | Insufficient credit |
400 | Invalid sender ID or no permission to use it |
401 | Missing or invalid Authorization header |
403 | Phone not verified for the account |
404 | Resource not found (group, contact, message ID) |
