Device check-in
post
https://api.flactrum.com/v1/devices/{device}/heartbeat
The device says it is alive and optionally reports its app version. A locked device stays locked — it must not be able to free itself.
| Required scope | devices.write |
| Success status | 200 |
| Returns | One Device object |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| device * | path | string | ULID of the record. |
Request body
| Field | Type | Description |
|---|---|---|
| app_version | string|null | Reported by the device itself. |
Response fields
| Field | Type | Description |
|---|---|---|
| id | string | — |
| code | string | Unique within the brand. |
| branch_id | string|null | — |
| type | string | — |
| status | string | — |
| app_version | string|null | — |
| auto_update | boolean | — |
| last_seen_at | string|null | — |
| is_locked | boolean | — |
Examples
Recorded from the test suite — these are real requests and their real responses.
curl -X POST 'https://api.flactrum.com/v1/devices/01m43mzpd9af09p00zgpn8y9qg/heartbeat' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Content-Type: application/json' \
-d '{
"app_version": "2.4.1"
}'
HTTP 200 · application/json
{
"data": {
"id": "01m43mzpd9af09p00zgpn8y9qg",
"code": "KIOSK-01",
"branch_id": "01m43mzpbam63qhnn5tmck9wc5",
"type": "kiosk",
"status": "online",
"app_version": "2.4.1",
"auto_update": true,
"last_seen_at": "2026-10-04T14:27:16+00:00",
"locked_at": null,
"is_locked": false,
"note": "Giriş kapısı",
"created_at": "2026-10-04T14:27:16+00:00",
"updated_at": "2026-10-04T14:27:16+00:00"
}
}