---
title: "Delete an API key"
method: DELETE
path: "/api-keys/{api_key_id}"
tags: ["API Keys"]
---

# Delete an API key

`DELETE /api-keys/{api_key_id}`

## Request

- Base URL: `https://statusstack.com/api`
- URL: `https://statusstack.com/api/api-keys/{api_key_id}`
- Auth: HTTP bearer

## Response `200`

API key deleted successfully

- object
  - `message` string

## Other responses

- `401`: No valid Sanctum session or token. Laravel's own `{message}` body.
- `403`: The policy refused access to this key.
- `404`: No such key among the user's own keys.

---

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