---
title: "Revoke a temporary API key"
method: DELETE
path: "/api/temporary-keys/{id}/"
tags: ["Temporary API Keys"]
---

# Revoke a temporary API key

`DELETE /api/temporary-keys/{id}/`

## Request

- Base URL: `https://api.respan.ai`
- URL: `https://api.respan.ai/api/temporary-keys/{id}/`
- Auth: HTTP bearer

Revokes access and retains the key record. This action cannot be undone.

## Path parameters

- `id` string, required

## Response `204`

Deleted.

## Other responses

- `403`: The API key is missing, invalid or expired.
- `404`: Not Found

## Changes

- **2026-10-21** `c30bcb383ee8`: 1 breaking, 4 info
  - removed the success response with the status `200`
  - api operation id `temporaryApiKeys_deleteApiKey` removed and replaced with `deleteApiKey`
  - api tag `Temporary API Keys` added
  - api tag `temporaryApiKeys` removed
  - …1 more
- **2026-10-02** `b830b79cfd52`: 2 info
  - added the non-success response with the status `403`
  - removed the non-success response with the status `401`
- **2026-09-17** `6fa8242da8c2`: 1 warning, 1 info
  - deleted the `header` request parameter `Authorization`
  - the endpoint scheme security `RespanApiKey` was added to the API
- **2026-09-12** `22b868ef3f22`: 1 info
  - api operation id `delete-api-key` removed and replaced with `temporaryApiKeys_deleteApiKey`

[Operation history](https://skmtc.dev/respan/apis/respan-api/changes/api/temporary-keys/:id/delete.md)

---

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