---
title: "Authorize device code"
method: POST
path: "/internal/device-codes/authorize"
tags: ["Internal"]
---

# Authorize device code

`POST /internal/device-codes/authorize`

## Request

- Base URL: `https://api.percher.run`
- URL: `https://api.percher.run/internal/device-codes/authorize`
- Auth: API key in header `X-Internal-Secret`

## Request body

- object
  - `userCode` string, required
  - `userId` string, required

## Response `204`

Authorized

## Other responses

- `404`: Code not found

---

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