cURL
curl --request DELETE \ --url https://api.example.com/v1/api-keys/{key_id} \ --header 'Authorization: Bearer <token>'
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>" } ] }
Revoke an API key. The key will immediately stop authenticating requests. This action cannot be undone.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successful Response