---
title: "Cli Auth Approve"
method: POST
path: "/v1/auth/cli/approve"
tags: ["auth"]
---

# Cli Auth Approve

`POST /v1/auth/cli/approve`

Approve a pending CLI session for the authenticated user.

Called by the /connect page through the web proxy, so the caller is the
logged-in user (resolved by get_current_org). Mints a fresh, labeled API
key for that user, stamps it onto the session, and marks it approved. The
raw key is stored on the session only until the CLI's next poll retrieves
it (single-use), never exposed to the browser.

## Request body

- CliAuthApproveRequest
  - `user_code` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/roxels/apis/interviewer.md) · [All operations](https://skmtc.dev/roxels/apis/interviewer/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/roxels/interviewer/revisions/4ef48ed226e1/schema)
