Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 831 Bytes

File metadata and controls

30 lines (22 loc) · 831 Bytes
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_KEY

Generating API keys

API keys are scoped to a workspace. To generate one:

  1. Open the Sweetr dashboard.
  2. Navigate to Settings > Workspace.
  3. Scroll down to the API section.
  4. Click Regenerate and copy the generated key.
API keys are only displayed once at creation time. Store them securely — for example, as a secret in your CI/CD provider.

Security best practices

  • Never commit API keys to source control.
  • Use CI/CD secrets (e.g., GitHub Actions secrets, GitLab CI variables) to inject keys at runtime.