Skip to main content

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

This action is irreversible! Once an API key is revoked, it cannot be recovered or reactivated. Make sure you want to revoke the key before calling this endpoint.
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:
  1. All active sessions using that key will be terminated
  2. Any pending requests will fail with authentication errors
  3. You’ll need to generate a new key to continue using the API
  4. Update all applications and scripts with the new key

Example: Complete Key Rotation Flow