Agents
An Agent is your AI agent that makes purchases. Agents belong to Users and can have multiple Cards.Users vs Agents
Users are the funding source. They complete KYC and deposit funds. Agents are the spenders. They issue cards and make purchases against the user’s balance. Example setups:| Scenario | Users | Agents |
|---|---|---|
| Your company funds all AI spending | 1 user (your company) | Multiple agents (one per workflow) |
| Your customers fund their own AI | 1 user per customer | Agents act on each customer’s behalf |
Create an Agent
Spending Limits
Limit total spending across all of an agent’s cards:| Field | Description |
|---|---|
spendingLimit | Max spend in cents |
spendingLimitFrequency | Reset period |
onLimitExceeded | What happens when limit is hit |
perTransaction, per24HourPeriod, perWeek, perMonth, perYear, allTime
When limit exceeded:
| Value | Behavior |
|---|---|
suspend | Freeze agent and all its cards |
notify | Send webhook, allow transactions |
none | Just track |
Status
| Status | Description |
|---|---|
active | Can create cards and transact |
suspended | All cards frozen |
Check Spending
Webhooks
| Event | Description |
|---|---|
agent.created | Agent created |
agent.suspended | Agent suspended |
agent.limit_exceeded | Limit hit |