The AgentPay developer surface

Build agents
that pay,
themselves.

AgentPay exposes a small, documented HTTP API for wallets, policies, payouts, subscriptions, audit, and weekly digests. Mint a key, point your agent at /api/v1, and you're live.

Headline endpoints

Wallets

GET / POST /api/v1/wallets[...] — create agent wallets, top up from a linked bank account, list transactions, and request refunds.

Policies

POST /api/v1/wallets/{walletId}/policies and GET listing — define per-transaction caps, category blocks, and daily spend thresholds your agent must respect.

Payouts

POST /api/v1/wallets/{walletId}/payout — let an agent move funds to a merchant. Runs every policy gate before funds leave the wallet.

Subscriptions

GET / POST /api/v1/wallets/{walletId}/subscriptions[/scan][/{id}/cancel] — track recurring charges and cancel what's no longer earning its keep.

Audit

GET /api/v1/wallets/{walletId}/policy-audit — every policy decision, approved or denied, with the rule that fired and the values it saw.

Weekly summary

GET /api/v1/agents/{agentId}/weekly-summary — a rollup of spend, denials, and notable activity for any agent your key owns.

How to get a key

01

Authenticate as an owner

Send x-user-id: <your numeric user id> on every request. AgentPay identifies the owning account through this header (the UserIdHeader scheme listed in the OpenAPI document).

02

Mint a key

POST /api/v1/developer/keys with body { "label": "my-agent" }. The plaintext key is returned exactly once — store it immediately; only its bcrypt hash is persisted.

Open the OpenAPI spec →

03

Call the API

Point your agent at any of the six endpoints above and send the key on the Authorization header. The served OpenAPI document imports straight into Postman or Insomnia.