Authentication
Secure your API requests with API keys.
Getting an API Key
- Go to your Dashboard
- Navigate to Settings → API Keys
- Click Create API Key
- Copy and securely store your key
warning
API keys are shown only once. Store them securely.
Using Your API Key
Include your API key in the Authorization header:
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://api.trydiffy.com/domains
API Key Permissions
API keys inherit your account permissions:
- Access to all domains in your organization
- Read and write capabilities
- Subject to your plan's rate limits
Revoking Keys
To revoke an API key:
- Go to Settings → API Keys
- Find the key to revoke
- Click Revoke
Revoked keys are immediately invalidated.
Security Best Practices
- Never commit API keys to version control
- Use environment variables to store keys
- Rotate keys periodically
- Use separate keys for different environments
- Revoke unused keys promptly