---
title: "Deny a CLI login request"
method: POST
path: "/auth/cli/device/deny"
tags: ["Identity"]
---

# Deny a CLI login request

`POST /auth/cli/device/deny`

## Request

- Base URL: `https://api.pyai.com`
- URL: `https://api.pyai.com/auth/cli/device/deny`
- Auth: API key in cookie `pyai_session`

## Headers

- `Origin` string, uri, required

## Request body

- object
  - `user_code` string, required

## Response `200`

Denied.

- object
  - `status` 'denied', required

## Other responses

- `400`: CLI login error. Branch on the final component of the problem type URI.
- `401`: CLI login error. Branch on the final component of the problem type URI.
- `403`: CLI login error. Branch on the final component of the problem type URI.
- `415`: CLI login error. Branch on the final component of the problem type URI.
- `429`: CLI login error. Branch on the final component of the problem type URI.

---

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