Skip to main content

Endpoint

POST https://app.sling.com.ng/api/v2/send-sms

Headers

HeaderValue
Acceptapplication/json
AuthorizationBearer {API_TOKEN}
Content-Typeapplication/json

Body parameters

message
string
required
SMS text content. Up to 3 pages (approximately 480 characters).
sender
string
required
Approved Sender ID. Pass the sender label or sender ID record ID.
type
string
Sender ID route. Accepted values: transactional, promotional, otp. Defaults to transactional. Messages containing OTP or One Time are forced to transactional.
callback
string
Public HTTPS URL that receives delivery updates.
reference
string
Custom message ID. When provided, this value is used in place of the auto-generated message_id.
send_on
string
ISO datetime to schedule the message.
campaign_name
string
Label applied to multi-recipient campaigns.

Recipient (provide exactly one)

to
string
Recipient phone number. Accepts local format (08140363541), country code (2348140363541), or + prefix (+2348140363541).
contact
string
Saved contact ID.
contacts
array
Array of saved contact IDs.
group
string
Single group ID. Use 0 for standalone (ungrouped) contacts.
groups
array
Array of group IDs. Use "standalone" to include ungrouped contacts.
numbers
string
Newline-separated raw phone numbers.

Response fields

Single recipient

status
string
"success" when the message is accepted.
status_delivery
string
Delivery state, such as "delivered", "pending", or "failed".
message_id
string
Unique message ID. Use it with Message Status.
sender
string
Sender ID used for delivery.
message
string
Message text.
recipient
string
Normalized recipient phone number.
credit_used
number
Credits deducted for this message.

Multi-recipient

status
string
"success" when the campaign is accepted.
message_id
string
Bulk message ID, prefixed with m-.
sender
string
Sender ID used for delivery.
message
string
Message text.
credit_used
number
Total credits deducted for the campaign.
id
number
Bulk log ID for the campaign.

Error responses

StatusMeaning
400Missing or invalid request fields
400Insufficient credit
400Sender not approved for SMS
400Payload must contain to, contact, contacts, group, groups, or numbers
400Message contains a blocked keyword for the sender