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.getAgent()
Returns an Agent instance backed by the app key, with caller pinned to the agent UUID. The “monolithic” shape — see Agents → Overview.
Signature
Example
App.agents namespace
Operator surface for managed agents and their keys. All methods async; require the App key.
agents.create()
scopes is a per-provider allowlist ({ google: ["gmail.readonly"], slack: ["chat.write"] }), not a flat list. AgentCreateResult extends AgentInfo with apiKey (plaintext, shown once).
agents.list()
agents.get(), agents.getByName()
agents.update()
scopes must be the FULL desired per-provider allowlist — the backend rejects narrowing (any provider key dropped, or any scope removed from an existing provider’s list) with AgentScopeNarrowingNotSupportedError.
agents.delete()
agents.mintKey()
AgentKeyMintResult extends AgentKey with apiKey (plaintext, shown once).
agents.listKeys()
AgentKeyList has a single items: AgentKey[] field; no pagination.
agents.deprecateKey(), agents.undeprecateKey()
agents.revokeKey()
force: true required when revoking the last active key — otherwise throws LastActiveKeyError.
Agent.me()
Returns the calling agent’s AgentInfo. Available on Agent only.
Signature
Agent.trace()
Runs a callback with runId and other tracing fields bound to every request inside the scope. Available on Agent only.