Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

Cost Estimate

Get a cost estimate for launching a campaign, including wallet balance check. Use this before calling POST /campaigns/{id}/send to verify you have sufficient credits.
path idstringrequired
Campaign ID (UUID)
Request example
curl https://api.v2.dealmachine.com/v1/mail/campaigns/a1b2c3d4/cost-estimate \ -H "Authorization: Bearer dm_sk_live_xxx"
Response example
{ "data": { "recipient_count": 150, "price_per_card_cents": 72, "total_cost_cents": 10800, "total_cost_dollars": 108.00, "wallet_balance_cents": 25000, "wallet_available_cents": 20000, "can_afford": true, "auto_reload_available": true } }