Register a device
post
https://api.flactrum.com/v1/devices
| Required scope | devices.write |
| Success status | 201 |
| Returns | One Device object |
Request body
| Field | Type | Description |
|---|---|---|
| code * | string | — |
| branch_id | string|null | — |
| type * | string | — |
| status | string | — |
| app_version | string|null | — |
| auto_update | boolean | — |
| note | string|null | — |
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' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Content-Type: application/json' \
-d '{
"code": "KIOSK-01",
"branch_id": "01m43mzpbam63qhnn5tmck9wc5",
"type": "kiosk"
}'
HTTP 201 · application/json
{
"data": {
"id": "01m43mzpd9af09p00zgpn8y9qg",
"code": "KIOSK-01",
"branch_id": "01m43mzpbam63qhnn5tmck9wc5",
"type": "kiosk",
"status": "offline",
"app_version": null,
"auto_update": true,
"last_seen_at": null,
"locked_at": null,
"is_locked": false,
"note": null,
"created_at": "2026-10-04T14:27:16+00:00",
"updated_at": "2026-10-04T14:27:16+00:00"
}
}