Skip to main content
POST
Create a durable factory-reset command for a device. The request is asynchronous: 202 Accepted means the command is pending, not that the device has already been wiped. Factory reset deletes all recordings stored on the physical device, including active, completed, encrypted, sidecar, and partial-transfer/upload artifacts. It does not delete cloud recordings, transcriptions, summaries, the device record, serial number, or manufacturing identity.

How it works

  1. Bota creates or returns the device’s existing in-flight factory_reset command. The command does not use the normal five-minute command expiry.
  2. The device remains bound and its device token remains valid, but that token is restricted to heartbeat and the exact reset acknowledgement.
  3. A WiFi/4G heartbeat or authenticated Bluetooth relay delivers the command.
  4. The device stops recording/upload work and deletes every local recording.
  5. The device or relay acknowledges the exact command as executed.
  6. Bota atomically marks the command executed, unbinds the device, revokes its device token, and clears device-level configuration.
  7. The device clears its remaining user/project credentials and reboots unpaired.
If an acknowledgement or its HTTP response is lost, the same reset can be retried safely. Bota returns the already-executed result after successful finalization instead of running the backend cleanup twice.
Do not treat command creation or delivery as reset completion. Wait for the command status to become executed. The physical wipe requires a compatible firmware and relay release; older devices leave the command pending and must not be reported as reset.

Authentication

Requires an API key with devices:write scope.

Path Parameters

string
required
The device identifier, for example dev_abc123.

Response

Returns the durable command with HTTP 202 Accepted. Repeating the request while reset is pending or delivered returns the same command.

Complete the reset

After the physical wipe succeeds, acknowledge the exact command:
A direct device may use its still-valid dtok_* token for the first ACK. A Bluetooth relay may use a secret key or a restricted project key with devices:write. The command’s rct_* credential is accepted only on this exact device/command ACK route and remains usable for an idempotent retry if backend finalization committed but the success response was lost. Read-only restricted keys can inspect command status but do not receive the credential.

Reset, unbind, and delete

Use factory reset only when the physical device must be wiped. Use unbind for non-destructive reassignment.