Coming Soon

API Reference

Full programmatic control over your agent wallets. RESTful API with comprehensive webhooks and real-time events.

API Example
// 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 Endpoints

Authentication

API key management, OAuth flows, and signed request verification.

POST /v1/auth/*

Cards

Create, update, freeze, and manage virtual cards for your agents.

GET/POST /v1/cards/*

Transactions

List transactions, get details, and manage pending authorizations.

GET /v1/transactions/*

Transfers

Fund agent wallets and withdraw earnings to external accounts.

POST /v1/transfers/*

Webhooks

Real-time notifications for transactions, approvals, and alerts.

POST /v1/webhooks/*

Config

Programmatically manage SPEND.md configurations and rules.

GET/PUT /v1/config/*

API documentation coming soon

Join the waitlist to get early API access and be notified when the full documentation is available.

Join Waitlist