---
title: "revoke a p i key"
method: DELETE
path: "/api/v1/auth/api-keys/{id}"
tags: ["api/v1/auth"]
---

# revoke a p i key

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

#### Controller: 

`github.com/raghavyuva/nixopus-api/internal/features/auth/controller.(*AuthController).RevokeAPIKey`

#### Middlewares:

- `github.com/go-fuego/fuego.defaultLogger.middleware`
- `github.com/raghavyuva/nixopus-api/internal/routes.(*Router).SetupRoutes.(*Router).setupAuthentication.func1`

---

## Path parameters

- `id` string, required

## Headers

- `Accept` string

## Response `200`

OK

- MessageResponse — MessageResponse schema
  - `message` string
  - `status` string

## Other responses

- `400` — Bad Request _(validation or deserialization error)_
- `500` — Internal Server Error _(panics)_
- `default`

## Changes

- **2026-01-12** `fe00a22d297b` — 1 info
  - endpoint added
- **2026-01-12** `5357702c41f9` — 1 breaking
  - api path removed without deprecation
- **2026-01-11** `581d20fad873` — 1 info
  - endpoint added
- **2026-01-11** `5357702c41f9` — 1 breaking
  - api path removed without deprecation
- **2026-01-10** `5357702c41f9` — 1 breaking
  - api path removed without deprecation

[Full history](https://skmtc.dev/nixopus/apis/openapi/changes/api/v1/auth/api-keys/:id/delete.md)

---

[API](https://skmtc.dev/nixopus/apis/openapi.md) · [All operations](https://skmtc.dev/nixopus/apis/openapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nixopus/openapi/revisions/fbe4892de50e/schema)
