---
# System prepended metadata

title: D51 web API Interface

---

# D51 web API Interface

## /cellular

<table>
    <tr>
        <th>URL</th>
        <th>Method</th>
        <th>Request Params (accesstoken)</th>
        <th>Response Params</th>
    </tr>
    <tr>
        <td>/getInfoWithNoAccessToken</td>
        <td> <b>GET</b> </td>
        <td>NULL</td>
        <td> <pre>
"status": 0,
"copsName": "",
"copsNameEng": "",
"batteryStatus": "Full",
"capacity": 100,
"regRat": 0, // 3.4.5G
"regState": 0,// Signal strength
"wifiStatus": "true", // 目前底層未開，先寫true
"smsCount": 14,
"maxCount": 100,
"unreadSms": "11",
"simState": 0,
"simPinState": 0,
"wifiFiveGSsid": "D51#5012xxxxx068",
"wifiTwoGSsid": "D51#5012xxxxx068_1",
"fiveGConnected": 3,
"twoGConnected": 0
</pre> </td></tr>
</table>


## /sms

<table>
    <tr>
        <th>URL</th>
        <th>Method</th>
        <th>Request Params (accesstoken)</th>
        <th>Response Params</th>
    </tr>
    <tr>
        <td>/list</td>
        <td> <b>GET</b> </td>
        <td> <pre>
“currentPage”:1,
“pageSize”:10</pre></td>
        <td> <pre>
"status": 0,
"message": "RSP_CM_GET_USMS_LIST",
"data": {
    "totalSmsCount": 10,
    "smsList": [
        {
            "index": 1,
            "phoneNumber": "0911517247",
            "time": "11/08/2019 10:59:46",
            "message": "Hello, this is your test SMS.",
            "isRead": true,
            "smsIndexUnique": 1
        }
    ]
}</pre> </td>
    </tr>
    <tr>
        <td>/delete</td>
        <td> <b>POST</b> </td>
        <td> <pre>
“smsNumber”:4, 
“indexUnique”:[4,7,8,13],
“currentPage”:3,
“pageSize”:5 </pre> </td>
        <td> <pre>
"status": 0,
"message": "RSP_CM_GET_USMS_LIST",
"data": {
    "totalSmsCount": 10,
    "smsList": [
        {
            "index": 1,
            "phoneNumber": "0911517247",
            "time": "11/08/2019 10:59:46",
            "message": "Hello, this is your test SMS.",
            "isRead": true,
            "smsIndexUnique": 1
        }
    ]
}</pre> </td>
    </tr>
    <tr>
        <td>/setSmsRead</td>
        <td> <b>POST</b> </td>
        <td> <pre>
“index_unique”:10,
“unread”:false </pre> </td>
        <td> <pre>
"status": 0,
"data": {
    "USMS_Field": {
        "Message": "RSP_CM_SET_USMS_UNREAD",
        "ERROR": false
    }
}</pre> </td>
    </tr>
</table>

