APIs to retrieve information about device's heartbeat which contains the last seen details.
Last seen details of the device
Authorization information is missing or invalid.
Not found
Internal Server Error
curl -i -X GET \ 'https://develop-api.esper.cloud/api/device/v0/heartbeat/{id}/' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{- "code": 0,
- "message": "string",
- "content": {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "timestamp": "2019-08-24T14:15:22Z",
- "status": 0
}
}
Last seen details of the device
Device create error - Bad Request
Authorization information is missing or invalid.
Internal Server Error
curl -i -X GET \ 'https://develop-api.esper.cloud/api/v2/heartbeat/?last_seen_gt=2023-08-29T00%3A00%3A00Z&last_seen_lt=2023-08-30T00%3A00%3A00Z&platform=ANDROID&limit=0&offset=0' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{- "code": 0,
- "message": "string",
- "content": {
- "count": 0,
- "prev": "string",
- "next": "string",
- "results": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "timestamp": "2019-08-24T14:15:22Z",
- "status": 0
}
]
}
}