Skip to Content

Device Authorization

Sign in from a device without a browser.

Device authorization is available for BASE_URL/api/v1 only, not for MCP.

Ask for a code

POST form-encoded client_id, scope and resource to the discovered device_authorization_endpoint, with registered client authentication if the client has a secret.

Show it to the user

Present user_code and the verification URL. A verification_uri_complete link fills in the code and shows the request directly. The user signs in, checks the code and allows or denies it.

Poll the OAuth token endpoint

Send grant_type=urn:ietf:params:oauth:grant-type:device_code, client_id, device_code and resource, with registered client authentication if needed. Honor interval, authorization_pending, slow_down and expiry. Stop on denial or expiry.

Only approve your own device's code

An unexpected code sent by someone else can authorize that person's device.

/api/auth/device/token is intentionally disabled. OAuth clients receive scoped tokens, never browser sessions.

On this page

Edit this page