Get messaging rates for a country
Twilio Pricing API parity for messaging: returns per-unit SMS, MMS, WhatsApp, RCS, and Viber rates for one country (ISO 3166-1 alpha-2 country query param), including your organization’s effective price after any per-org overrides are applied. A channel with no published rate falls back to the platform default. Use it to preview message costs before sending. The country filter is a price-lookup key only — it does not route traffic. Returns 422 when country is missing or malformed.
Authorizations
Dashboard JWT token from Clerk
Headers
Sandbox opt-in for Clerk-session-authenticated requests. Set to true to route the call through the test-mode pipeline: no real provider delivery, no credits deducted, response meta.test_mode: true. Ignored for live API keys (dv_live_sk_*) — server-to-server clients must use a test-prefixed key (dv_test_sk_*) to exercise sandbox. Test-prefixed keys unconditionally enable sandbox regardless of this header.
true, false Response
Messaging rates in the standard { data, meta } envelope with the resolved country and a channels array of per-channel rate rows (base and effective per-unit price, currency, unit, provider, and whether a custom rate applied).
Messaging rates in the standard { data, meta } envelope with the resolved country and a channels array of per-channel rate rows (base and effective per-unit price, currency, unit, provider, and whether a custom rate applied).