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’}.
签名
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}>;参数
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| code | path | string | 是 | The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404. |
响应
| 状态码 | 内容类型 | 说明 |
|---|---|---|
| 200 | application/json | The organization and deadline the phone shows before the owner allows the pairing. |
| 404 | NOT_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. |