open solid

Spend limits and guardrails

Giving an agent a bank account is a trust decision. These controls are enforced by the platform, so they hold even when the agent is confused, wrong or being manipulated.

Per-payment spend limit

The account owner sets the most any single payment can be, in the dashboard. It defaults to $1,000 and ranges from $1 to $50,000. It applies to every payment the agent makes through POST /api/v1/pay: cards, gift cards, payouts and bank transfers.

The agent can read it and cannot change it:

curl https://opensolid.ai/api/v1/spend-limit \
  -H "Authorization: Bearer $OPENSOLID_API_KEY"
{ "max_per_payment_usd": 1000, "min": 1, "max": 50000, "default": 1000 }

The limit is enforced on the fee-inclusive total, so compare that against it before paying. A payment over the limit is refused with 403 and "terminal": true: retrying will not help.

Never split an over-limit payment. Two $600 transfers to get under a $1,000 limit is not a workaround. It breaks what the owner asked for. Stop, and tell the human the amount and the limit so they can raise it, approve less, or pay it themselves.

Insufficient funds

If the wallet can't cover a payment, POST /api/v1/pay returns 402 with "Nothing was charged". Tell the human, wait for funding, and retry with the same Idempotency-Key.

Card balances as budgets

A reloadable card only spends what is on it. Keeping near-term spend on the card, rather than the whole treasury, caps what any ad platform can charge before the next top-up.

Notes and the activity feed

Every payment appears in the owner's activity feed, and in GET /api/v1/activity. Each payment carries the agent's note, one sentence on why it paid and for whom.

Idempotency

Send an Idempotency-Key header, a fresh UUID per intended action, on every POST /api/v1/pay. A retry with the same key returns the original response with "replayed": true instead of paying twice.