Skip to main content

Configuration

Create a complete SPEND_LIMIT policy with its rules in one request:

Rule types

value is always a string, such as "500", or a JSON-encoded object for BUDGET_CAP. A bare number fails validation. See Budget allocations for BUDGET_CAP periods and scopes.

How it works

  1. Per-Transaction: Checked against the requested amount
  2. Daily/Weekly/Monthly: Checked against cumulative spend + requested amount
Daily, weekly, and monthly policy limits assigned to an agent or to the organization count the agent’s combined spend across its wallets and live cards. With a 100dailylimit,a100 daily limit, a 60 wallet payment leaves $40 available for live-card payments that day. Concurrent wallet and card reservations share the same agent lock and recheck hard period limits before recording spend. Synthetic test-card spending stays separate from wallet and live-card totals. A policy assigned only to a wallet counts the agent’s spend through that wallet. A policy linked to one card counts that card’s spend. Limits set on an individual agent-wallet or agent-card link remain additional restrictions. Scoped BUDGET_CAP and velocity rules use their own transaction histories, not the combined period counters. See Budget allocations.

Example evaluation

Wallet-level limits

Set limits on the agent-wallet link when you link it with POST /api/agents/{agentId}/wallets. To change them later, send the limit fields without walletId to PATCH /api/agents/{agentId}/wallets/{walletId}:
These are evaluated first, before policy rules. Wallet-level limits count spend through that one agent-wallet link only. To edit them in the dashboard:
  1. Open the agent detail page.
  2. On the Overview or Wallets tab, click the pencil icon next to the wallet.
  3. Update the per-transaction, daily, weekly, or monthly limits and click Save Changes. To remove a cap, clear the field instead of entering 0.
Auto-creation defaults: When an external wallet is auto-created, Conto applies per-transaction 100,daily100, daily 1,000, weekly 5,000,andmonthly5,000, and monthly 20,000. You can override these when linking a wallet to an agent. On update, null removes a cap. A limit of 0 blocks all payments through that link. Omission on creation applies endpoint defaults (per-transaction 100,daily100, daily 1,000). Omission on update preserves the existing value. See Defaults.

Tracking spend

Conto tracks spend automatically:
  • spentToday - Resets at midnight UTC
  • spentThisWeek - Resets Monday midnight UTC
  • spentThisMonth - Resets 1st of month midnight UTC