# Device Authorization (/reference/oauth/device)

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

<Steps>
<Step>
### Ask for a code [#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.
</Step>

<Step>
### Show it to the user [#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.
</Step>

<Step>
### Poll the OAuth token endpoint [#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.
</Step>
</Steps>

<Callout type="warn" title="Only approve your own device's code">
An unexpected code sent by someone else can authorize that person's device.
</Callout>

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