Devices
Register Device
Register a wearable device in your project
POST
Register a device using its serial number. The response includes the Bota device ID (
dev_*) that you use for later device APIs such as bind, heartbeat, commands, and settings.
Store the returned
id alongside the device serial number in your system. If the mapping is unavailable later, recover it with GET /devices?serial_number={serial_number}.Authentication
Requires an API key withdevices:write scope.
Request Body
Device serial number (unique identifier from hardware).
Device model. One of
bota_pin, bota_pin_pro, or bota_note.Current firmware version on the device.
Arbitrary key-value metadata.
Response
Returns the newly registered device object.Response Fields
Resolving a Device ID from a Serial Number
For a newly registered device, use theid returned by this endpoint.
For an already registered device, use the exact List Devices serial_number filter. If registration returns 409 and the filter returns a device, reuse its dev_* ID. If the filter returns an empty data array, the device is registered elsewhere or is inaccessible to this project.
