Send rich WhatsApp content to your users with automatic fallback to SMS when WhatsApp is not available.
WhatsApp messages require the recipient to have WhatsApp installed and active. If WhatsApp is not available, you can configure automatic fallback to SMS.
Copy
const res = await contiguity.whatsapp.send({ to: "+1234567890", message: "Hello via WhatsApp!", // from: "+15555555555", fallback: { when: ["whatsapp_unsupported", "whatsapp_fails"], from: "+15555555555" }, attachments: ["https://example.com/image.png"]});