API Keys
Generate API keys from the Developer Dashboard at synthraai.dev/dashboardKey Format
live_prefix for production keystest_prefix for development keys
Using API Keys
Include the API key in the Authorization header:Key Management
Creating Keys
Revoking Keys
Rotating Keys
Scopes
Control API access with granular scopes:| Scope | Description |
|---|---|
read:sessions | View session details |
write:sessions | Create and delete sessions |
read:messages | View message history |
write:messages | Send messages |
read:analytics | Access analytics data |
admin | Full account access |
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.Test keys are limited to 100 requests per day and cannot access production data.