queryUnusedAiInsightList: List unused AI Insight packages
queryUnusedAiInsightList: List unused AI Insight packages
What it does
List unused AI Insight packages in the developer account (packages that were once bound to a device and returned to the account after device or package unbind).
Request URL
POST https://openapi-[DataCenter].easy4ip.com/openapi/queryUnusedAiInsightList
Minimum permission
Administrator token. See Permission codes.
Request parameters
| Parameter name | Parameter type | Required or not | Parameter description |
|---|---|---|---|
| token | String | Yes | Administrator accessToken |
| nextDeviceAiInsightId | String | No | Request cursor: pass -1 or omit on first page; for the next page pass nextDeviceAiInsightId from the previous response Allowed values: ≥ -1. |
| limit | Integer | No | Page size, default 20 Allowed values: 1–20. |
Common request fields and signing: Signing conventions and Common request payload.
Sample input
{
"id": "d5c287b4-5b2f-4f03-baf5-8032c5c354af",
"system": {
"ver": "1.0",
"appId": "lcdxxxxxxxxx",
"sign": "xjhCQBoJ9hRDsCjyDcHjtDNzRZ3ZJezcawsfWeiaoxU=",
"time": 1706511734,
"nonce": "f5a1ae2d-c09c-4d39-a744-83a5c2c653c2"
},
"params": {
"token": "<yourAccessToken>",
"nextDeviceAiInsightId": "-1",
"limit": 15
}
}
Response data fields
| Field name | Field type | Description |
|---|---|---|
| nextDeviceAiInsightId | String | deviceAiInsightId of the last item on this page (for the next request); -1 when there is no data |
| cloudInfos | Array | Inventory package list |
| cloudInfos[].deviceAiInsightId | Long | Unique AI Insight package id |
| cloudInfos[].name | String | Plan name |
| cloudInfos[].strategyId | String | AI Insight strategy id |
| cloudInfos[].cloudCount | Integer | Quantity for this entry |
| cloudInfos[].validDays | Integer | Remaining valid days; positive means days left, -1 means never used |
| cloudInfos[].lastUnbindTime | String | Last unbind time, format yyyy-MM-dd |
| cloudInfos[].lastDeviceId | String | Last bound device; may be empty—do not rely on this field to infer binding |
| cloudInfos[].lastChannelId | String | Last bound channel; may be empty—do not rely on this field to infer binding |
Sample output
{
"id": "d5c287b4-5b2f-4f03-baf5-8032c5c354af",
"result": {
"code": "0",
"msg": "The operation was successful",
"data": {
"nextDeviceAiInsightId": "100124",
"cloudInfos": [
{
"deviceAiInsightId": "100123",
"name": "AI Insight inventory sample",
"strategyId": "3",
"cloudCount": 1,
"validDays": 264,
"lastUnbindTime": "2026-04-25",
"lastDeviceId": null,
"lastChannelId": null
},
{
"deviceAiInsightId": "100124",
"name": "AI Insight inventory sample",
"strategyId": "3",
"cloudCount": 1,
"validDays": 264,
"lastUnbindTime": "2026-04-25",
"lastDeviceId": null,
"lastChannelId": null
}
]
}
}
}
Error codes
This method may return the codes below. See Error codes and Capability errors for the full catalog.
Gateway and auth (SN / TK / OP)
| Code | Meaning | Next step |
|---|---|---|
SN1001 | Signature error | Check sign per Signature |
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 Error codes · OP/SN/TK for the full catalog.
Device access and channels (DV10xx)
| Code | Meaning | Next step |
|---|---|---|
DV1007 | Device offline or timeout | Wait for the device to come online |
DV1009 | Device busy | Retry later |
DV1012 | Insufficient share/grant permission | Check sub-account Permission / Resource |
DV1019 | Capability not supported | Confirm model and capability list |
DV1020 | Channel offline | Check channel status |
DV1026 | Function not supported | Use another API or upgrade firmware |
DV1028 | Not bound or channel missing | Verify deviceId / channelId |
See Error codes · DV.
AI Insight (AI)
| Code | Meaning | Next step |
|---|---|---|
AI1004 | No AI Insight plan in inventory | Verify inventory id |
AI1006 | No active AI Insight plan on channel / plan not found | Enable a plan or verify deviceAiInsightId |
AI1007 | Insufficient quota or inventory (strategyId and deviceAiInsightId both missing) | Supply strategyId or inventory id |
AI1010 | Device does not support this strategyId (e.g. non dual-lens device) | Use a supported plan or device |
AI1011 | GB-standard device cannot enable AI Insight | Use a non-GB device or product path |
AI1101 | Account has no face library rights | Enable AI Insight or cloud plan with face rights |
See Error codes · AI.
Notes
Administrator accessToken only; sub-accounts cannot call this API.
