---
title: "Deny a sprout key"
method: POST
path: "/api/v1/keys/{id}/deny"
tags: ["keys"]
---

# Deny a sprout key

`POST /api/v1/keys/{id}/deny`

Denies a sprout key, preventing future connections.

## Path parameters

- `id` string, required

## Response `200`

Key denied

- unknown

## Other responses

- `400` — Bad request — missing or invalid parameters
- `502` — NATS communication error — farmer unreachable or returned an error

## Changes

- **2026-03-13** `26871a2f667f` — 1 breaking, 2 warning
  - the response's body type changed from `object` to no type for status `200`
  - removed the optional property `error` from the response with the `200` status
  - removed the optional property `result` from the response with the `200` status

[Change history](https://skmtc.dev/gogrlx/apis/grlx-cli-api/changes/api/v1/keys/:id/deny/post.md)

---

[API](https://skmtc.dev/gogrlx/apis/grlx-cli-api.md) · [All operations](https://skmtc.dev/gogrlx/apis/grlx-cli-api/llms.txt) · [OpenAPI document](https://skmtc.dev/gogrlx/apis/grlx-cli-api/revisions/26871a2f667f?raw)
