Skip to main content
POST
/
v1
/
consumer
/
api-keys
/
{id}
/
revoke
Revoke Consumer API Key
curl --request POST \
  --url https://api.truthlocks.com/v1/consumer/api-keys/{id}/revoke \
  --header 'Authorization: Bearer <token>'
{
  "message": "API key revoked"
}
Permanently revokes a consumer API key. All requests using this key will immediately return 401 Unauthorized. This action cannot be undone.

Parameters

id
uuid
required
The key_id of the API key to revoke.

Responses

{
  "message": "API key revoked"
}

Authorizations

Authorization
string
header
required

JWT for user-initiated operations

Path Parameters

id
string<uuid>
required

The key_id of the API key to revoke

Response

Key revoked

message
string