---
title: "Cli Auth Session Status"
method: GET
path: "/cli-auth/status/{approval_id}"
tags: ["General APIs with JWT"]
---

# Cli Auth Session Status

`GET /cli-auth/status/{approval_id}`

## Request

- Base URL: `https://lium.io/api`
- URL: `https://lium.io/api/cli-auth/status/{approval_id}`
- Auth: HTTP bearer

What the approval page shows: the request's state, when it was made and from where. It never returns or uses
up the key, so the page never takes the key meant for the CLI's GET /poll. A pending request has no owner yet;
once approved it belongs to the approving user, and anyone else gets 404. The path takes the approval page's id
from browser_url, never the CLI's session id.

## Path parameters

- `approval_id` string, required

## Response `200`

Successful Response

- CliAuthStatusResponse: What the approval page shows about a CLI login request. Never the key.
  - `status` string, required
  - `created_at` string, required
  - `expires_at` string, required
  - `requester_ip` string, nullable
  - `requester_user_agent` string, nullable

## 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.dev/lium/apis/lium-backend-api/revisions/a682d3ef1e07?raw)
