| title | Authentication |
|---|---|
| description | Authenticate requests to the Sweetr API using API keys. |
| icon | key |
All API requests must include a valid API key in the Authorization header using the Bearer scheme:
Authorization: Bearer YOUR_API_KEYAPI keys are scoped to a workspace. To generate one:
- Open the Sweetr dashboard.
- Navigate to Settings > Workspace.
- Scroll down to the API section.
- Click Regenerate and copy the generated key.
- Never commit API keys to source control.
- Use CI/CD secrets (e.g., GitHub Actions secrets, GitLab CI variables) to inject keys at runtime.