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 |
|---|---|---|---|
apiKey | string | required | App API key. |
timeout | number | 30000 | HTTP request timeout in ms. |
caller | string | undefined | Audit attribution label. Free-form string or a managed-agent UUID. See Concepts → Caller. |
callerType | CallerType | SERVICE | SERVICE (default) or AGENT. |
userTokenGetter | function | undefined | Sync or async function returning a JWT for identity resolution. |
Properties
| Property | Type | Notes |
|---|---|---|
actorId | string | null | Cached actor UUID. |
agents | AgentsNamespace | See Agents reference. |
baseUrl | string | Resolved Alter Vault endpoint. Diagnostic only. |
lastRetryInfo | RetryInfo | null | 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 callerType is implicit (always AGENT). userTokenGetter is allowed but per-call combination of an agent key with a userToken returns HTTP 400 — see Agents → Overview.
Example
Lifecycle
Always callclose() to release the underlying HTTP pool when the SDK instance is no longer needed: