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.
list_grants()
Available on both App and Agent. The App variant accepts an optional provider_id filter; the Agent variant does not.
Signature
Returns
UnifiedGrantListResult with:
grants: list[OAuthGrantItem | ManagedSecretGrantItem]— discriminate ongrant_kind.total: int,limit: int,offset: int,has_more: bool.
Example
create_managed_secret_grant()
Available on App (any principal) and Agent (self only).
Signature
grant_policy accepts expires_at, max_ttl_seconds, and default_ttl_seconds. See GrantPolicyInput.
Returns
CreateGrantResult with grant_id, principal_type, label, created_at.
Raises
PolicyViolationError, AlterValueError.
Example
revoke_grant()
App only.
Signature
Returns
RevokeGrantResult with success, message, grant_id, revoked_at.
Raises
GrantNotFoundError, GrantRevokedError (already revoked), PolicyViolationError.
Example
revoke_delegation()
App.revoke_delegation(grant_id, agent_id) — operator path.
Agent.revoke_delegation(grant_id) — agent self-revoke.
Signatures
Behavior
Removes the agent’s access path on the grant. The underlying user grant is unchanged. To revoke the underlying grant, callrevoke_grant() instead.
Example
See also
- OAuth → Managing grants
- Types — full schemas for
OAuthGrantItem,ManagedSecretGrantItem,GrantPolicy,Principal.