---
title: "Revoke an API key"
method: DELETE
path: "/v1/workspaces/{workspaceId}/api-keys/{id}"
tags: ["API Keys"]
---

# Revoke an API key

`DELETE /v1/workspaces/{workspaceId}/api-keys/{id}`

## Request

- Base URL: `https://api.maevesocial.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.maevesocial.com/v1/workspaces/{workspaceId}/api-keys/{id}`
- Auth: HTTP bearer

Soft-revokes an API key. The key can no longer be used for authentication.

## Path parameters

- `id` string, required
- `workspaceId` string, uuid, required

## Response `200`

API key revoked

- object
  - `data` PublicApiKeyRevokedDto, required
    - `id` string, uuid, required
    - `revoked` true, required
  - `meta` unknown, required

## Other responses

- `404`: API key not found

---

[API](https://skmtc.dev/maevesocial/apis/maeve-social-api.md) · [All operations](https://skmtc.dev/maevesocial/apis/maeve-social-api/llms.txt) · [OpenAPI document](https://skmtc.dev/maevesocial/apis/maeve-social-api/revisions/1b00fd7e4b15?raw)
