Skip to main content
Scope: devices:provision These endpoints are used by factory tools to create devices and write their credentials before shipping. See Fleet batches for the full workflow.
Every device you create counts toward your workspace device rent. See Device rent.

Create devices in bulk

Create a number of devices with generated names:
Or create devices from a list of names:
Returns 201 with the batch summary and one result per device, including its device_id and device_secret_id. Returns 402 if the balance does not cover the batch.

Get a provisioning bundle

Returns the credentials file to flash onto one device. Add ?format=json to receive keys_json instead of the default keys_h file.
The bundle contains the device’s secret credentials. Write it to the device and do not store it in logs or shared folders.

Factory line

When several stations work on the same batch, each station claims a device first so two operators never flash the same unit. A claim lasts 5 minutes. A claim by another station returns 409. A stale or wrong claim_token also returns 409.