---
title: "Device Authorization"
method: POST
path: "/oauth/device/code"
tags: ["OAuth"]
---

# Device Authorization

`POST /oauth/device/code`

RFC 8628 device authorization request. Returns a user_code and verification_uri that the user visits on another device to approve. Poll POST /oauth/token with grant_type urn:ietf:params:oauth:grant-type:device_code to retrieve the token.

## Response `200`

Default Response

- object
  - `device_code` string, required
  - `user_code` string, required
  - `verification_uri` string, uri, required
  - `verification_uri_complete` string, uri
  - `expires_in` integer, required — Device code lifetime in seconds
  - `interval` integer, required — Minimum polling interval in seconds

## Other responses

- `400` — Default Response

---

[API](https://skmtc.net/bkeyid/apis/bkey-api.md) · [All operations](https://skmtc.net/bkeyid/apis/bkey-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bkeyid/bkey-api/versions/2c7566abec9e/schema)
