---
title: "Authorization of a device"
method: POST
path: "/platform/token/device/authorization"
tags: ["kamu"]
---

# Authorization of a device

`POST /platform/token/device/authorization`

## Response `200`

- DeviceAuthorizationResponse — <https://datatracker.ietf.org/doc/html/rfc8628#section-3.2>
  - `device_code` string, required — REQUIRED. The device verification code.
  - `expires_in` integer, required — REQUIRED. The lifetime in seconds of the "`device_code`" and "`user_code`".
  - `interval` integer, nullable — OPTIONAL. The minimum amount of time in seconds that the client SHOULD wait between polling requests to the token endpoint. If no value is provided, clients MUST use 5 as the default.
  - `user_code` string, required — REQUIRED. The end-user verification code.
  - `verification_uri` string, required — REQUIRED. The end-user verification URI on the authorization server. The URI should be short and easy to remember as end users will be asked to manually type it into their user agent.
  - `verification_uri_complete` string, nullable — OPTIONAL. A verification URI that includes the "`user_code`" (or other information with the same function as the "`user_code`"), which is designed for non-textual transmission.

---

[API](https://skmtc.dev/kamu-data/apis/kamu-rest-api.md) · [All operations](https://skmtc.dev/kamu-data/apis/kamu-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kamu-data/kamu-rest-api/revisions/623327a42b01/schema)
