---
title: "Get pending CLI authorization details"
method: GET
path: "/cli/auth/session"
tags: ["Auth"]
---

# Get pending CLI authorization details

`GET /cli/auth/session`

## Request

- Base URL: `https://app.openpo.st/api/v1`
- URL: `https://app.openpo.st/api/v1/cli/auth/session`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `openpost_session`

## Query parameters

- `user_code` string

## Response `200`

OK

- GetCLIAuthSessionOutputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `client_name` string, required
  - `client_os` string, required
  - `client_version` string, required
  - `expires_at` string, required
  - `requested_scopes` string, required

## Other responses

- `403`: Forbidden
- `404`: Not Found
- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

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