---
title: "Poll device token endpoint"
method: POST
path: "/auth/device/token"
tags: ["OAuth Authentication"]
---

# Poll device token endpoint

`POST /auth/device/token`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/auth/device/token`
- Auth: none declared

RFC8628 token polling endpoint.
Returns OAuth errors such as `authorization_pending`, `slow_down`, `access_denied`, and `expired_token`.

## Request body

- object
  - `grant_type` 'urn:ietf:params:oauth:grant-type:device_code', required
  - `device_code` string, required
  - `client_id` string, required

## Response `200`

Device flow completed, auth-user session minted

- AuthTokenResponse
  - `access_token` string, required: JWT access token (expires after configured lifetime)
  - `token_type` string, required
  - `expires_in` integer, required: Access token lifetime in seconds
  - `refresh_token` string: Long-lived token for getting new access tokens. Omitted when the request uses eligible HttpOnly cookie session storage.
  - `user` AuthUser, required
    - `id` string, uuid, required
    - `project_id` string, uuid
    - `email` string, email, required
    - `email_confirmed` boolean
    - `user_metadata` object: User-editable metadata
    - `app_metadata` object: Application-controlled metadata (read-only for users)
    - `avatar_url` string, uri: User avatar URL (from OAuth provider or manually set)
    - `status` 'active' | 'banned' | 'deleted', required
    - `banned_until` string, date-time, nullable: When temporary ban expires (null if not banned or permanent)
    - `last_sign_in_at` string, date-time
    - `created_at` string, date-time
    - `updated_at` string, date-time

## Other responses

- `400`: Polling state/error response
- `403`: `access_denied` - the approving account's email domain is not in `allowed_email_domains` while `allowed_email_domains_mode` is `signup_and_signin`. Re-checked here because approval and redemption are separate requests.

## Changes

- **2026-09-19** `3a6f365f3f35`: 3 breaking, 9 info
  - the response's body type changed from no type to `object` for status `200`
  - the response's body type changed from no type to `object` for status `400`
  - the response's body type changed from no type to `object` for status `403`
  - added the optional property `error_description` to the response with the `400` status
  - …8 more
- **2026-08-27** `bb44e98aba2e`: 8 breaking, 1 warning, 1 info
  - the response's body type changed from `object` to no type for status `200`
  - the response's body type changed from `object` to no type for status `400`
  - removed the required property `access_token` from the response with the `200` status
  - removed the required property `error` from the response with the `400` status
  - …6 more

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/auth/device/token/post.md)

---

[API](https://skmtc.dev/kong/apis/volcano-api.md) - [All operations](https://skmtc.dev/kong/apis/volcano-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/volcano-api/revisions/84c4488f91e9?raw)
