---
title: "Approve Cli Auth Session"
method: POST
path: "/cli-auth/approve"
tags: ["General APIs with JWT"]
---

# Approve Cli Auth Session

`POST /cli-auth/approve`

Approve CLI authentication session (requires user authentication).
Generates API key and associates it with the session.

## Request body

- CliAuthApproveRequest — Request to approve CLI auth session
  - `session_id` string, required
  - `api_key_name` string, nullable

## Response `200`

Successful Response

- CliAuthApproveResponse — Response for CLI auth approval
  - `success` boolean, required
  - `message` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/lium/apis/lium-backend-api.md) · [All operations](https://skmtc.dev/lium/apis/lium-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/lium/lium-backend-api/revisions/57db0a9348db/schema)
