Skip to main content

Authentication

Secure your API requests with API keys.

Getting an API Key

  1. Go to your Dashboard
  2. Navigate to SettingsAPI Keys
  3. Click Create API Key
  4. 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:

  1. Go to SettingsAPI Keys
  2. Find the key to revoke
  3. 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