Bearer token in the
Authorization header. There are four supported token types, evaluated in
this priority order:
Required scope
All API keys used with the MCP must carry themcp:patient-state scope.
Keys without this scope receive 403 Forbidden. Create a key with the correct
scope in the Console or with the CLI:
Patient Tokens
Patient Tokens are short-lived (15 min) JWTs locked to a single patient. Use them when running an agent on a patient-facing device; thepatient_id is
embedded in the token and cannot be overridden by the caller.
Mint server-side using the SDK.
The API key used here must carry the sdk:patient-token scope; create one with
olira keys create --name "token-minter" --scopes sdk:patient-token.
patient_id from all tool arguments; it is
resolved automatically from the token.

