checkDeviceBindOrNot (checkDeviceBindOrNot - Query Device Binding Status - Imou Open Platform)
checkDeviceBindOrNot: checkDeviceBindOrNot - Query Device Binding Status - Imou Open Platform
Deprecated: Use Bind state (
device.bindstate.get). This legacy HTTP page is retained for existing integrations.
Function details
Query the device binding status, whether it is bound, and whether it is bound by the current account.
Request address
https://openapi-[DataCenter].easy4ip.com/openapi/checkDeviceBindOrNot
Request format
HTTP POST. JSON body layout: Request conventions. Sign with Signature.
The sub-account token can be requested without permission
Incoming parameter description
| Parameter name | Parameter type | Required or not | Default value | Legal value | Parameter description |
|---|---|---|---|---|---|
| token | String | Yes | Administrator or sub-account accessToken | ||
| deviceId | String | Yes | Device serial number |
Sample input
{
"system":{
"ver":"1.0",
"appId":"lcdxxxxxxxxx",
"sign": "xjhCQBoJ9hRDsCjyDcHjtDNzRZ3ZJezcawsfWeiaoxU=",
"time":1603370290,
"nonce":"90ad5f98-b1c6-4c2c-9514-7eb98bee3e24"
},
"id":"d51dd218-0563-4293-966b-bb1004532143",
"params":{
"deviceId":"TESTQWERXXXX",
"token":"At_00000ad9e6e87f0142eb92e207aec46a"
}
}
Return data field description
| Field | Type | Description |
|---|---|---|
| isBind | Boolean | Whether it is bound to an account, true: it has been bound, false: it has not been bound |
| isMine | Boolean | Whether it belongs to the current account, true: belongs to the current account, false: does not belong to the current account |
Sample output
{
"result":{
"msg":"The operation was successful.",
"code":"0",
"data":{
"isBind":true,
"isMine":true
}
},
"id":"d51dd218-0563-4293-966b-bb1004532143"
}
Error codes
This method may return the codes below. See Return codes and Capability errors for the full catalog.
Gateway and auth (SN / TK / OP)
| Code | Meaning | Next step |
|---|---|---|
SN1001 | Signature error | Check sign per Development specification |
TK1002 | Token invalid or expired | Refresh accessToken |
OP1002 | Missing required parameter | Add required fields |
OP1003 | Invalid parameter | Match this page’s parameter table |
OP1009 | Permission denied | Check token and device bind/share grants |
OP1013 | Total call limit exceeded | Reduce call rate |
OP1014 | Daily per-interface limit exceeded | See Interface call limits |
DV1007 | Device offline | Wait until the device is online |
See Return codes · OP/SN/TK for the full catalog.
Sub-accounts (SUB)
| Code | Meaning | Next step |
|---|---|---|
SUB1001–SUB1002 | Sub-account lacks API permission | Update policy via addPolicy |
SUB1005 | Sub-account token expired | Refresh subAccountToken |
SUB1006 | No device grant for sub-account | Check Resource and device serial |
SUB1008 | Sub-account not bound to app | Create and bind the sub-account first |
See Return codes · SUB.
Device binding (DV10xx)
| Code | Meaning | Next step |
|---|---|---|
DV1001 | Bound to another account | Unbind or use another device |
DV1002 | Device does not exist | Verify serial number |
DV1003 | Already bound to current account | No need to bind again |
DV1005 | Verification code error | Check device label code |
DV1008 | Bind count limit exceeded | Unbind extra devices |
DV1011 | Device not bound | Bind first |
DV1029 | Device already bound | Do not bind again |
See Return codes · DV.
