SMS Deliverer HTTP API Documentation

Source: Official Online Help https://www.smsdeliverer.com/onlinehelp/howto/httpapi/
Version: Ultimate Edition (HTTP API only available in Ultimate Edition)
Default Service Address:
http://127.0.0.1:8888Encoding: UTF-8
Authentication: Username & password authentication optional. Leave username and password empty string if authentication disabled.
General Notes
- GET Request: Parameters in URL query string. Chinese characters / spaces must be URL encoded (space =
%20). - Two POST formats
multipart/form-data: Single SMS and MMS messageapplication/json: Bulk multiple SMS messages
- Response: Returns message ID text on success. No structured JSON for exceptions, HTTP status code remains 200.
- Priority
prior: '1' means high priority, message is inserted at front of outbox queue for faster delivery. - Optional parameters
com,imsi: Assign specific modem by COM port or SIM IMSI. Leave empty for automatic device allocation.
API Index
GET Send Single SMS POST multipart/form-data Send Single SMS POST application/json Bulk Send Multiple SMS POST multipart/form-data Send MMS GET /getsiminfo Get All SIM Card Info GET /outbox Get Outbox Queue Statistics GET/POST /GETMDMSTAT Get Modem Device Status GET/POST /RESTARTMDM Restart Modem Device GET/POST /AIRMDM Enable/Disable Airplane Mode GET/POST /GETNUMBER Query SIM Card Phone Number GET/POST /DISABLEPORT Disable Specified COM Port
1. GET Send Single SMS
Request URL: http://127.0.0.1:8888
Method: GET
Query Parameters
Request Example 1 (Auto-generated ID)
GET http://127.0.0.1:8888?username=&password=&to=123456&message=hello%20world&prior=0&com=COM4&imsi=460123456000000
Response (auto generated message ID)
b4e320a4-704a-48fb-9015-1c27b8d57c85
Request Example 2 (Custom message ID)
GET http://127.0.0.1:8888?ID=99123345678&username=&password=&to=123456&message=hello%20world&prior=0&com=COM4&imsi=460123456000000
Response (custom ID returned as-is)
99123345678
2. POST multipart/form-data Send Single SMS
Request URL: http://127.0.0.1:8888
Method: POST
Content-Type: multipart/form-data
Form Fields
Request Example
POST http://127.0.0.1:8888 HTTP/1.1
Host: 127.0.0.1:8888
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryXXX
------WebKitFormBoundaryXXX
Content-Disposition: form-data; name="username"
test
------WebKitFormBoundaryXXX
Content-Disposition: form-data; name="password"
test
------WebKitFormBoundaryXXX
Content-Disposition: form-data; name="to"
13800138000
------WebKitFormBoundaryXXX
Content-Disposition: form-data; name="message"
hello world
------WebKitFormBoundaryXXX--
Response
58773d6c-d79e-489d-8c79-6d4f5508d762
3. POST application/json Bulk Send Multiple SMS
Request URL: http://127.0.0.1:8888
Method: POST
Content-Type: application/json
Body JSON Fields
Single message item:
Request Example
{
"username": "",
"password": "",
"messages": [
{
"id": "c7d05392-ecd6-4f99-8618-36fd6b39115f",
"to": "13800138000",
"message": "test message 1",
"com": "",
"imsi": "",
"prior": 0
},
{
"id": "ebf79454-8e55-4c9a-8387-af1570101b32",
"to": "13900139000",
"message": "test message 2",
"com": "",
"imsi": "",
"prior": 0
}
]
}
Response
OK
4. POST multipart/form-data Send MMS
Request URL: http://127.0.0.1:8888
Method: POST
Content-Type: multipart/form-data, supports file attachments
Form Fields
Response
xxxx-xxxx-xxxx
5. GET /getsiminfo Get All SIM Card Info
Request URL: http://127.0.0.1:8888/getsiminfo
Method: GET
Response Example
{
"status": "running",
"siminfo": [
{
"imsi": "370029417082291",
"com": "COM20",
"phoneno": "+8861563742346"
},
{
"imsi": "373029417082291",
"com": "COM21",
"phoneno": "+1031526856"
}
]
}
6. GET /outbox Get Outbox Queue Statistics
Request URL: http://127.0.0.1:8888/outbox
Method: GET
If queue function enabled, returns 6 comma-separated integers representing pending message count of six independent outboxes.
Response
300,0,0,0,0,0
7. GET/POST /GETMDMSTAT Get Modem Device Status
Request URL: http://127.0.0.1:8888/GETMDMSTAT?ID=xxxx
Method: GET / POST
Query specific ports: http://127.0.0.1:8888/GETMDMSTAT?ID=xxxx&COM20=&COM21=
portstat Status Code
Response Example
{
"id": "xxxx",
"status": "running",
"mdminfo": [
{
"com": "COM20",
"imsi": "370036417082292",
"phoneno": "+8861563742346",
"smslimit": "1,30",
"portstat": "0"
},
{
"com": "COM21",
"imsi": "650129417083393",
"phoneno": "+8861563742343",
"smslimit": "1,30",
"portstat": "1"
}
]
}
8. GET/POST /RESTARTMDM Restart Modem Device
Request URL: http://127.0.0.1:8888/RESTARTMDM?ID=xxxx
Method: GET / POST
Restart specific ports: http://127.0.0.1:8888/RESTARTMDM?ID=xxxx&COM13=&COM14=
result Code
Response Example
{
"id": "xxxx",
"status": "running",
"mdminfo": [
{ "com": "com13", "result": "0" },
{ "com": "com14", "result": "0" }
]
}
9. GET/POST /AIRMDM Enable/Disable Airplane Mode
Request URL: http://127.0.0.1:8888/AIRMDM?ID=xxxx
Method: GET / POST
Specify ports: http://127.0.0.1:8888/AIRMDM?ID=xxxx&COM13=&COM14=
Response Example
{
"id": "xxxx",
"status": "running",
"mdminfo": [
{ "com": "com13", "result": "0" },
{ "com": "com14", "result": "1" }
]
}
result=0 success, result=1 failed
10. GET/POST /GETNUMBER Query SIM Card Phone Number
Request URL: http://127.0.0.1:8888/GETNUMBER?ID=xxxx
Method: GET / POST
Specify ports: http://127.0.0.1:8888/GETNUMBER?ID=xxxx&COM13=&COM14=
Response Example
{
"id": "xxxx",
"status": "running",
"mdminfo": [
{ "com": "com13", "result": "0", "phoneno": "+8613800138000" },
{ "com": "com14", "result": "1", "phoneno": "" }
]
}
result=0 success, result=1 failed
11. GET/POST /DISABLEPORT Disable Specified COM Port
Request URL: http://127.0.0.1:8888/DISABLEPORT?ID=xxxx
Method: GET / POST
Specify ports: http://127.0.0.1:8888/DISABLEPORT?ID=xxxx&COM13=&COM14=
Response Example
{
"id": "xxxx",
"status": "running",
"mdminfo": [
{ "com": "com13", "result": "0" },
{ "com": "com14", "result": "1" }
]
}
result=0 success, result=1 failed
curl Test Examples
1) GET send single SMS
curl "http://127.0.0.1:8888?username=&password=&to=13800138000&message=hello%20world&prior=0"
2) JSON bulk SMS submit
curl -X POST http://127.0.0.1:8888 \
-H "Content-Type: application/json" \
-d '{
"username":"",
"password":"",
"messages":[
{"id":"msg001","to":"13800138000","message":"test1"}
]
}'
FAQ
-
Q: Garbled Chinese characters? A: All request content must use UTF-8 encoding. Chinese and spaces in GET query must be URL encoded.
-
Q: No JSON error response? A: Native API design returns plain message ID on success. No structured JSON for exceptions. Use callback webhook to get delivery status.
-
Q: Receiving duplicated callback messages? A: Your service endpoint did not return the matching message ID, software considers delivery failed and retries automatically.
-
Q: Cannot connect API server? A: Make sure you click Start inside SMS Deliverer to launch HTTP Server. This feature requires Ultimate Edition.
Want to get incoming SMS with real time? refer to HTTP callback