Skip to main content

Endpoint

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

Headers

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

Body parameters

to
string
required
Recipient phone number. Accepts local format (08140363541), country code (2348140363541), or + prefix (+2348140363541).
message
string
required
SMS text content. Maximum 3 pages, approximately 480 characters.
sender
string
required
Registered Sender ID.
type
string
Sender ID route. Accepted values: transactional or promotional.
callback
string
Public HTTPS URL that receives delivery updates.
contact
string
Saved contact ID. Use instead of to.
group
string
Contact group ID. Use instead of to.

URL parameters

This endpoint also supports URL-based sending with api_token, to, message, and sender as query parameters.
https://app.sling.com.ng/api/v1/send-sms?api_token=YOUR_API_TOKEN&to=08140363541&message=Hello&sender=Sling

Response fields

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.
message_history
array
Prior delivery attempts for the message.
credit_used
number
Credits deducted for this message.

Error responses

StatusMeaning
400Missing or invalid request fields
400Insufficient credit