Skip to content

Authentication

Gateway calls authenticate with a bearer API key:

Terminal window
curl https://api.sintaks.dev/v1/chat/completions \
-H "Authorization: Bearer sk-..."
  • Keys authenticate an organization, not a user session.
  • The raw key is shown once at creation. Only the SHA-256 hash is persisted.
  • Revoking or rotating a key propagates to the gateway within about a minute; revoked keys receive 401.
  • Keep keys server-side. Never embed them in browser bundles or client apps.

The customer portal signs in through the platform’s hosted auth (email verification, passwordless OTP or password) and exchanges the session for a short-lived JWT accepted by the platform. API keys are never used to sign in.

StatusMeaning
401Missing, malformed, revoked, or invalid API key.
402Authenticated, but the organization’s IDR balance cannot cover the reservation. Top up first.
503The request could not be completed upstream; it is safe to retry with the same request.