Description
Revoke an existing API key. Once revoked, the key cannot be used for authentication and cannot be recovered. You’ll need to generate a new key if you want to continue using the API.Important Notes
After revoking a key, you can immediately generate a new one using the
/api-key/generate endpoint.Authentication
This endpoint requires:- The API key you want to revoke (it authenticates itself for revocation)
- Or a service key with the wallet address
Request Headers
Response Fields
Error Codes
Common Use Cases
1. Security Breach
If you suspect your API key has been compromised:2. Key Rotation
Regular key rotation for security:3. Cleanup Before Account Migration
Rate Limiting
This endpoint is rate-limited to prevent abuse:- 5 requests per minute per API key
- 10 requests per hour per wallet address
After Revocation
Once you’ve revoked your API key:- All active sessions using that key will be terminated
- Any pending requests will fail with authentication errors
- You’ll need to generate a new key to continue using the API
- Update all applications and scripts with the new key