Devices
Bind Device
Bind a device to an end user and receive a device token for 4G uploads
POST
Bind a device to an end user. A device can only be bound to one user at a time. If you need to reassign a device, unbind it first. When a device is bound, a device token (Documentation Index
Fetch the complete documentation index at: https://docs.bota.dev/llms.txt
Use this file to discover all available pages before exploring further.
dtok_*) is returned. This token enables 4G-equipped devices to upload recordings directly to the Bota API without requiring a companion mobile app.
Authentication
Requires an API key withdevices:write scope.
Path Parameters
The device’s unique identifier (e.g.,
dev_abc123).Request Body
The ID of the end user to bind this device to.
Response
Returns the device object with adevice_token field.
Response Fields
| Field | Type | Description |
|---|---|---|
id | string | Device identifier (dev_*) |
serial_number | string | Physical serial number |
model | string | Device model (bota_pin or bota_note) |
firmware_version | string | null | Current firmware version |
status | string | bound (always bound after successful bind) |
end_user_id | string | Bound end user (eu_*) |
device_token | string | Device authentication token (dtok_*). Shown only once — store it securely. |
battery_percent | integer | null | Battery level (0-100) |
storage_used_mb | integer | null | Storage used in MB |
storage_total_mb | integer | null | Total storage capacity in MB |
signal_strength_dbm | integer | null | Signal strength in dBm |
last_heartbeat_at | string | null | Last heartbeat timestamp (ISO 8601) |
recording_state | object | null | Current recording state |
metadata | object | Custom key-value metadata |
created_at | string | Creation timestamp (ISO 8601) |
updated_at | string | Last update timestamp (ISO 8601) |
Device Token
Thedevice_token returned in the response is a limited-permission credential that allows the device to:
- Create recordings (
POST /v1/recordings) - Get upload URLs (
POST /v1/recordings/:id/upload-url) - Mark uploads complete (
POST /v1/recordings/:id/upload-complete) - Report device status (
POST /v1/devices/:id/heartbeat) - Refresh its token (
POST /v1/devices/:id/token/refresh)
Device tokens have very limited permissions compared to API keys. They cannot list recordings, access other users’ data, or perform administrative operations.

