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

# Revoke an API key

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

## Request

- Base URL: `https://api.samva.dev`
- URL: `https://api.samva.dev/v1/api-keys/{id}/revoke`
- Auth: API key in header `x-api-key`

Deactivates an API key so it can no longer authenticate requests. Revocation is final: a revoked key never authenticates again. Its record stays listable, so the messages it sent stay attributed to it.

## Path parameters

- `id` string, required

## Response `200`

SuccessResponse

- SuccessResponse
  - `success` boolean, required

## Other responses

- `401`: UnauthorizedError
- `403`: ForbiddenError
- `404`: ResourceNotFoundError
- `422`: ValidationError
- `500`: InternalError
- `502`: BillingProviderError
- `504`: GatewayTimeoutError

---

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