Skip to main content
All API requests require authentication via Bearer token in the Authorization header.

API Keys

Generate API keys from the Developer Dashboard at synthraai.dev/dashboard

Key Format

  • live_ prefix for production keys
  • test_ prefix for development keys

Using API Keys

Include the API key in the Authorization header:

Key Management

Creating Keys

Revoking Keys

Rotating Keys

Returns a new key while keeping the old key active for 24 hours.

Scopes

Control API access with granular scopes:

Security Best Practices

Environment Variables

Key Rotation

Rotate keys every 90 days for security.

Least Privilege

Grant only required scopes to each key.

Monitoring

Monitor key usage in the dashboard for suspicious activity.
Never expose API keys in client-side code, public repositories, or logs. If a key is compromised, revoke it immediately.
Test keys are limited to 100 requests per day and cannot access production data.