Skip to content

Approve Sender ID

POST
/open/sms/status

Approve or reject registered Sender IDs.

warning

Permission Required

You must be granted the required permissions to approve or update Sender IDs. Without the necessary authorization, requests will fail with a 400 Permission Denied (ASMQ09) error.

history

Request History

Your request history will appear here.

Body Params

typeintegerrequired

ID of the approve sender ID function. Should be 6.

senderidsarrayrequired

An array of sender ID approval objects.

Sender ID 1

Responses

RESPONSE BODY
statusinteger
1 for success
codestring
ASMQ07
messagestring
Sender IDs updated successfully.
dataarray
Array of updated sender ID objects
idstring
The unique ID of the sender ID entry.
senderidstring
The sender ID name.
approvalstring
The approval status (e.g. Approved, Pending, Rejected).
whitelistedboolean
Whether the sender ID is whitelisted.
gonull
null
RESPONSE BODY
statusinteger
0 for failure
codestring
ASMQ09
messagestring
You do not have permission to update Sender IDs. Contact Customer Support.
datastring
The field causing the error (e.g., senderid).
gonull
null

Language

Credentials

X-API-VASKEY
curl --request POST \     --url 'https://api.moolre.com/open/sms/status' \     --header 'X-API-VASKEY: YOUR_SMS_X_API_VASKEY' \     --header 'Content-Type: application/json' \     --data '{  "type": 6,  "senderids": [    {      "senderid": "",      "approve": 0    }  ]}'

Response

Body

{  "status": 1,  "code": "ASMQ07",  "message": "Sender IDs updated successfully.",  "data": [    {      "id": "14",      "senderid": "Dummy",      "approval": "Approved",      "whitelisted": false    },    {      "id": "13",      "senderid": "SmartSMS",      "approval": "Rejected",      "whitelisted": false    }  ],  "go": null,  "meta": {    "requestid": "req_c68f4c66115c26725c796242",    "notices": []  }}