---
title: "Approve or deny a device code"
method: POST
path: "/auth/device/verify"
tags: ["OAuth Authentication"]
---

# Approve or deny a device code

`POST /auth/device/verify`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/auth/device/verify`
- Auth: HTTP bearer

Browser-side endpoint for authenticated auth-users to approve (`approve`) or deny (`deny`) a `user_code`.

Called by the verification page after the end user signs in. The grant is
scoped to the project the auth-user token belongs to: approving a
`user_code` issued for a different project returns `403`. This endpoint
does not require managed auth to be enabled, so a custom verification page
(hosted anywhere) can drive approval — it just needs an authenticated
project auth-user access token and, for cross-origin browser calls, the
page origin allowed in the project's auth CORS settings.

## Request body

- object
  - `user_code` string, required
  - `action` 'approve' | 'deny'

## Response `200`

Verification action accepted

- object
  - `success` boolean
  - `status` string

## Other responses

- `401`: Not authenticated

## Changes

- **2026-09-19** `3a6f365f3f35`: 1 breaking, 2 info
  - the response's body type changed from no type to `object` for status `401`
  - added the optional property `code` to the response with the `401` status
  - added the required property `error` to the response with the `401` status
- **2026-08-27** `bb44e98aba2e`: 2 breaking, 1 warning
  - the response's body type changed from `object` to no type for status `401`
  - removed the required property `error` from the response with the `401` status
  - removed the optional property `code` from the response with the `401` status
- **2026-07-27** `bb52784e098a`: 1 info
  - added the optional property `code` to the response with the `401` status

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/auth/device/verify/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)
