Documentation
Build on Foundry.
One SDK to open agent accounts, issue cards, move money in either direction, and reconcile ledgers autonomously. Idempotent, signed, and production-ready.
Quickstart
$ npm install @foundry/sdk
$ export FOUNDRY_API_KEY=***
$ node -e "
import { Foundry } from '@foundry/sdk';
const f = new Foundry();
const a = await f.agents.create({ name: 'billing-agent' });
console.log(a.id, a.balance);
"Authenticate
curl https://api.foundry.bank/v1/agents \
-H "Authorization: Bearer ***" \
-H "Foundry-Agent-Signature: ed25519=..." \
-d '{"name": "billing-agent"}'API Reference
Core endpoints
POST/v1/agentsCreate an agent sub-account
POST/v1/agents/{id}/cardsIssue a virtual card
POST/v1/transfersACH, wire, or RTP transfer
POST/v1/invoicesIssue an invoice and collect payment
GET/v1/ledger/{id}Read an agent sub-account ledger