Skip to main content
These endpoints power the user onboarding flow — scanning a device’s QR code and linking it to a user account. All requests require the auth headers and are relative to the base URL.

Scan a QR code

POST /onboarding/scan-qr
{ "qr_data": "<contents of the scanned QR>" }
Returns the product info encoded in / resolved from the QR, so the app can show what’s being onboarded before registering.

Register a device

POST /onboarding/device
{
  "user_id": "the-user-id",
  "product_id": "the-product-id",
  "device_name": "Living Room Sensor",
  "device_identifier": "unique-device-id",
  "qr_info": { }
}
Links the device to the user’s account.

List a user’s devices

GET /onboarding/user/{userId}/devices

Remove a device

DELETE /onboarding/device/{deviceId}

Back to API overview

Base URL, auth, and all endpoint groups.