cURL
curl --request DELETE \ --url https://ninjachat.ai/api/api-keys \ --header 'Authorization: Bearer <token>'
{ "success": true, "message": "<string>" }
Revoke an API key. Revoked keys stop working immediately but remain visible in your key list.
API key starting with nj_sk_
The ID of the API key to revoke.
Key revoked.