cURL
curl --request DELETE \ --url http://localhost:8000/v1/keys/{key_id} \ --header 'Authorization: Bearer <token>'
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>" } ] }
Revoke an API key immediately.
The key cannot be used for authentication after this operation. The key record is retained for audit purposes.
API Key authentication. Format: dk_test_ or dk_live_
ID of the API key to revoke
API key revoked successfully