Endpoint
Headers
| Header | Value |
|---|---|
Accept | application/json |
Authorization | Bearer {API_TOKEN} |
Content-Type | application/json |
Body parameters
Recipient phone number. Accepts local format (without country code, where applicable), country code without
+, or E.164 with + prefix — for example 08012345678, 2348012345678, +2348012345678, or +14155552671.Message text. Maximum 3 pages.
Registered Sender ID or brand name.
Sender ID route. Accepted values:
transactional or promotional.Public HTTPS URL that receives delivery updates.
When
true, the request waits for immediate processing. When false, the message is queued.When
true, Sling falls back to SMS if the message cannot be delivered over Truecaller.Sender ID used for the SMS fallback when
fallback_sms is true. For example, Sling while your Truecaller sender is Brand.Saved contact ID. Use instead of
to.Contact group ID. Use instead of
to.SMS fallback
Set
fallback_sms to true and Sling will re-send the message as a standard SMS if delivery over Truecaller is not possible. Use fallback_sms_sender to set the SMS Sender ID for that fallback (for example, Sling when your Truecaller sender is Brand).URL parameters
This endpoint also supports URL-based sending withapi_token, to, message, and sender as query parameters.
Response fields
"success" when the message is accepted.Unique message ID. Use it with Message Status.
Sender ID or brand name used for delivery.
Message text.
Normalized recipient phone number.
Credits deducted for this message.
Error responses
| Status | Meaning |
|---|---|
400 | Missing or invalid request fields |
400 | Insufficient credit |
