# Get heartbeat of a device which contains last seen information

Endpoint: GET /device/v0/heartbeat/{id}/
Version: 1.0.0
Security: apiKey

## Path parameters:

  - `id` (string, required)
    ID of the device

## Response 200 fields (application/json):

  - `code` (integer)

  - `message` (string)

  - `content` (object)

  - `content.device_id` (string)
    UUID of the device

  - `content.timestamp` (string)
    Last seen time stamp of the device

  - `content.status` (integer)
    Legacy field representing whether the device was last seen in the last 30 minutes (returns 1) or not (returns 0).
    Enum: 0, 1

## Response 401 fields (application/json):

  - `code` (integer, required)

  - `message` (string, required)

  - `content` (object)

## Response 404 fields (application/json):

  - `code` (integer, required)

  - `message` (string, required)

  - `content` (object)

## Response 500 fields (application/json):

  - `code` (integer, required)

  - `message` (string, required)

  - `content` (object)


