calculate_message_cost
Estimate monthly WhatsApp message costs in USD using the same rate snapshot and calculation as Waply's web calculator. Choose current or October 2026 rates. Returns total, category breakdown and free service allowance. Meta costs only; excludes Waply plans, taxes and international authentication. Lead with the estimate and its rate-card date.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | current selects the calculator's current snapshot; october selects the card effective 2026-10-01. Read effectiveFrom in the result; this is not a live rate lookup. | |
| locale | Yes | ||
| market | Yes | Exact market id from list_meta_pricing_markets, based on the recipient's country calling code. Do not infer it from the user's language. | |
| service | No | Outgoing free-form service messages per month within an eligible 24-hour window. Current card: free. October card: 1,000 free per number, then charged. Exclude free-entry-point traffic. | |
| utility | No | Delivered, chargeable utility templates per month. For current rates, exclude free utility templates inside the 24-hour window. In a comparison, this same count is used for both cards; no window distribution is inferred. | |
| marketing | No | Delivered, chargeable marketing templates per month. Exclude free-entry-point messages. | |
| phoneCount | No | WhatsApp business numbers sharing this estimate. October service allowance is pooled as in the web calculator; actual usage per number can differ. | |
| authentication | No | Delivered authentication templates per month at the standard rate. International authentication rates are not modeled. |