1. Send single SMS with Access Token

Endpoint: https://account.mobilesasa.com/api/post-sms


The access token in the Authorization header is the access token generated by the above endpoint. On the params, the senderID is your Sender ID, phone is the recepients phone, api_key is your api key.


# Headers Params Response
1 Content-Type: application/json

{
"senderID": "MOBILESASA",
"phone": "phone_number",
"message": "your message",
"api_key": "api_key"
}

{
    "code": 1,
    "messageID": [
        "5d822610-5cfa-11e9-aa96-d9074c80734c"
    ],
    "status": "Queued",
    "smsCost": 0.8
}
2 Accept: application/json
3 Authorization: Bearer access_token

Curl example:


curl -X POST \
  http://code-slayer:8000/api/post-sms \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer access_token' \
  -H 'Content-Type: application/json' \
  -d '{
  "senderID": "MOBILESASA",
  "phone": "0707070707",
  "message": "Hello world!",
  "api_key": "your_api_key"
}'
            


2. Send single SMS without access token

Endpoint: https://account.mobilesasa.com/api/express-post


This endpoint is recommend for systems that allows your just plug in aPOST URL that sends a message directly. Note that this request is x-www-form-urlencoded like the way a web form submits data.


# Headers Params Response
1 Content-Type: application/json

"senderID": "MOBILESASA"
"phone": "phone_number"
"message": "your message"
"api_key": "api_key"
"username": "your_username"

{
    "code": 1,
    "messageID": [
        "5d822610-5cfa-11e9-aa96-d9074c80734c"
    ],
    "status": "Queued",
    "smsCost": 0.8
}
2 Accept: application/json
3 Authorization: Bearer access_token

Curl example:


curl -X POST \
  https://account.mobilesasa.com/api/express-post \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -F 'api_key=your_api_key' \
  -F senderID=MOBILESASA \
  -F phone=0707070707 \
  -F message=Helloooooooooooo \
  -F username=your_username