SMS Gateway

All request using HTTP GET method.

Endpoint URL:

  • http://jatinangor-service.com/v1/sms/
  1. Send SMS
  2. Inbox
  3. Status
  4. Error Code List

Send SMS

Endpoint URL: http://jatinangor-service.com/v1/sms/send

Parameter Input.
Field Data Type Mandatory Description
api_token string YES Authentication
phonenumber integer YES The recipient's number (Number Only | Min:7 | Max:13)
text string YES Text message (Max:160 character)

Request URL example:
http://jatinangor-service.com/v1/sms/send?api_token=YOURAPI&phonenumber=081234567&text=Hello+World

JSON Response example:

{
    "code": 0,
    "msg": null
}
                    

Inbox

Endpoint URL: http://jatinangor-service.com/v1/sms/inbox

Parameter Input.
Field Data Type Mandatory Description
api_token string YES Authentication
phonenumber integer YES The sender number (Number Only | Min:7 | Max:13)

Request URL example:
http://jatinangor-service.com/v1/sms/inbox?api_token=YOURAPI&phonenumber=081234567

JSON Response example:

{
    "code": 0,
    "msg": null,
    "results": [{
        "phonenumber": "081234567",
        "time": "1 jam yg lalu",
        "text": "Hi,,,"
    }]
}
                    

Status

Endpoint URL: http://jatinangor-service.com/v1/sms/status

Parameter Input.
Field Data Type Mandatory Description
api_token string YES Authentication
phonenumber integer YES The recipient's number (Number Only | Min:7 | Max:13)

Request URL example:
http://jatinangor-service.com/v1/sms/status?api_token=YOURAPI&phonenumber=081234567

JSON Response example:

{
    "code": 0,
    "msg": null,
    "results": [{
        "phonenumber": "081234567",
        "time": "2017-02-23 18:32:00",
        "status": "Delivered "
    },
    ...
}
                    

Error Code List

Code From Description
0 API Success
201 API Failed!
202 API Permission denied!
203 API User not active!
204 API Time out!
429 HTTP Too Many Attempts

Copyright © 2017 - PT. Web Solution - All right reserved