---
title: "24-hour device heartbeat — updates last_seen and returns device count"
method: POST
path: "/v1/device/heartbeat"
tags: ["devices"]
---

# 24-hour device heartbeat — updates last_seen and returns device count

`POST /v1/device/heartbeat`

## Request

- Base URL: `https://api.algenta.ai`
- URL: `https://api.algenta.ai/v1/device/heartbeat`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

## Request body

- HeartbeatRequest
  - `device_id` string, required
  - `usage` object

## Response `200`

Successful Response

- HeartbeatResponse
  - `device_id` string, required
  - `plan` string, required
  - `device_limit` integer, required
  - `device_count` integer, required
  - `status` string, required
  - `message` string, required
  - `server_time` number

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/codna/apis/algenta-api.md) · [All operations](https://skmtc.dev/codna/apis/algenta-api/llms.txt) · [OpenAPI document](https://skmtc.dev/codna/apis/algenta-api/revisions/35d30f84a5df?raw)
