Skip to main content
GET
Poll a device-code grant for completion

Query Parameters

device_code
string

The device_code from /start. Omit for the self-describe contract.

Required string length: 16 - 64

Response

Grant status (pending/completed/cancelled) or the self-describe contract.

One of pending / completed / cancelled. completed surfaces the agent_token exactly once.

status
enum<string>
required
Available options:
pending,
completed,
cancelled
user_id
string
agent_token
string

Plaintext, surfaced ONCE — store it on the agent.

tier
string
pending_tier
string
granted_scopes
string[]
sandbox
boolean

Present + true when the minted token is a sandbox/test-mode token (mirrors the sandbox flag sent to /start).

reason
string

On cancellation.

next_steps
object