---
title: "Revoke API Key"
method: DELETE
path: "/apikeys/{key_id}"
tags: ["Authentication/API Key (Machine 2 Machine)"]
---

# Revoke API Key

`DELETE /apikeys/{key_id}`

This is a limited action and will require special access to revoke API keys. Revoking the apikey will remove the key from the DB and any Cache stoping access immediately.

## Path parameters

- `key_id` string, required

## Response `202`

- SuccessResponse
  - `code` integer, required
  - `message` string, required

## Other responses

- `400`
- `401`
- `403`
- `404`

---

[API](https://skmtc.net/ns-api/apis/netsapiens-api-v2.md) · [All operations](https://skmtc.net/ns-api/apis/netsapiens-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ns-api/netsapiens-api-v2/revisions/d37f65b5b886/schema)
