Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Manage authorization grants and delegation
grant, err := client.Grants.Get(ctx, "grant-id")
result, err := client.Grants.List(ctx, &grantex.ListGrantsParams{ AgentID: "agent-id", Status: "active", }) for _, g := range result.Grants { fmt.Printf("%s: %v\n", g.ID, g.Scopes) }
nil
err := client.Grants.Revoke(ctx, "grant-id")
resp, err := client.Grants.Delegate(ctx, grantex.DelegateParams{ ParentGrantToken: "parent-jwt-token", SubAgentID: "sub-agent-id", Scopes: []string{"read:email"}, ExpiresIn: "1h", }) fmt.Printf("Delegated token: %s\n", resp.GrantToken)
Grant
ID
string
AgentID
AgentDID
PrincipalID
DeveloperID
Scopes
[]string
Status
"active"
"revoked"
"expired"
IssuedAt
ExpiresAt
RevokedAt
*string
DelegateResponse
GrantToken
GrantID