Send SMS API

The Send SMS (POST) API allows you to send bulk or single SMS messages to recipients across any network. Note: This API requires X-API-VASKEY in the header for authentication.

Endpoint Information

POST https://api.moolre.com/open/sms/send

To test in sandbox, use https://sandbox.moolre.com/open/sms/send instead.

Request Parameters

ParameterTypeRequiredDescription
typeintegerYesID of the sms sending function. Must be 1.
senderidstringYesYour registered and approved Sender ID (max 11 chars).
messagesarrayYesAn array of message objects containing recipient, message, and optional ref.

Response Examples

200 - Success

SMS message(s) sent successfully.

{
  "status": 1,
  "code": "SMS01",
  "message": "Success",
  "data": null,
  "go": null
}

400 - Unapproved Sender ID

The Sender ID provided is not yet approved or registered.

{
  "status": 0,
  "code": "ASMS07",
  "message": "Sender ID is not approved, Please login on app.moolre.com and setup your Sender ID.",
  "data": "senderid",
  "go": null
}

401 - Authentication Error

The VAS Key provided is invalid or unauthorized.

{
  "status": 0,
  "code": "AIN01",
  "message": "Authentication Error",
  "data": null,
  "go": null
}

← Back to AI Documentation Index | View Full API Reference