Skip to content

Get list of heartbeat for all devices

Request

Security
apiKey
Query
last_seen_gtstring, (date-time)required

Specify the starting date and time for device lookup in the format (2023-08-29T00:00:00Z).

Example:last_seen_gt=2023-08-29T00:00:00Z
last_seen_ltstring, (date-time)required

Specify the end date and time for device lookup in the format (2023-08-30T00:00:00Z).

Example:last_seen_lt=2023-08-30T00:00:00Z
platformstring

platform of the device

Enum:"ANDROID""APPLE""LINUX""WINDOWS"
limitinteger
offsetinteger
cURL
curl -i -X GET \
  'https://develop-api.esper.io/_mock/openapi/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>'

Responses

Last seen details of the device

Bodyapplication/json
codeinteger
messagestring
contentobject(DeviceLastSeen)
Response
{ "code": 0, "message": "string", "content": { "count": 0, "prev": "string", "next": "string", "results": [] } }