Sleengshort API Documentation
  • SMS API
    • Introduction
    • Send SMS
    • Send SMS (Multiple)
    • Send SMS (Multiple V2)
    • Status
    • Balance
    • Reporting
    • Error Codes
  • AIRTIME API
    • Introduction
    • Request Airtime
    • Status
Powered by GitBook
On this page
  1. SMS API

Send SMS

This allows you to send SMS using our API to a single recipient. Go through the instructions below

Send SMS Request

POST https://app.sleengshort.com/api/sms/send

This endpoint allows you to send an SMS to a single user

Note the msg_ids in the response can be used to track the delivery status on a request when notifications are sent to the callback URL.

Also, you must check which API-Key you're using while sending sms. A coop API-Key must be used when sending sms with a coop sender_id while an open API-Key must be used when sending sms with an open bind sender_id.

Headers

Name
Type
Description

X-Api-Key*

String

Your API Key

Request Body

Name
Type
Description

sender_id*

String

SMS sender ID

recipients*

String

MSISDN of the recipient in international format

msg*

String

SMS body ( < 905 characters)

type

String

Message format: 0: Flash SMS, 1: SMS delivers to inbox(default), 2: Unicode SMS – Chinese, Arabic etc

ext_msg_id

String

Unique Message ID

{
    "status": "ok",
    "description": "Request processed successfully",
    "msg_ids": "+23470******|0095fddc-9c59-4fde-b513-4ff7810e****"
}
{
    "status": "Bad Request",
    "description": "The request could not be understood by the server due to malformed syntax",
    "data": {
        "err_msg": "Insufficient balance, fund your account"
    }
}
PreviousIntroductionNextSend SMS (Multiple)

Last updated 1 year ago