---
title: "Approve device code"
method: POST
path: "/api/v1/auth/device/approve"
tags: ["Device Authentication"]
---

# Approve device code

`POST /api/v1/auth/device/approve`

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/api/v1/auth/device/approve`
- Auth: HTTP bearer

Called by the authenticated user in the browser to approve a device login request

## Request body

- DeviceApproveRequest
  - `userCode` string, required

## Response `200`

Device code approved

## Other responses

- `404`: Code not found or already used
- `410`: Code expired

---

[API](https://skmtc.dev/railhook/apis/railhook-api.md) · [All operations](https://skmtc.dev/railhook/apis/railhook-api/llms.txt) · [OpenAPI document](https://skmtc.dev/railhook/apis/railhook-api/revisions/4e2c76dfc33d?raw)
