Documentation Index
Fetch the complete documentation index at: https://docs.alterauth.com/llms.txt
Use this file to discover all available pages before exploring further.
App
The operator/admin client. Constructed with an app key (alter_key_app_…).
Signature
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
api_key | str | required | App API key. |
timeout | float | 30.0 | HTTP request timeout in seconds. |
caller | str | None | None | Audit attribution label. Free-form string or a managed-agent UUID. See Concepts → Caller. |
caller_type | CallerType | SERVICE | SERVICE (default) or AGENT (shows in dev-portal Agents tab). |
user_token_getter | callable | None | None | Sync or async callable returning a JWT for identity resolution. |
Properties
| Property | Type | Notes |
|---|---|---|
actor_id | str | None | Cached actor UUID. |
agents | AgentsNamespace | See Agents reference. |
base_url | str | Resolved Alter Vault endpoint. Diagnostic only. |
last_retry_info | RetryInfo | None | Retry metadata from the most recent request(). |
Example
Agent
The workload client. Constructed with an agent key (alter_key_agent_…).
Signature
Parameters
Same asApp, except caller_type is implicit (always AGENT). user_token_getter is allowed but per-call combination of an agent key with a user_token returns HTTP 400 — see Agents → Overview.
Example
Lifecycle
Both classes are async-safe. Always callclose() to release the underlying HTTP pool, or use the async context manager: