Platform · Authentication
Authentication
Savitar APIs authenticate every request with a bearer token. The same primitives — API keys, OAuth 2.0, and signed JWTs — apply across every product on the platform.
API keys
Generate keys from the dashboard. Each key is scoped to an environment (test or live) and a single workspace. Pass it via the Authorization: Bearer … header.
OAuth 2.0
For multi-tenant apps that act on behalf of end users, register an OAuth client in the dashboard. Savitar supports the authorization code flow with PKCE. Tokens are short-lived (1 hour) and refreshable.
JWTs (service-to-service)
Enterprise workspaces can mint short-lived JWTs signed with their tenant private key. Avoids rotating long-lived secrets in CI runners. Token lifetime is configurable from 60 seconds to 24 hours.
Best practices
- • Store keys in a secret manager. Never check them into source control.
- • Use a different key per service so revocation is surgical.
- • Rotate keys quarterly. Old keys remain valid for 24h after rotation.
- • Restrict keys by IP allowlist for batch and back-office workloads.
