Overview
Theagents sub-client manages the lifecycle of AI agents in your Grantex organization. Each agent receives a unique decentralized identifier (DID) and can request scoped grants from users.
agents.register()
Register a new agent with the Grantex service.Parameters
Human-readable name for the agent.
A description of what the agent does.
The maximum set of scopes this agent can request. Authorization requests must use a subset of these scopes.
Response: Agent
Unique agent identifier.
Decentralized identifier (DID) for the agent.
The agent’s display name.
The agent’s description.
The agent’s registered scopes.
Agent status:
'active', 'suspended', or 'revoked'.The developer organization that owns this agent.
ISO 8601 creation timestamp.
ISO 8601 last-updated timestamp.
agents.get()
Retrieve a single agent by its ID.Parameters
The agent ID to retrieve.
Response
Returns anAgent object.
agents.list()
List all agents in your organization.Response: ListAgentsResponse
Array of agent objects.
Total number of agents.
Current page number.
Number of agents per page.
agents.update()
Update an existing agent’s name, description, or scopes.Parameters
The agent ID to update.
New display name.
New description.
New set of registered scopes.
Response
Returns the updatedAgent object.
agents.delete()
Delete an agent. This revokes the agent’s DID and all active grants.Parameters
The agent ID to delete.
Response
Returnsvoid.