POST /send-sms endpoint.
Send to a single recipient
To send a message to one phone number, include theto, message, and sender fields in your request body.
Send to a contact group
Pass thegroup parameter with a group ID from your dashboard to send the same message to every contact in that group. You can find group IDs at https://app.sling.com.ng/panel/contact.
Send to a contact list entry
Pass thecontact parameter with a contact ID to send to a specific saved contact. Contact IDs are available in your contact list at https://app.sling.com.ng/panel/contact.
Parameters
Recipient phone number. Accepts 11-digit local format (
08012345678), country code format (2348012345678), or plus-prefix format (+2348012345678). Required unless contact or group is provided.The message text to deliver. Maximum of 3 SMS pages (approximately 480 characters).
Your registered sender ID. Register a sender ID on your dashboard before use.
Routing type for the sender ID. Accepted values:
transactional or promotional. Defaults to your sender ID’s default route when omitted.A publicly accessible URL on your server. Sling will send a
POST request to this URL when delivery status changes. See the callbacks guide for payload details.The ID of a contact from your Sling contact list. Use instead of
to to target a saved contact.The ID of a contact group. Use instead of
to to send the message to every contact in the group.Responses
Success
Errors
Tips
Store the
message_id from the success response if you need to check delivery status later using the GET /status/{message_id} endpoint.