---
title: "Archive Api Key"
method: DELETE
path: "/api/v1/user/api-keys/{api_key_id}"
tags: ["main"]
---

# Archive Api Key

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

Archive an API key (soft delete).

## Path parameters

- `api_key_id` integer, required

## Headers

- `authorization` string, nullable
- `X-API-Key` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `404` — Not found
- `422` — Validation Error

---

[API](https://skmtc.net/dograh/apis/dograh-api.md) · [All operations](https://skmtc.net/dograh/apis/dograh-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dograh/dograh-api/versions/e7d045c0295a/schema)
