---
title: "Revoke an API key immediately"
method: DELETE
path: "/me/api-keys/{keyId}"
tags: ["Accounts"]
---

# Revoke an API key immediately

`DELETE /me/api-keys/{keyId}`

## Request

- Base URL: `https://api.temp.md`
- URL: `https://api.temp.md/me/api-keys/{keyId}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/temp-md/apis/temp-md-public-api/docs/me/api-keys/:keyId/delete.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `keyId` string, required

## Response `200`

Successful response

- object

## Other responses

- `401`: Authentication required or invalid
- `404`: Resource not found

---

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