---
title: "DELETE /api/v1/user/api-keys/{id}"
method: DELETE
path: "/api/v1/user/api-keys/{id}"
tags: ["user"]
---

# DELETE /api/v1/user/api-keys/{id}

`DELETE /api/v1/user/api-keys/{id}`

## Request

- Base URL: `https://api.ekiden.fi`
- URL: `https://api.ekiden.fi/api/v1/user/api-keys/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/ekidenfi/apis/ekiden-gateway/docs/api/v1/user/api-keys/:id/delete.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` string, required

## Response `200`

API key revoked

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: API key not found

## Changes

- **2026-02-23** `75c5584f10a5`: 2 info
  - the endpoint scheme security `api_key_auth` was removed from the API
  - added the non-success response with the status `400`
- **2026-01-29** `16fe50636aa5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/ekidenfi/apis/ekiden-gateway/changes/api/v1/user/api-keys/:id/delete.md)

---

[API](https://skmtc.dev/ekidenfi/apis/ekiden-gateway.md) - [All operations](https://skmtc.dev/ekidenfi/apis/ekiden-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/ekidenfi/apis/ekiden-gateway/revisions/fad9eecaba2e?raw)
