Skip to content
中文

Start adding a phone of your own

Code Mode: praxis.sandbox.byod.pairings.create

HTTP: POST /sandbox/v1/byod/pairings

Begin bringing your own device (BYOD): the platform answers an 8-character code, its ten-minute deadline and the QR payload your phone’s app scans, and nothing is registered until the owner taps Allow on the phone. Show the QR payload (or the code) in your app; the phone opens GET /sandbox/v1/byod/pairings/{code} — with no credential — to show the organization and the deadline, then posts the claim once. The pairing stores the organization’s display name, which the phone shows on its Allow screen, so create the pairing from a session or key that carries one. A code is spent by the first successful claim and cannot be reused; create a new pairing for another device. BYOD devices are separate from sandboxes: they never appear in listSandboxes and have no template, size or expiry. Example: POST /sandbox/v1/byod/pairings with no body returns {code:‘K7M4PQRS’,expires_at:‘2026-11-22T13:10:00.000Z’,qr:‘praxis://byod/pair?code=K7M4PQRS&api=https%3A%2F%2Fapi.deepraxis.com’}.

Signature

praxis.sandbox.byod.pairings.create(args?:Record<string,never>):Promise<{/** The 8-character pairing code, from ABCDEFGHJKLMNPQRSTUVWXYZ23456789 (I, O, 0 and 1 are left out). */ code:string;/** When the code stops working, ten minutes after it was created, as an ISO-8601 timestamp. */ expires_at:string;/** The string the app scans: praxis://byod/pair?code=<code>&api=<api origin>. */ qr:string}>;

Responses

StatusContent typesDescription
201application/jsonThe pairing started; the phone can read it and claim it once until expires_at.
400INVALID_PARAMS: a body field is missing, wrongly typed or out of range, for example a name outside 1 to 64 characters. Fix the field and resend; retrying unchanged fails the same way.
401Authentication required: supply an organization API key that carries a tenant.
503SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.