GET /v1/auth/device/{user_code}
Returns the pending device login for a user code, so the dashboard can show what is asking (client, scopes, when) before the user approves.

Authentication

API Key (cookie: __Host-b3os_session)

Path Parameters

user_code string required path
The code the CLI showed, with or without the dash.
Example: "WDJB-MJHT"

Responses

200 The device login.
application/json
object string REQUIRED
Enum: device_authorization
user_code string REQUIRED
client_id string REQUIRED
client_name string REQUIRED
scopes string[] REQUIRED
Array of: string
status string REQUIRED
Enum: pending, approved, denied, expired
user_agent string | null REQUIRED
created_at string (date-time) REQUIRED
expires_at string (date-time) REQUIRED
decided_at string (date-time) | null REQUIRED
400 The request failed validation (`invalid_request`, `invalid_url`).
401 Missing, malformed, expired or revoked credentials (`unauthorized`).
403 Authenticated but not allowed (`forbidden`, `egress_denied`).
404 The device code is unknown or expired (`user_code_not_found`).
429 A rate, concurrency or quota limit applies (`rate_limited`, `concurrency_limited`, `quota_exceeded`).
500 Something failed inside B3OS (`internal`). Retry with backoff.
503 The node or the product is not available right now (`node_unavailable`, `product_unavailable`, `capacity_unavailable`).
curl -X GET 'https://beta.b3os.org/v1/auth/device/WDJB-MJHT' \  -H 'Authorization: Bearer YOUR_API_TOKEN'
const response = await fetch('https://beta.b3os.org/v1/auth/device/WDJB-MJHT', {  method: 'GET',  headers: {      "Authorization": "Bearer YOUR_API_TOKEN"  }});const data = await response.json();console.log(data);
import requestsheaders = {    'Authorization': 'Bearer YOUR_API_TOKEN'}response = requests.get('https://beta.b3os.org/v1/auth/device/WDJB-MJHT', headers=headers)print(response.json())
200 Response
{  "object": "device_authorization",  "user_code": "WDJB-MJHT",  "client_id": "b3os-cli",  "client_name": "B3OS CLI",  "scopes": [    "*"  ],  "status": "pending",  "user_agent": "b3os-cli/0.1.0 (darwin arm64)",  "created_at": "2026-10-25T22:30:00.000Z",  "expires_at": "2026-10-25T22:45:00.000Z",  "decided_at": null}
Ask a question... ⌘I