Skip to main content
POST
/
v1
/
api-keys
/
{id}
/
revoke
Revoke API Key
curl --request POST \
  --url https://api.truthlocks.com/v1/api-keys/{id}/revoke \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "reason": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "REVOKED"
}
Permanently revokes an API key. This action cannot be undone. All requests using this key will immediately return 401 Unauthorized.

Parameters

id
uuid
required
API Key ID to revoke

Responses

Authorizations

X-API-Key
string
header
required

API key for machine-to-machine authentication

Path Parameters

id
string<uuid>
required

Body

application/json
reason
string

Reason for revocation

Response

200 - application/json

Key revoked

id
string<uuid>
status
enum<string>
Available options:
REVOKED