Skip to content

Device Heartbeat

APIs to retrieve information about device's heartbeat which contains the last seen details.

Get heartbeat of a device which contains last seen information

Request

Security
apiKey
Path
idstring, (uuid)required

ID of the device

cURL
curl -i -X GET \
  'https://develop-api.esper.io/_mock/openapi/device/v0/heartbeat/{id}/' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Last seen details of the device

Bodyapplication/json
codeinteger
messagestring
contentobject(EsperDeviceHeartbeat)
Response
{ "code": 0, "message": "string", "content": { "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940", "timestamp": "2019-08-24T14:15:22Z", "status": 0 } }