Skip to content

Send SMS

POST
/open/sms/send

The Send SMS (POST) API allows you to send bulk or single SMS messages to recipients across any network. The optional network parameter is available in Live mode. TELECEL is the default network. If you select MTN, messages are sent over MTN only when network approval is in place; otherwise, they fall back to TELECEL. This API requires X-API-VASKEY in the header for authentication. Before you begin, please make sure you've followed our Getting Started guide.

history

Request History

Your request history will appear here.

Body Params

typeintegerrequired

ID of the sms sending function. Must be 1.

senderidstringrequired

Your registered and approved Sender ID (max 11 chars).

networkstring

Network to use for SMS delivery.

messagesarrayrequired

An array of message objects.

Message 1

Responses

RESPONSE BODY
statusinteger
1 for success
codestring
SMS01
messagestring
Success
datanull
No extra data
gonull
Navigation hint
RESPONSE BODY
statusinteger
0 for failure
codestring
ASMS07
messagestring
Error message
datastring
Field causing error
gonull
Navigation hint
RESPONSE BODY
statusinteger
0 for failure
codestring
AIN01
messagestring
Authentication Error
datanull
No extra data
gonull
Navigation hint

Language

Credentials

X-API-VASKEY
curl --request POST \     --url 'https://api.moolre.com/open/sms/send' \     --header 'X-API-VASKEY: YOUR_SMS_X_API_VASKEY' \     --header 'Content-Type: application/json' \     --data '{  "type": 1,  "senderid": "",  "network": "TELECEL",  "messages": [    {      "recipient": "",      "message": "",      "ref": ""    }  ]}'

Response

Body

{  "status": 1,  "code": "SMS01",  "message": "Success",  "data": null,  "go": null,  "meta": {    "requestid": "req_c68f4c66115c26725c796242",    "notices": []  }}