Full programmatic control over your agent wallets. RESTful API with comprehensive webhooks and real-time events.
// Create a virtual card for an agent
const response = await fetch('https://api.spend.md/v1/cards', {
method: 'POST',
headers: {
'Authorization': 'Bearer sk_live_...',
'Content-Type': 'application/json',
},
body: JSON.stringify({
agent_name: 'my-assistant',
monthly_limit: 500,
allowed_categories: ['software_services', 'api_services'],
}),
});
const card = await response.json();
// => { id: 'card_abc123', last4: '7890', ... }API key management, OAuth flows, and signed request verification.
POST /v1/auth/*Create, update, freeze, and manage virtual cards for your agents.
GET/POST /v1/cards/*List transactions, get details, and manage pending authorizations.
GET /v1/transactions/*Fund agent wallets and withdraw earnings to external accounts.
POST /v1/transfers/*Real-time notifications for transactions, approvals, and alerts.
POST /v1/webhooks/*Programmatically manage SPEND.md configurations and rules.
GET/PUT /v1/config/*Join the waitlist to get early API access and be notified when the full documentation is available.
Join Waitlist