---
title: "Polling to obtain a token for the device"
method: POST
path: "/platform/token/device"
tags: ["kamu"]
---

# Polling to obtain a token for the device

`POST /platform/token/device`

## Response `200`

- DeviceAccessTokenResponse — <https://datatracker.ietf.org/doc/html/rfc6749#section-5.1>
  - `access_token` string, required — REQUIRED. The access token issued by the authorization server.
  - `expires_in` integer, required — RECOMMENDED. The lifetime in seconds of the access token. For example, the value "3600" denotes that the access token will expire in one hour from the time the response was generated. If omitted, the authorization server SHOULD provide the expiration time via other means or document the default value.
  - `refresh_token` string, nullable — OPTIONAL. The refresh token, which can be used to obtain new access tokens using the same authorization grant as described in [Section 6](https://datatracker.ietf.org/doc/html/rfc6749#section-6).
  - `score` string, nullable — OPTIONAL. The scope of the access request as described by [Section 3.3](https://datatracker.ietf.org/doc/html/rfc6749#section-3.3). The requested scope MUST NOT include any scope not originally granted by the resource owner, and if omitted is treated as equal to the scope originally granted by the resource owner.
  - `token_type` string, required — REQUIRED. The type of the token issued as described in [Section 7.1](https://datatracker.ietf.org/doc/html/rfc6749#section-7.1). Value is case insensitive.

## Other responses

- `400`

---

[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)
