Integrate with Our Seamless APIs
Easily Integrate Any Application With our Secure, Scalable & Powerful SMS APIs.
Getting started
MSMPUSHER provides a number of APIs to allow developers to integrate functionality into their systems. Below are the list of required request parameters
:
Key | Description |
---|---|
PRIVATEKEY |
This is your MSMPUSHER business account ID |
PUBLICKEY |
Visit user console to get your test or live API Public key |
SENDER |
The alphanumeric string that represents the name or number of the organization sending the message. |
NUMBERS |
The number you are sending the SMS to in E.164 format. For example 447700900000 . |
MESSAGE |
The message to be sent. |
NOTE: Don't use a leading +
or 00
when entering a phone number, start with the country code, for example 233501723292.
API V1.01
The API allows you to submit and receive MSMPUSHER messages. You can also get access to past messages and see your account profile.
The endpoint to use for this service is https://api.msmpusher.net/v1/send/
. The base URL cannot be used on its own; you must append a path that identifies an operation and you may have to specify some path parameters as well.
Authentication
To make successful API requests, you need a
verified account on MSMPUSHER
and to authorize the API calls using the following methods:
Key | Description |
---|---|
PRIVATEKEY |
This is your MSMPUSHER business account ID |
PUBLICKEY |
Visit user console to get your test or live API Public key |
You can generate, retrieve and manage your API Public keys in your MSMPUSHER
API Clients
page.
Send SMS
POST
https://api.msmpusher.net/v1/send
POST /v1/send HTTP/1.1 | |
Host: https://api.msmpusher.net | |
Content-Type: application/json | |
Cache-Control: no-cache | |
{ | |
"privatekey": "<PRIVATEKEY>", | |
"publickey": "<PUBLICKEY>", | |
"sender": "MSMPUSHER", | |
"numbers": "7700900000", | |
"message": "test_sms", | |
} |
Response to this command may be:
{
"type": "Message(s) Sent",
"status": 1000,
"sms_id": "MSG_TRANS_1603120251942",
"Receiver_numbers": "447820125799",
"error": Null,
"detail": All Messages was sent successfully
}
In case of error:
{
"type": "invalid_phone_number",
"code": 1005,
"error": "Invalid phone number",
"detail": null
}
Where:
- type and error (description of the error) can be found in the error types table,
- code represents http error
- detail is an additional info about the error
Code Snippets
Status Codes
Key | Description |
---|---|
1000 |
All Messages sent successfully |
1001 |
Not All Messages were sent successfully due to insufficient balance |
1002 |
Missing API Parameters |
1003 |
Insufficient balance |
1004 |
Mismatched API key |
1005 |
Invalid Phone Number |
1006 |
invalid Sender ID. Sender ID must not be more than 11 Characters. Characters include white space. |
1007 |
Message scheduled for later delivery |
1008 |
Empty Message |
1009 |
SMS sending failed |
1010 |
No mesages has been sent on the specified dates using the specified api key |