Skip to main content

Managing Tokens

This guide will help you manage your API tokens effectively and securely.

Token Best Practices

1. Use Different Tokens for Different Environments

Create separate tokens for development, staging, and production:

2. Store Tokens Securely

Never hardcode tokens in your code. Use environment variables or secure configuration management:

3. Rotate Tokens Regularly

Generate new tokens periodically and phase out old ones:

4. Monitor Token Usage

Regularly check token usage and watch for unusual patterns:

Token Management Through Dashboard

Creating Tokens

  1. Navigate to the API Tokens page
  2. Click “Generate New Token”
  3. Enter a descriptive name
  4. Set an expiration date
  5. Copy and securely store the token

Revoking Tokens

If a token is compromised:
  1. Navigate to API Tokens
  2. Find the compromised token
  3. Click the “Revoke” button
  4. Generate a new token to replace it

Token Management Through API

Generating Tokens

Listing Tokens

Revoking Tokens

Error Handling

Implement proper error handling for token management:

Security Checklist

✅ Use environment variables for token storage
✅ Rotate tokens regularly (every 30-90 days)
✅ Monitor token usage for suspicious activity
✅ Use different tokens for different environments
✅ Implement proper error handling
✅ Have a token rotation strategy
✅ Keep tokens out of version control
✅ Revoke compromised tokens immediately

Next Steps