> ## Documentation Index
> Fetch the complete documentation index at: https://api.docs.dealmachine.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cost Estimate

> Estimate the cost of launching a campaign

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.

<ParamField path="id" type="string" required>
  Campaign ID (UUID)
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl https://api.v2.dealmachine.com/v1/mail/campaigns/a1b2c3d4/cost-estimate \
    -H "Authorization: Bearer dm_sk_live_xxx"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "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
    }
  }
  ```
</ResponseExample>
