stet
API reference

Revoke an API key

**Dashboard-session only** — this operation does not accept `bk_` Bearer auth. Requires capability `apikey:manage` (Admin role). Sets `revokedAt`; the row is kept (not deleted) for audit history.

DELETE/api/keys/{id}
__session<token>

A signed-in Clerk dashboard session (browser cookie), not a bk_ API key. /api/keys deliberately rejects Bearer auth on every operation — a key must never be able to mint or revoke keys — so API-key management is reachable only from the Stet dashboard, not programmatically. Documented here for completeness.

In: cookie

Path Parameters

idstring

Response Body

curl -X DELETE "https://app.stethq.com/api/keys/string"
Empty
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string"
}