Authentication
Token types, key lifecycle, and where each credential may be used.
Every call to the gateway carries a bearer token:
Authorization: Bearer <token>Which token depends on what you're doing.
Token types
| Token | Prefix | Used for | Where it may live |
|---|---|---|---|
| Customer session | sis_ | Console operations: manage keys, read reports | Console only, never in app code |
| API key | si_ | Inference requests | Your backend. Avoid shipping it in browser apps |
Session tokens expire after 30 days. API keys live until you revoke them.
API key lifecycle
- Create keys in the console, optionally with a spend cap, a requests-per-minute limit, and a tokens-per-minute limit.
- The plaintext value is returned exactly once at creation. Afterwards, list views show only the prefix and last four characters.
- There is no rotation endpoint. Rotate by creating a replacement key and revoking the old one. Revocation is immediate.
- Roles:
owner,admin, anddevelopercan create and revoke keys; viewer-style roles can read reports but not manage keys.
Give production keys a spend cap
A leaked si_ key can spend your balance up to its cap (or your balance, if
uncapped). Give every production key a spend cap and per-minute limits.
Scopes
Keys carry scopes such as provider:invoke and reports:read. Today, inference
is authorized by provider:invoke; customer reports are authorized by the session
token rather than the API key. Treat scopes as forward-compatible metadata.