---
title: "Console Cli Device Deny"
method: POST
path: "/api/v1/console/cli/device/{user_code}/deny"
tags: ["console"]
---

# Console Cli Device Deny

`POST /api/v1/console/cli/device/{user_code}/deny`

## Request

- Base URL: `https://ndi-api.nace.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://ndi-api.nace.ai/api/v1/console/cli/device/{user_code}/deny`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/nace/apis/ndi-service/docs/api/v1/console/cli/device/:user_code/deny/post.ts> (a function with typed inputs; its response is checked against the schema)

Refuse the CLI login. The next token poll returns ``access_denied``.

## Path parameters

- `user_code` string, required

## Response `204`

Successful Response

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `402`: Payment Required
- `403`: Identity rejected or account disabled.
- `404`: No console account yet — call POST /console/session first.
- `409`: Conflict
- `413`: Request Entity Too Large
- `422`: Unprocessable Entity
- `500`: Internal Server Error
- `503`: Service Unavailable

---

[API](https://skmtc.dev/nace/apis/ndi-service.md) - [All operations](https://skmtc.dev/nace/apis/ndi-service/llms.txt) - [OpenAPI document](https://skmtc.dev/nace/apis/ndi-service/revisions/d9d1f8ec2207?raw)
