Skip to main content
PATCH
/
v1
/
api-keys
/
{id}
Revoke a tenant API key
curl --request PATCH \
  --url https://api.usezombie.com/v1/api-keys/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "active": false
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "active": false,
  "revoked_at": 123
}

Documentation Index

Fetch the complete documentation index at: https://docs.usezombie.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Obtain a token via the CLI auth flow (POST /v1/auth/sessions) or GitHub OAuth

Path Parameters

id
string<uuid>
required

UUIDv7 of the API key.

Body

application/json
active
enum<boolean>
required
Available options:
false

Response

OK

id
string<uuid>
required
active
enum<boolean>
required
Available options:
false
revoked_at
integer<int64>
required