Skip to main content
DELETE
/
v1
/
keys
/
{key_id}
Revoke API key
curl --request DELETE \
  --url http://localhost:8000/v1/keys/{key_id} \
  --header 'Authorization: Bearer <token>'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

API Key authentication. Format: dk_test_ or dk_live_

Path Parameters

key_id
string<uuid>
required

ID of the API key to revoke

Response

API key revoked successfully