Online status
Whether devices are online.
Every call needs the project’s API key in x-header-apikey. See Authentication. Errors use the codes in Error codes.
Get all thing statuses
Section titled “Get all thing statuses”GET https://openapi.rogo.com.vn/api/v2.0/iot-core/thing-status/{userId}| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
type |
query | number | No | Filter by device type |
userId |
path | string | Yes |
curl -X GET "https://openapi.rogo.com.vn/api/v2.0/iot-core/thing-status/<userId>" \ -H "x-header-apikey: $API_KEY"| Status | Meaning |
|---|---|
| 200 | Successfully retrieved thing statuses |
| 400 | Bad Request |
Example answer
[ { "partnerId": "FPT", "data": "00000200", "userId": "CCa5J7spLJagxgTDASbwoDHgogc2", "updatedAt": 1747898152, "status": 1, "clientId": "_02_1111111111_00000200", "keepalive": 60, "connected_at": 1746696493759, "type": "MOBILE_IOS", "thingId": "1111111111" }]Get thing status by ID
Section titled “Get thing status by ID”GET https://openapi.rogo.com.vn/api/v2.0/iot-core/thing-status/{userId}/{thingId}| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
thingId |
path | string | Yes | |
userId |
path | string | Yes |
curl -X GET "https://openapi.rogo.com.vn/api/v2.0/iot-core/thing-status/<userId>/<thingId>" \ -H "x-header-apikey: $API_KEY"| Status | Meaning |
|---|---|
| 200 | Successfully retrieved thing status |
| 400 | Bad Request |
| 404 | Thing not found |
Example answer
{ "partnerId": "FPT", "data": "00000200", "userId": "CCa5J7spLJagxgTDASbwoDHgogc2", "updatedAt": 1747898152, "status": 1, "clientId": "_02_1111111111_00000200", "keepalive": 60, "connected_at": 1746696493759, "type": "MOBILE_IOS", "thingId": "1111111111"}