Endpoint
Headers
| Header | Value |
|---|---|
Accept | application/json |
Authorization | Bearer {API_TOKEN} |
Content-Type | application/json |
Body parameters
Message text. Up to 3 pages.
Approved Truecaller 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 and the response includes the resolved status and credit_used. 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.Custom message ID.
ISO datetime to schedule the message.
Recipient (provide exactly one)
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.Saved contact ID.
Array of saved contact IDs.
Single group ID.
Array of group IDs.
Newline-separated raw phone numbers.
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).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 |
400 | Sender not approved for Truecaller |
