---
title: "Revoke an API key"
method: POST
path: "/v1/api-keys/{id}/revoke"
tags: ["Workspace"]
---

# Revoke an API key

`POST /v1/api-keys/{id}/revoke`

## Request

- Base URL: `https://www.chatrail.dev`
- URL: `https://www.chatrail.dev/v1/api-keys/{id}/revoke`
- Auth: API key in cookie `chatrail_session`

## Path parameters

- `id` string, required

## Response `200`

Revoked, immediately.

## Other responses

- `404`: No such key.

---

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