Agents are the AI entities that act on behalf of your users or systems. You register an agent once, attach one or more mandates to it, and Mandate’s policy engine uses the agent’s identity to authorize every purchase the agent attempts. An agent can be revoked at any time, instantly blocking all future spend.Documentation Index
Fetch the complete documentation index at: https://docs.usemandate.io/llms.txt
Use this file to discover all available pages before exploring further.
Create an agent
status: "active" and can begin making policy-governed payments immediately.
Request body
A human-readable name for the agent. Used in the dashboard and transaction records.
An optional description of what the agent does — for example,
"Fetches company data from financial APIs".An optional list of capability tags that describe what actions this agent can perform, e.g.
["data-fetch", "financial-research"]. Not enforced by policy; used for organizational purposes.201
Unique agent identifier, prefixed with
agent_.The name you provided at creation.
The description you provided at creation, or
null if omitted.The capabilities array you provided, or
[] if omitted.Always
"active" for a newly created agent. Possible values: "active", "revoked".true if the agent was created with a sandbox API key.ISO 8601 timestamp set when the agent is revoked.
null while active.ISO 8601 creation timestamp.
ISO 8601 timestamp of the last update.
Example response
List agents
200
Array of agent objects. Each object has the same shape as the response from
POST /v1/agents.Example response
Get an agent
404 if the agent does not exist or does not belong to your account.
Path parameters
The agent ID to retrieve, e.g.
agent_abc123.200
Returns the agent object. See Create an agent for the full field list.
Error responses
| Status | Detail | Cause |
|---|---|---|
404 | not_found | Agent does not exist or belongs to a different account. |
Revoke an agent
agent_revoked. This action is irreversible — you cannot re-activate a revoked agent.
Path parameters
The agent ID to revoke.
200
Returns the updated agent object with status: "revoked" and revoked_at set to the revocation timestamp.
Example response
| Status | Detail | Cause |
|---|---|---|
400 | Agent not found or already revoked | Agent is already revoked or not found. |

