---
title: "Device Token Poll"
method: POST
path: "/auth/cli/token"
tags: ["authentication"]
---

# Device Token Poll

`POST /auth/cli/token`

## Request

- Base URL: `http://127.0.0.1:8052`
- URL: `http://127.0.0.1:8052/auth/cli/token`
- Auth: none declared

Poll for device authorization status.

Returns the access token once the user has authorized the device code.

## Request body

- DevicePollRequest: Body for POST /auth/cli/token - poll for device authorization.
  - `device_code` string, required
  - `grant_type` string

## Response `200`

Successful Response

- DevicePollResponse: Response for device token poll.
  - `access_token` string
  - `expires_at` number, nullable
  - `refresh_token` string, nullable
  - `token_type` string
  - `status` string

## Other responses

- `404`: SSO authentication is not configured on this server
- `422`: Validation Error

---

[API](https://skmtc.dev/bernstein/apis/bernstein-task-server.md) · [All operations](https://skmtc.dev/bernstein/apis/bernstein-task-server/llms.txt) · [OpenAPI document](https://skmtc.dev/bernstein/apis/bernstein-task-server/revisions/2a20a34ad2eb?raw)
