Backend API
cURL
curl --request POST \ --url https://api.wacht.dev/api-auth/keys/revoke \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "key_id": "1234567890123456789", "reason": "No longer needed" } '
{ "message": "<string>" }
Revoke an API key by ID
API key authentication (format: Bearer {api_key})
Key ID to revoke
"1234567890123456789"
Reason for revocation
"No longer needed"
API key revoked
Was this page helpful?