latestOpenAPI 3.0.32026-08-2142130334.7 KB

0a94056fba48

API Keys

Revoke an API key

Permanently revokes an API key while retaining reveal-safe lifecycle and audit metadata. Requires api_keys:write and a live admin/owner membership. Repeating the request is safe.

delete/api-keys/{apiKeyId}

Path parameters

apiKeyIdstring required

Stable API key identifier.

Stable API key identifier.

Response

Revoked API key.

Example response

{
  "data": {
    "key": {
      "id": "01jzn7e61x3a7v9h2r7t2m3q4p",
      "subject": {
        "workspace_membership_id": "01jzn7e61x3a7v9h2r7t2m3q4p"
      }
    }
  }
}