---
title: "Revoke an ingest key."
method: POST
path: "/projects/{project_id}/analytics/ingest-keys/{key_id}/revoke"
tags: ["Analytics Ingest Keys"]
---

# Revoke an ingest key.

`POST /projects/{project_id}/analytics/ingest-keys/{key_id}/revoke`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/analytics/ingest-keys/{key_id}/revoke`
- Auth: HTTP bearer

Soft by design: the row is kept with `is_active = false` and `revoked_at`
set, so the record of which key ingested what survives. The key stops
resolving immediately.

## Path parameters

- `project_id` integer, required
- `key_id` integer, required

## Response `204`

Ingest key revoked

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Ingest key not found in this project
- `500`: Internal server error

## Changes

- **2026-09-07** `c2a1f69745e7`: 1 info
  - endpoint added
- **2026-09-07** `7a3103561bd0`: 1 breaking
  - api path removed without deprecation
- **2026-09-07** `7fcff272f099`: 1 info
  - endpoint added
- **2026-09-07** `c1fa498b6377`: 1 breaking
  - api path removed without deprecation
- **2026-09-07** `c43de0e360be`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/analytics/ingest-keys/:key_id/revoke/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
