Authentication
All authenticated endpoints take a Bearer token in the Authorization
header:
Authorization: Bearer sk_stav_live_...
Keys are sk_stav_live_... (production) or sk_stav_test_... (sandbox);
user-scoped keys carry a sk_stav_user_ prefix. Legacy hm_* keys are
no longer accepted. x-api-key is accepted as an alternative header, for
Anthropic-SDK compatibility; Authorization wins when both are present.
A key may be restricted to a subset of scopes — inference:chat,
inference:messages, inference:embeddings, inference:audio,
inference:decisions, inference:rerank, inference:images,
inference:models.
A key with no scopes set has full access; scopes
are opt-in restriction. Listing models comes with any inference scope: a scoped
key can call GET /v1/models, whatever surface it is for, and
inference:models stays valid.
GET /v1/auth/validate echoes back the workspace, key name, environment and
scopes attached to a key — the cheapest way to check a deployment.
To create a key, go to Your workspace → Connect → API keys. Keep the secret value safe — it's shown once at creation and never again.