Agentic Bank docs
Bank accounts for AI agents. One REST API and one MCP server let an agent open accounts in USD, EUR, GBP, INR, USDC and USDG, receive money, pay by ACH, wire, SEPA, Faster Payments, UPI, on-chain or x402, spend with virtual cards and convert between currencies, all inside a spending policy its owner controls.
Base URL https://www.agenticbank.site/api/v1 · MCP https://www.agenticbank.site/mcp · OpenAPI https://www.agenticbank.site/openapi.json · https://www.agenticbank.site/llms.txt
sandbox Everything runs with simulated money today. Account numbers and cards are fake and can’t receive or spend real funds. Agentic Bank is a technology platform, not a bank. The sandbox holds no real money; deposits are not insured.
Quickstart
1. Get a key
Owners create agents in the dashboard (sign in with a wallet). Or an agent signs itself up and sends its owner the claim link:
curl -X POST https://www.agenticbank.site/api/v1/agents/register \
-H "content-type: application/json" \
-d '{"name":"research-agent"}'
{ "agent": { "id": "agt_…", "claimed": false, … },
"api_key": "ab_test_…", ← shown once
"claim_url": "https://www.agenticbank.site/claim/clm_…" }2. Open an account and fund it (sandbox)
export AB_KEY=ab_test_…
curl -X POST https://www.agenticbank.site/api/v1/accounts -H "Authorization: Bearer $AB_KEY" \
-H "content-type: application/json" -d '{"currency":"usd"}'
# → { "id": "acc_…", "balance": "0.00", "details": { "routing_number": "999…", "account_number": "…" } }
curl -X POST https://www.agenticbank.site/api/v1/sandbox/deposits -H "Authorization: Bearer $AB_KEY" \
-H "content-type: application/json" -d '{"account_id":"acc_…","amount":"500.00","from":"Acme Inc"}'3. Pay
curl -X POST https://www.agenticbank.site/api/v1/payments -H "Authorization: Bearer $AB_KEY" \
-H "Idempotency-Key: order-1042" -H "content-type: application/json" -d '{
"from_account": "acc_…", "rail": "ach", "amount": "120.00",
"to": { "routing_number": "021000021", "account_number": "000123456789", "name": "GPU Co" },
"memo": "October compute" }'
# → { "id": "pay_…", "status": "processing", "settles_at": "…" } then "completed"4. Spend with a card
curl -X POST https://www.agenticbank.site/api/v1/cards -H "Authorization: Bearer $AB_KEY" -H "content-type: application/json" \
-d '{"account_id":"acc_…","nickname":"LLM APIs","limits":{"per_tx_usd":"50","allowed_categories":["ai","cloud"]}}'Authentication
- Agents send
Authorization: Bearer ab_test_…. A key belongs to one agent; owners can make up to 5 per agent and revoke them at once. - Owners sign in with a wallet in the dashboard (a signed message; no gas). Owner calls use that session; to act on an agent’s accounts, owners add
agent_id. - Agents can never change their policy, create keys or approve payments.
MCP server
Remote MCP over Streamable HTTP at https://www.agenticbank.site/mcp, authenticated with the agent key. Works with Claude (Desktop, Code, the API’s MCP connector), Cursor, and any MCP client.
# Claude Code
claude mcp add --transport http agentic-bank https://www.agenticbank.site/mcp \
--header "Authorization: Bearer ab_test_…"
# Claude Desktop / Cursor (mcp.json)
{ "mcpServers": { "agentic-bank": {
"type": "http", "url": "https://www.agenticbank.site/mcp",
"headers": { "Authorization": "Bearer ab_test_…" } } } }Tools (24):
list_rails— Currencies, the rails each one pays by, and sandbox settlement times.get_rates— Sandbox exchange rates (value of 1 unit in USD).whoami— Who this key belongs to: the agent, whether it is claimed, and its spending policy.list_accounts— The agent’s accounts with balances and details.open_account— Open an account: usd (ACH/wire numbers), eur (IBAN), gbp (sort code), inr (UPI), usdc (Base/Arbitrum/Ethereum) or usdg (Robinhood Chain).account_details— One account: balance and the details to receive money (account numbers, IBAN, UPI ID…).get_balance— Every balance plus the total in USD.list_transactions— Ledger entries (money in and out), newest first.get_statement— Monthly statement: opening and closing balance and every entry. format=csv for a spreadsheet.send_payment— Send money from an account by a rail. Checked against the spending policy; above the approval threshold it waits for the owner (status pending_approval, funds held).list_payments— Payments, newest first.get_payment— One payment and its status.cancel_payment— Cancel a payment that is still waiting for approval; the money returns.quote_conversion— What a conversion between two of the agent’s accounts would give.convert— Convert between two of the agent’s accounts (e.g. USD → INR, EUR → USDC) at the sandbox rate.issue_card— Issue a virtual Visa card on a USD account, with its own limits, categories and merchant list. The number is returned once here (and with reveal=true).list_cards— The agent’s cards (numbers masked).card_details— One card; reveal=true includes the full number and CVC (sandbox numbers only work in the sandbox).update_card— Freeze, unfreeze or close a card, or change its limits (an agent stays within its policy; the owner can do anything).card_charges— Charges on a card, approved and declined (with the reason).get_policy— The spending policy the owner set for this agent (agents can read it, never change it), and what is used today and this month.list_events— Recent events (the same ones sent to webhooks), newest first.simulate_deposit— Simulate money arriving in an account (an incoming ACH, SEPA, Faster Payment, UPI or on-chain transfer).simulate_card_charge— Simulate a merchant charging a card. Approved or declined by the card’s status, limits, categories, merchant list, the agent’s policy and the balance.
Owners and agents
An owner (a person or company, identified by a wallet) is the account holder of record. An agent belongs to one owner and operates its own accounts and cards with its own API keys. In live mode only owners go through KYC/KYB; agents never do.
A self-registered agent is unclaimed until its owner opens the claim link: it can hold at most $1,000 of sandbox money and only pay other Agentic Bank accounts. Claiming applies the default policy (below). Owners can pause an agent: payments stop and its cards decline.
Accounts and rails
| Currency | Details you get | Pays by |
|---|---|---|
usd US dollar | Routing + account number | internalachwire |
eur Euro | IBAN + BIC | internalsepa |
gbp Pound sterling | Sort code + account number | internalfps |
inr Indian rupee | Account number, IFSC, UPI ID | internalupi |
usdc USD Coin | Deposit address on base, arbitrum, ethereum (live) | internalonchainx402 |
usdg Global Dollar | Deposit address on Robinhood Chain (live) | internalonchainx402 |
Recipient (to) per rail:
internal { "account_id": "acc_…" } instant, any Agentic Bank account
ach/wire { "routing_number": "9 digits", "account_number": "…", "name": "…" }
sepa { "iban": "DE89…", "name": "…", "bic": "optional" }
fps { "sort_code": "12-34-56", "account_number": "8 digits", "name": "…" }
upi { "vpa": "name@bank" }
onchain { "address": "0x…" } on the account's chain
x402 { "url": "https://api…/resource", "pay_to": "0x…" } from the 402 responsePayments
Statuses: pending_approval → processing → completed, or failed / rejected / cancelled (money returns to the account). The amount is held as soon as the payment is created. Internal, UPI, Faster Payments and x402 settle at once; the sandbox settles other rails after a short delay:
internalAgentic Bank transfer: Instant, between any two Agentic Bank accounts in the same currency.achACH: US bank transfer. Sandbox settles in about a minute (live: same day to 2 days).wireWire: US domestic wire. Sandbox settles in about 20 seconds.sepaSEPA: Euro transfer to any IBAN. Sandbox settles in about 30 seconds.fpsFaster Payments: UK transfer to a sort code and account number. Instant.upiUPI: India, to any UPI ID. Instant.onchainOn-chain: A stablecoin transfer to a wallet address on the account’s chain. Sandbox confirms in about 10 seconds.x402x402: Pay an x402 API: the resource URL and its pay-to address. Instant.
Convert between two of the agent’s accounts with POST /v1/conversions (quote first with /v1/conversions/quote). Sandbox rates: GET /v1/rates.
Policy and approvals
{ "per_tx_usd": "1000", max per payment or card charge (USD equivalent)
"daily_usd": "5000", per UTC day, payments + card charges
"monthly_usd": "25000",
"approval_over_usd": "500", at or above → pending_approval ("" = never)
"rails": ["internal","ach","wire","sepa","fps","upi","onchain","x402"],
"allowlist": [] } empty = any counterpartyOwners set it with PUT /v1/agents/{id}/policy (or the dashboard); agents read it with GET /v1/policy, which also returns what they used today and this month. Payments waiting for approval show in the dashboard; POST /v1/approvals/{id} decides. An agent can cancel its own waiting payment.
Cards
Virtual Visa cards spend from a USD account. Each card has its own per-transaction, daily and monthly limits (an agent can’t set them above its policy), allowed and blocked merchant categories (software, cloud, ai, advertising, data, travel, food, retail, services, gambling, crypto, other; gambling is blocked by default) and an optional merchant list. Agents can freeze their cards; a card frozen by the owner stays frozen until the owner unfreezes it. The full number is returned once at issue (and with reveal=true).
Sandbox
- Fund accounts with
POST /v1/sandbox/deposits(up to $100,000 per agent per day; $1,000 in total for unclaimed agents). - Simulate a merchant charge with
POST /v1/sandbox/card-charges. - Test failures: a payment of exactly
13.13fails (the money returns); a card charge of66.60is declined. - Account numbers use unassigned test ranges (routing 999…, IBAN country XA, sort code 99-…); stablecoin accounts have no real deposit address until live mode.
Webhooks
Set one https URL for all your agents (dashboard → Webhook, or PUT /v1/webhook). Every event is POSTed as JSON {id, type, agent_id, created_at, data} with Standard Webhooks headers webhook-id, webhook-timestamp, webhook-signature. Agents can also poll GET /v1/events.
// verify (Node)
import { createHmac, timingSafeEqual } from 'node:crypto'
const key = Buffer.from(secret.replace(/^whsec_/, ''), 'base64')
const want = 'v1,' + createHmac('sha256', key).update(`${id}.${timestamp}.${rawBody}`).digest('base64')
const ok = signatureHeader.split(' ').some((s) => s.length === want.length && timingSafeEqual(Buffer.from(s), Buffer.from(want)))account.opened | An account was opened. |
deposit.received | Money arrived (sandbox deposit or an internal transfer). |
payment.created | A payment is processing on a rail with settlement time. |
payment.pending_approval | A payment is over the approval threshold; funds are held. |
payment.approved / payment.rejected | The owner decided. |
payment.completed / payment.failed / payment.cancelled | Final state. |
approval.requested / approval.decided | The approval itself. |
card.issued / card.updated | Card created, frozen, closed or limits changed. |
card.authorization.approved / .declined | A merchant charged a card (with the decline reason). |
conversion.completed | Currency converted between two accounts. |
agent.created / agent.claimed / agent.paused / agent.resumed / policy.updated | Owner actions. |
Errors and conventions
- Amounts are decimal strings (
"25.00"; stablecoins up to 6 decimals). Never floats. - Send
Idempotency-Key(oridempotency_key) on payments: the same key returns the same payment and never pays twice. - Lists are newest first; pass
before=next_beforefor the next page. - Errors:
{"error": {"code": "…", "message": "…"}}
| HTTP | code | Meaning |
|---|---|---|
| 400 | invalid_request · invalid_recipient · rail_not_supported · currency_mismatch | Fix the input; the message says what. |
| 401 | unauthorized | Missing or wrong API key / not signed in. |
| 402 | insufficient_funds | Not enough money in the account. |
| 403 | limit_per_tx · limit_daily · limit_monthly · rail_not_allowed · recipient_not_allowed · agent_paused · unclaimed_limit | The owner’s policy said no. |
| 404 | not_found | No such resource for this agent. |
| 409 | limit_reached · already_decided · not_cancellable · not_empty · account_closed | The state changed or a cap was reached. |
| 429 | rate_limited | Slow down. |
API reference
Paths below are under https://www.agenticbank.site/api. agent = agent key (or owner + agent_id), owner = wallet session, public = no auth.
Agents
An agent signs itself up: returns an API key and a claim link for its owner. Until claimed it can only hold $1,000 of sandbox money and pay other Agentic Bank accounts.
name body *string Agent nameerc8004 bodystring ERC-8004 identity, chain:id (optional)curl -X POST https://www.agenticbank.site/api/v1/agents/register \
-H "content-type: application/json" \
-d '{"name":"<name>"}'Which agent a claim link is for.
token path *string Claim tokencurl https://www.agenticbank.site/api/v1/claims/{token}Accounts
Who this key belongs to: the agent, whether it is claimed, and its spending policy.
curl https://www.agenticbank.site/api/v1/me \ -H "Authorization: Bearer $AB_KEY"
The agent’s accounts with balances and details.
curl https://www.agenticbank.site/api/v1/accounts \ -H "Authorization: Bearer $AB_KEY"
Open an account: usd (ACH/wire numbers), eur (IBAN), gbp (sort code), inr (UPI), usdc (Base/Arbitrum/Ethereum) or usdg (Robinhood Chain).
currency body *usd | eur | gbp | inr | usdc | usdg Currencychain bodybase | arbitrum | ethereum | robinhood Stablecoins only: base, arbitrum, ethereum (usdc) or robinhood (usdg)nickname bodystring Labelcurl -X POST https://www.agenticbank.site/api/v1/accounts \
-H "Authorization: Bearer $AB_KEY" \
-H "content-type: application/json" \
-d '{"currency":"usd"}'One account: balance and the details to receive money (account numbers, IBAN, UPI ID…).
id path *string Account idcurl https://www.agenticbank.site/api/v1/accounts/{id} \
-H "Authorization: Bearer $AB_KEY"Close an empty account (its cards close too).
id path *string Account idcurl -X POST https://www.agenticbank.site/api/v1/accounts/{id}/close \
-H "Authorization: Bearer $AB_KEY"Every balance plus the total in USD.
curl https://www.agenticbank.site/api/v1/balances \ -H "Authorization: Bearer $AB_KEY"
Ledger entries (money in and out), newest first.
account_id querystring Only this accountlimit queryinteger Max items (≤ 200)before querystring Cursor: next_before from the previous pagecurl https://www.agenticbank.site/api/v1/transactions \ -H "Authorization: Bearer $AB_KEY"
Monthly statement: opening and closing balance and every entry. format=csv for a spreadsheet.
id path *string Account idmonth querystring YYYY-MM (default this month)format queryjson | csv json or csvcurl https://www.agenticbank.site/api/v1/accounts/{id}/statement \
-H "Authorization: Bearer $AB_KEY"Payments
Send money from an account by a rail. Checked against the spending policy; above the approval threshold it waits for the owner (status pending_approval, funds held).
from_account body *string Pay from this accountrail body *internal | ach | wire | sepa | fps | upi | onchain | x402 Railto body *object Recipient. internal: {account_id} · ach/wire: {routing_number, account_number, name} · sepa: {iban, name} · fps: {sort_code, account_number, name} · upi: {vpa} · onchain: {address} · x402: {url, pay_to}amount body *string Amount as a decimal string, e.g. "25.00"memo bodystring Note for the recipient / your booksidempotency_key bodystring Same key = same payment, never twice (also accepted as the Idempotency-Key header)curl -X POST https://www.agenticbank.site/api/v1/payments \
-H "Authorization: Bearer $AB_KEY" \
-H "content-type: application/json" \
-d '{"from_account":"<from_account>","rail":"internal","to":{},"amount":"25.00"}'Payments, newest first.
status querypending_approval | processing | completed | failed | cancelled | rejected Filteraccount_id querystring Only this accountlimit queryinteger Max items (≤ 200)before querystring Cursor: next_before from the previous pagecurl https://www.agenticbank.site/api/v1/payments \ -H "Authorization: Bearer $AB_KEY"
One payment and its status.
id path *string Payment idcurl https://www.agenticbank.site/api/v1/payments/{id} \
-H "Authorization: Bearer $AB_KEY"Cancel a payment that is still waiting for approval; the money returns.
id path *string Payment idcurl -X POST https://www.agenticbank.site/api/v1/payments/{id}/cancel \
-H "Authorization: Bearer $AB_KEY"What a conversion between two of the agent’s accounts would give.
from_account body *string Fromto_account body *string Toamount body *string Amount to convert, in the from currencycurl -X POST https://www.agenticbank.site/api/v1/conversions/quote \
-H "Authorization: Bearer $AB_KEY" \
-H "content-type: application/json" \
-d '{"from_account":"<from_account>","to_account":"<to_account>","amount":"25.00"}'Convert between two of the agent’s accounts (e.g. USD → INR, EUR → USDC) at the sandbox rate.
from_account body *string Fromto_account body *string Toamount body *string Amount to convert, in the from currencycurl -X POST https://www.agenticbank.site/api/v1/conversions \
-H "Authorization: Bearer $AB_KEY" \
-H "content-type: application/json" \
-d '{"from_account":"<from_account>","to_account":"<to_account>","amount":"25.00"}'Cards
Issue a virtual Visa card on a USD account, with its own limits, categories and merchant list. The number is returned once here (and with reveal=true).
account_id body *string A USD accountnickname bodystring Label, e.g. "OpenAI API"limits bodyobject Card limitscurl -X POST https://www.agenticbank.site/api/v1/cards \
-H "Authorization: Bearer $AB_KEY" \
-H "content-type: application/json" \
-d '{"account_id":"<account_id>"}'The agent’s cards (numbers masked).
curl https://www.agenticbank.site/api/v1/cards \ -H "Authorization: Bearer $AB_KEY"
One card; reveal=true includes the full number and CVC (sandbox numbers only work in the sandbox).
id path *string Card idreveal queryboolean Include number and CVCcurl https://www.agenticbank.site/api/v1/cards/{id} \
-H "Authorization: Bearer $AB_KEY"Freeze, unfreeze or close a card, or change its limits (an agent stays within its policy; the owner can do anything).
id path *string Card idstatus bodyactive | frozen | closed New statusnickname bodystring Labellimits bodyobject Card limitscurl -X PATCH https://www.agenticbank.site/api/v1/cards/{id} \
-H "Authorization: Bearer $AB_KEY" \
-H "content-type: application/json" \
-d '{}'Charges on a card, approved and declined (with the reason).
id path *string Card idlimit queryinteger Max items (≤ 200)curl https://www.agenticbank.site/api/v1/cards/{id}/authorizations \
-H "Authorization: Bearer $AB_KEY"Policy
The spending policy the owner set for this agent (agents can read it, never change it), and what is used today and this month.
curl https://www.agenticbank.site/api/v1/policy \ -H "Authorization: Bearer $AB_KEY"
Sandbox
Simulate money arriving in an account (an incoming ACH, SEPA, Faster Payment, UPI or on-chain transfer).
account_id body *string Account to fundamount body *string Amount as a decimal string, e.g. "25.00"from bodystring Sender namereference bodystring Referencecurl -X POST https://www.agenticbank.site/api/v1/sandbox/deposits \
-H "Authorization: Bearer $AB_KEY" \
-H "content-type: application/json" \
-d '{"account_id":"<account_id>","amount":"25.00"}'Simulate a merchant charging a card. Approved or declined by the card’s status, limits, categories, merchant list, the agent’s policy and the balance.
card_id body *string Card idamount body *string Amount in USDmerchant body *object curl -X POST https://www.agenticbank.site/api/v1/sandbox/card-charges \
-H "Authorization: Bearer $AB_KEY" \
-H "content-type: application/json" \
-d '{"card_id":"<card_id>","amount":"25.00","merchant":{}}'Webhooks
Recent events (the same ones sent to webhooks), newest first.
type querystring Type prefix, e.g. payment. or card.limit queryinteger Max items (≤ 200)before querystring Cursor: next_before from the previous pagecurl https://www.agenticbank.site/api/v1/events \ -H "Authorization: Bearer $AB_KEY"
Your webhook URL and signing secret.
curl https://www.agenticbank.site/api/v1/webhook
Set (or clear with "") the https URL that receives every event of your agents.
url bodystring https URL ("" to turn off)curl -X PUT https://www.agenticbank.site/api/v1/webhook \
-H "content-type: application/json" \
-d '{}'A new signing secret (the old one stops at once).
curl -X POST https://www.agenticbank.site/api/v1/webhook/rotate
Send a webhook.test event now.
curl -X POST https://www.agenticbank.site/api/v1/webhook/test
Reference
Currencies, the rails each one pays by, and sandbox settlement times.
curl https://www.agenticbank.site/api/v1/rails
Sandbox exchange rates (value of 1 unit in USD).
curl https://www.agenticbank.site/api/v1/rates
Owner
The signed-in owner: agents with balances, pending approvals, webhook.
curl https://www.agenticbank.site/api/v1/owner
Create an agent; returns its first API key (shown once).
name body *string Agent nameerc8004 bodystring ERC-8004 identity, chain:idcurl -X POST https://www.agenticbank.site/api/v1/agents \
-H "content-type: application/json" \
-d '{"name":"<name>"}'Your agents with balances.
curl https://www.agenticbank.site/api/v1/agents
Rename, link an ERC-8004 identity, or pause / resume an agent (paused = no money moves, cards decline).
id path *string Agent idname bodystring Nameerc8004 bodystring chain:idstatus bodyactive | paused Statuscurl -X PATCH https://www.agenticbank.site/api/v1/agents/{id} \
-H "content-type: application/json" \
-d '{}'Set the agent’s spending policy: limits, approval threshold, allowed rails, counterparty allowlist.
id path *string Agent idper_tx_usd bodystring Max per payment, USD equivalentdaily_usd bodystring Max per day across payments and cards, USDmonthly_usd bodystring Max per month, USDapproval_over_usd bodystring Payments at or above this wait for your approval ("" = never)rails bodyinternal | ach | wire | sepa | fps | upi | onchain | x402[] Rails the agent may useallowlist bodystring[] Only these counterparties (empty = any)curl -X PUT https://www.agenticbank.site/api/v1/agents/{id}/policy \
-H "content-type: application/json" \
-d '{}'The agent’s active API keys (prefixes only).
id path *string Agent idcurl https://www.agenticbank.site/api/v1/agents/{id}/keysA new API key for the agent (shown once).
id path *string Agent idname bodystring Labelcurl -X POST https://www.agenticbank.site/api/v1/agents/{id}/keys \
-H "content-type: application/json" \
-d '{}'Revoke an API key at once.
id path *string Agent idkey_id path *string Key idcurl -X DELETE https://www.agenticbank.site/api/v1/agents/{id}/keys/{key_id}Claim a self-registered agent: it becomes yours, with the default policy.
token path *string Claim tokencurl -X POST https://www.agenticbank.site/api/v1/claims/{token}Payments waiting for your approval (status=all for history).
status querypending | approved | rejected | cancelled | all pending (default), approved, rejected, cancelled or allcurl https://www.agenticbank.site/api/v1/approvals
Approve (the payment goes out) or reject (the money returns to the agent).
id path *string Approval iddecision body *approve | reject approve or rejectreason bodystring Reason (shown to the agent)curl -X POST https://www.agenticbank.site/api/v1/approvals/{id} \
-H "content-type: application/json" \
-d '{"decision":"approve"}'Every event across your agents, with webhook delivery status.
type querystring Type prefixlimit queryinteger Max items (≤ 200)before querystring Cursor: next_before from the previous pagecurl https://www.agenticbank.site/api/v1/owner/events
Live mode
Join the live-mode waitlist (real accounts, cards and payouts).
email body *string Emailname bodystring Namecompany bodystring Companyuse_case bodystring What your agents will do with moneyrails bodystring[] What you needwallet bodystring Walletcurl -X POST https://www.agenticbank.site/api/v1/waitlist \
-H "content-type: application/json" \
-d '{"email":"<email>"}'