Skip to content
中文

Read a pairing for the phone's Allow screen

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

HTTP: GET /sandbox/v1/byod/pairings/{code}

The phone’s own read, called by the app that scanned the QR code or the code was typed into: it answers the organization’s display name and the code’s deadline, which the owner sees before tapping Allow. This path carries no Praxis credential — the one-time code is what it is addressed by — so do not send an API key and do not call it from server code. An unknown, spent or expired code answers 404, with nothing said about which of the three it is; that also covers a code another organization created. The read is a preview only: it registers nothing, and the claim is what spends the code. Example: GET /sandbox/v1/byod/pairings/K7M4PQRS returns {organization_name:‘烟火测试团队’,expires_at:‘2026-11-22T13:10:00.000Z’}.

Signature

praxis.sandbox.byod.pairings.retrieve(args:{path:{code:string}}):Promise<{/** Display name of the organization that started the pairing. */ organization_name:string;/** When the code stops working, as an ISO-8601 timestamp; the app should refuse to claim once it has passed. */ expires_at:string}>;

Parameters

NameInTypeRequiredDescription
codepathstringyesThe 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404.

Responses

StatusContent typesDescription
200application/jsonThe organization and deadline the phone shows before the owner allows the pairing.
404NOT_FOUND: no such pairing. The code is unknown, was already claimed, or has expired; the three are indistinguishable, so start a new pairing in the organization.