Agentic Bank docs
Real bank account for AI agents. The owner connects a business bank once (Mercury, Wise or RazorpayX). One REST API and one MCP server then let an agent see the accounts it was granted, pay by ACH, wire, RTP, SEPA, Faster Payments, UPI, IMPS or NEFT through that bank’s own API, track each payment’s bank status and read statements, all inside a spending policy its owner controls.
Base URL https://www.banker.quest/api/v1 · MCP https://www.banker.quest/mcp · OpenAPI https://www.banker.quest/openapi.json · https://www.banker.quest/llms.txt
sandbox Sandbox banks behave like the real ones with simulated money; their account numbers and cards can’t receive or spend real funds. live Connecting a real bank is invite-only for now. Agentic Bank is a technology platform, not a bank. Money stays in your own bank account and we never hold it; the sandbox moves no real money.
Quickstart
1. Get a key
Owners create agents in the dashboard (sign in with an email link, then add a sandbox bank or connect yours). Or an agent signs itself up and sends its owner the claim link:
curl -X POST https://www.banker.quest/api/v1/agents/register \
-H "content-type: application/json" \
-d '{"name":"research-agent"}'
{ "agent": { "id": "agt_…", "claimed": false, … },
"api_key": "bq_sk_…", ← shown once
"claim_url": "https://www.banker.quest/claim/clm_…" }2. See the accounts you were granted (and fund one in the sandbox)
export BQ_KEY=bq_sk_…
curl https://www.banker.quest/api/v1/accounts -H "Authorization: Bearer $BQ_KEY"
# → { "accounts": [ { "id": "acc_…", "bank": "Mercury", "mode": "sandbox", "currency": "usd",
# "balance": "25000.00", "rails": ["ach","wire","rtp"], "details": { "routing_number": "…" } } ] }
curl -X POST https://www.banker.quest/api/v1/sandbox/deposits -H "Authorization: Bearer $BQ_KEY" \
-H "content-type: application/json" -d '{"account_id":"acc_…","amount":"500.00","from":"Acme Inc"}'3. Pay
curl -X POST https://www.banker.quest/api/v1/payments -H "Authorization: Bearer $BQ_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", "bank_reference": "…" } then "completed"4. Spend with a card (sandbox)
curl -X POST https://www.banker.quest/api/v1/cards -H "Authorization: Bearer $BQ_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 bq_sk_…. A key belongs to one agent; owners can make up to 5 per agent and revoke them at once. - Owners sign in with a one-time email link (
POST /v1/auth/email, valid 15 minutes). Owner calls use thebq_sessioncookie; to act as one of their agents, owners addagent_id. - Agents can never change their policy, connect banks, see bank credentials, create keys or approve payments.
MCP server
Remote MCP over Streamable HTTP at https://www.banker.quest/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.banker.quest/mcp \
--header "Authorization: Bearer bq_sk_…"
# Claude Desktop / Cursor (mcp.json)
{ "mcpServers": { "agentic-bank": {
"type": "http", "url": "https://www.banker.quest/mcp",
"headers": { "Authorization": "Bearer bq_sk_…" } } } }Tools (20):
list_rails— The banks you can connect, their currencies and the rails each pays by, with typical settlement times.whoami— Who this key belongs to: the agent, whether it is claimed, and its spending policy.list_accounts— The bank accounts this agent may use: bank, currency, balance, rails, sandbox or live.account_details— One bank account: balance, rails and details to receive money (sandbox shows full fake numbers; live shows the last 4 digits).get_balance— Every balance this agent can see, plus the total in USD at reference rates.list_transactions— Ledger entries on the agent’s accounts (money in and out through Agentic Bank), newest first.get_statement— Monthly statement of an account. format=csv for a spreadsheet.send_payment— Send money from one of the agent’s bank accounts by a rail. Checked against the policy; at or above the approval threshold it waits for the owner. Live accounts send through the owner’s bank.list_payments— Payments, newest first.get_payment— One payment, its status and the bank’s reference.cancel_payment— Cancel a payment that is still waiting for approval.issue_card— Issue a virtual Visa card on a sandbox USD account, with its own limits, categories and merchant list (live cards arrive with Increase and Revolut Business). The number is returned once.list_cards— The agent’s cards (numbers masked).card_details— One card; reveal=true includes the full number and CVC.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 a sandbox account (an incoming ACH, SEPA, Faster Payment or UPI).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 email) holds the bank account at their own bank and connects it. An agent belongs to one owner and uses only the bank accounts its policy grants, with its own API keys. Agentic Bank never holds the money: live payments are made by your bank, through its API, with credentials you can revoke at the bank.
A self-registered agent is unclaimed until its owner opens the claim link: it has no accounts and can’t move money. Claiming applies the default policy (below) with the owner’s sandbox accounts; the owner decides if it may use a live account. Owners can pause an agent: payments stop and its cards decline.
Banks, accounts and rails
Owners connect a bank in the dashboard (or POST /v1/connections with the bank’s API credentials; POST /v1/connections/sandbox for a simulated one). Its accounts are imported; the owner then grants them to agents. Live balances are read from the bank on sync (RazorpayX has no balance API, so it shows none).
| Bank | Accounts | Pays by | Live notes |
|---|---|---|---|
| Mercury US | USD | achwirertp | Create a read-and-write API token in Mercury → Settings → API tokens. Direct sends need Mercury’s IP allowlist (set BANKER_EGRESS_PROXY to a fixed-IP proxy). Otherwise payments go out as Mercury payment requests that you approve in the Mercury app. |
| Wise Business Global | USD, EUR, GBP | sepafpsach | Create a personal API token in Wise → Settings → API tokens (full access). Wise lets personal tokens fund transfers only for accounts based in the US, Canada, Australia, New Zealand, Singapore and Malaysia. Elsewhere (UK, EEA) the transfer is created and you fund it in the Wise app. |
| RazorpayX India | INR | upiimpsneft | Create API keys in RazorpayX → Settings → API keys. RazorpayX requires IP allowlisting for payouts: set BANKER_EGRESS_PROXY to a fixed-IP proxy and allowlist its IP in RazorpayX. |
Recipient (to) per rail:
ach/wire/rtp { "routing_number": "9 digits", "account_number": "…", "name": "…" }
live Mercury and Wise also need "address1", "city", "region", "postal_code" (US address)
sepa { "iban": "DE89…", "name": "…", "bic": "optional" }
fps { "sort_code": "12-34-56", "account_number": "8 digits", "name": "…" }
upi { "vpa": "name@bank", "name": "optional" }
imps/neft { "ifsc": "HDFC0001234", "account_number": "…", "name": "…" }Payments
Statuses: pending_approval → sending → processing → completed, or needs_bank_action (approve or fund it in your bank’s app), failed / rejected / cancelled. In the sandbox the amount is held at once and instant rails settle at once. In live mode the payment is sent to your bank through its API and its status follows the bank (polled about every 30 seconds); completed means the bank reports it sent. Rails:
achACH: US bank transfer to a routing and account number. Live: same day to 2 business days. Sandbox: about a minute.wireWire: US domestic wire. Live: same business day. Sandbox: about 20 seconds.rtpRTP: Real-time payment, 24/7, in seconds, when the receiving bank supports it.sepaSEPA: Euro transfer to any IBAN. Live: usually within a business day. Sandbox: about 30 seconds.fpsFaster Payments: UK transfer to a sort code and account number. Usually seconds.upiUPI: India, to any UPI ID. Seconds, 24/7.impsIMPS: India, to an account number and IFSC. Seconds, 24/7.neftNEFT: India, to an account number and IFSC. Settles in batches. Sandbox: about 30 seconds.
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": ["ach","wire","rtp","sepa","fps","upi","imps","neft"],
"accounts": ["acc_…"], bank accounts this agent may use (owner only)
"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 and are emailed to the owner; POST /v1/approvals/{id} decides, and only then is a live payment sent to the bank. An agent can cancel its own waiting payment.
Cards
sandbox Virtual Visa cards spend from a sandbox USD account; live cards arrive with Increase and Revolut Business. 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, 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
- Add a sandbox bank per provider (Mercury USD $25,000; Wise EUR, GBP and USD; RazorpayX ₹10,00,000). Fund accounts with
POST /v1/sandbox/deposits(up to $100,000 per agent per day). - Simulate a merchant charge with
POST /v1/sandbox/card-charges. - Test failures: a sandbox payment of exactly
13.13fails (the money returns); a card charge of66.60is declined. - Sandbox account numbers use unassigned test ranges (routing 999…, IBAN country XA, sort code 99-…, IFSC BNKQ0…). Sandbox and live accounts never mix: a payment uses the mode of its account.
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)))connection.created / connection.removed | A bank was connected or disconnected. |
deposit.received | Simulated money arrived on a sandbox account. |
payment.pending_approval | A payment is at or over the approval threshold; nothing has been sent to the bank. |
payment.sent | The bank accepted the payment and it is processing. |
payment.needs_bank_action | The bank needs the owner to act in its own app (approve or fund the transfer). |
payment.updated | The bank reported a new status or reference. |
payment.completed / payment.failed / payment.cancelled / payment.rejected | 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). |
agent.registered / agent.created / agent.claimed / agent.paused / agent.resumed / policy.updated | Agent and owner actions. |
Errors and conventions
- Amounts are decimal strings (
"25.00"), in the account’s currency. 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_not_supported · live_account · bank_rejected | Fix the input; the message says what (bank_rejected: your bank refused the credentials). |
| 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 · live_not_enabled | The owner’s policy (or invite gate) said no. |
| 404 | not_found | No such resource, or an account this agent was not granted. |
| 409 | limit_reached · already_decided · not_cancellable · account_closed · live_cards_soon | The state changed, a cap was reached, or the action is sandbox-only. |
| 429 | rate_limited | Slow down. |
| 502 / 503 | bank_error · not_configured | Your bank refused or did not answer (the message has its reason), or the server is missing a setting. |
API reference
Paths below are under https://www.banker.quest/api. agent = agent key (or owner + agent_id), owner = email session, public = no auth.
Agents
An agent signs itself up: returns an API key and a claim link for its owner. It can read but not move money until the owner claims it and gives it bank accounts.
name body *string Agent namecurl -X POST https://www.banker.quest/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.banker.quest/api/v1/claims/{token}Accounts
Who this key belongs to: the agent, whether it is claimed, and its spending policy.
curl https://www.banker.quest/api/v1/me \ -H "Authorization: Bearer $BQ_KEY"
The bank accounts this agent may use: bank, currency, balance, rails, sandbox or live.
curl https://www.banker.quest/api/v1/accounts \ -H "Authorization: Bearer $BQ_KEY"
One bank account: balance, rails and details to receive money (sandbox shows full fake numbers; live shows the last 4 digits).
id path *string Bank account idcurl https://www.banker.quest/api/v1/accounts/{id} \
-H "Authorization: Bearer $BQ_KEY"Every balance this agent can see, plus the total in USD at reference rates.
curl https://www.banker.quest/api/v1/balances \ -H "Authorization: Bearer $BQ_KEY"
Ledger entries on the agent’s accounts (money in and out through Agentic Bank), newest first.
account_id querystring Only this accountlimit queryinteger Max items (≤ 200)before querystring Cursor: next_before from the previous pagecurl https://www.banker.quest/api/v1/transactions \ -H "Authorization: Bearer $BQ_KEY"
Monthly statement of an account. format=csv for a spreadsheet.
id path *string Bank account idmonth querystring YYYY-MM (default this month)format queryjson | csv json or csvcurl https://www.banker.quest/api/v1/accounts/{id}/statement \
-H "Authorization: Bearer $BQ_KEY"Payments
Send money from one of the agent’s bank accounts by a rail. Checked against the policy; at or above the approval threshold it waits for the owner. Live accounts send through the owner’s bank.
from_account body *string Pay from this bank accountrail body *ach | wire | rtp | sepa | fps | upi | imps | neft Railto body *object Recipient. ach / wire / rtp: {routing_number, account_number, name} (Mercury also needs address1, city, region, postal_code) · sepa: {iban, name} · fps: {sort_code, account_number, name} · upi: {vpa} · imps / neft: {ifsc, account_number, name}. Optional: email, legal_type (BUSINESS/PRIVATE).amount body *string Amount as a decimal string, e.g. "25.00"memo bodystring Note / referenceidempotency_key bodystring Same key = same payment, never twice (also accepted as the Idempotency-Key header)curl -X POST https://www.banker.quest/api/v1/payments \
-H "Authorization: Bearer $BQ_KEY" \
-H "content-type: application/json" \
-d '{"from_account":"<from_account>","rail":"ach","to":{},"amount":"25.00"}'Payments, newest first.
status querypending_approval | sending | processing | needs_bank_action | 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.banker.quest/api/v1/payments \ -H "Authorization: Bearer $BQ_KEY"
One payment, its status and the bank’s reference.
id path *string Payment idcurl https://www.banker.quest/api/v1/payments/{id} \
-H "Authorization: Bearer $BQ_KEY"Cancel a payment that is still waiting for approval.
id path *string Payment idcurl -X POST https://www.banker.quest/api/v1/payments/{id}/cancel \
-H "Authorization: Bearer $BQ_KEY"Cards
Issue a virtual Visa card on a sandbox USD account, with its own limits, categories and merchant list (live cards arrive with Increase and Revolut Business). The number is returned once.
account_id body *string A sandbox USD accountnickname bodystring Label, e.g. "OpenAI API"limits bodyobject Card limitscurl -X POST https://www.banker.quest/api/v1/cards \
-H "Authorization: Bearer $BQ_KEY" \
-H "content-type: application/json" \
-d '{"account_id":"<account_id>"}'The agent’s cards (numbers masked).
curl https://www.banker.quest/api/v1/cards \ -H "Authorization: Bearer $BQ_KEY"
One card; reveal=true includes the full number and CVC.
id path *string Card idreveal queryboolean Include number and CVCcurl https://www.banker.quest/api/v1/cards/{id} \
-H "Authorization: Bearer $BQ_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.banker.quest/api/v1/cards/{id} \
-H "Authorization: Bearer $BQ_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.banker.quest/api/v1/cards/{id}/authorizations \
-H "Authorization: Bearer $BQ_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.banker.quest/api/v1/policy \ -H "Authorization: Bearer $BQ_KEY"
Sandbox
Simulate money arriving in a sandbox account (an incoming ACH, SEPA, Faster Payment or UPI).
account_id body *string Sandbox account to fundamount body *string Amount as a decimal string, e.g. "25.00"from bodystring Sender namereference bodystring Referencecurl -X POST https://www.banker.quest/api/v1/sandbox/deposits \
-H "Authorization: Bearer $BQ_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.banker.quest/api/v1/sandbox/card-charges \
-H "Authorization: Bearer $BQ_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.banker.quest/api/v1/events \ -H "Authorization: Bearer $BQ_KEY"
Your webhook URL and signing secret.
curl https://www.banker.quest/api/v1/webhook
Set (or clear with "") the https URL that receives every event.
url bodystring https URL ("" to turn off)curl -X PUT https://www.banker.quest/api/v1/webhook \
-H "content-type: application/json" \
-d '{}'A new signing secret (the old one stops at once).
curl -X POST https://www.banker.quest/api/v1/webhook/rotate
Send a webhook.test event now.
curl -X POST https://www.banker.quest/api/v1/webhook/test
Reference
The banks you can connect, their currencies and the rails each pays by, with typical settlement times.
curl https://www.banker.quest/api/v1/rails
Banks
Your bank connections (sandbox and live).
curl https://www.banker.quest/api/v1/connections
Connect a sandbox bank (Mercury, Wise or RazorpayX): the same accounts and rails with simulated money.
provider body *mercury | wise | razorpayx Bankcurl -X POST https://www.banker.quest/api/v1/connections/sandbox \
-H "content-type: application/json" \
-d '{"provider":"mercury"}'Connect your real bank with its API credentials (encrypted at rest, never shown again). Live mode is invite-only for now.
provider body *mercury | wise | razorpayx Bankcredentials body *object mercury: {api_token} · wise: {api_token} · razorpayx: {key_id, key_secret, account_number}curl -X POST https://www.banker.quest/api/v1/connections \
-H "content-type: application/json" \
-d '{"provider":"mercury","credentials":{}}'Refresh a live connection’s accounts and balances from the bank.
id path *string Connection idcurl -X POST https://www.banker.quest/api/v1/connections/{id}/syncDisconnect a bank: its credentials are deleted and agents lose access to its accounts at once.
id path *string Connection idcurl -X DELETE https://www.banker.quest/api/v1/connections/{id}Every bank account across your connections.
curl https://www.banker.quest/api/v1/owner/accounts
Owner
The signed-in owner: connected banks, accounts, agents, pending approvals, webhook.
curl https://www.banker.quest/api/v1/owner
Create an agent; returns its first API key (shown once). It starts with access to your sandbox accounts.
name body *string Agent namecurl -X POST https://www.banker.quest/api/v1/agents \
-H "content-type: application/json" \
-d '{"name":"<name>"}'Your agents.
curl https://www.banker.quest/api/v1/agents
Rename, or pause / resume an agent (paused = no money moves, cards decline).
id path *string Agent idname bodystring Namestatus bodyactive | paused Statuscurl -X PATCH https://www.banker.quest/api/v1/agents/{id} \
-H "content-type: application/json" \
-d '{}'Set the agent’s policy: which bank accounts it may use, limits, approval threshold, 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 ("" or null = never)rails bodyach | wire | rtp | sepa | fps | upi | imps | neft[] Rails the agent may useallowlist bodystring[] Only these counterparties (empty = any)accounts bodystring[] The bank accounts this agent may usecurl -X PUT https://www.banker.quest/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.banker.quest/api/v1/agents/{id}/keysA new API key for the agent (shown once).
id path *string Agent idname bodystring Labelcurl -X POST https://www.banker.quest/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.banker.quest/api/v1/agents/{id}/keys/{key_id}Claim a self-registered agent: it becomes yours, with the default policy and your sandbox accounts.
token path *string Claim tokencurl -X POST https://www.banker.quest/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.banker.quest/api/v1/approvals
Approve (the payment goes out, through your bank for live accounts) or reject it.
id path *string Approval iddecision body *approve | reject approve or rejectreason bodystring Reason (shown to the agent)curl -X POST https://www.banker.quest/api/v1/approvals/{id} \
-H "content-type: application/json" \
-d '{"decision":"approve"}'Every event across your banks and agents, with webhook delivery status.
type querystring Type prefixlimit queryinteger Max items (≤ 200)before querystring Cursor: next_before from the previous pagecurl https://www.banker.quest/api/v1/owner/events
Live mode
Ask for live mode (connect your real bank). Live is invite-only for now.
email body *string Emailname bodystring Namecompany bodystring Companyuse_case bodystring What your agents will do with moneybanks bodystring[] Which banks / rails you needcurl -X POST https://www.banker.quest/api/v1/waitlist \
-H "content-type: application/json" \
-d '{"email":"<email>"}'