Send a message
Send a message to a recipient via SMS or WhatsApp.
Channel selection:
- If
channelis omitted andmessageTypeistext, defaults to SMS - If
messageTypeis anything other thantext, WhatsApp is used automatically
WhatsApp 24-hour window:
- Free-form messages (non-template) require an open 24h window
- Window opens when the user messages you first
- Use template messages to initiate conversations outside the window
Daily limits:
- Unverified accounts: 200 messages per channel per day
- Complete KYC verification to increase limits to 10,000/day
Documentation Index
Fetch the complete documentation index at: https://docs.zavu.dev/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Optional sender profile ID. If omitted, the project's default sender will be used.
"sender_12345"
Body
Request body to send a message.
Recipient phone number in E.164 format, email address, or numeric chat ID (for Telegram/Instagram).
"+56912345678"
Delivery channel. Use 'auto' for intelligent routing. If omitted, channel is auto-selected based on sender capabilities and recipient type. For email recipients, defaults to 'email'.
auto, sms, sms_oneway, whatsapp, telegram, email, instagram, voice Type of message. Defaults to 'text'.
text, image, video, audio, document, sticker, location, contact, buttons, list, cta_url, reaction, template Text body for text messages or caption for media messages.
"Your verification code is 123456."
Additional content for non-text message types.
Email subject line. Required when channel is 'email' or recipient is an email address.
998"Your order confirmation"
HTML body for email messages. If provided, email will be sent as multipart with both text and HTML.
Reply-To email address for email messages.
"support@example.com"
Optional idempotency key to avoid duplicate sends.
"msg_01HZY4ZP7VQY2J3BRW7Z6G0QGE"
Arbitrary metadata to associate with the message.
Whether to enable automatic fallback to SMS if WhatsApp fails. Defaults to true.
Language code for voice text-to-speech (e.g., 'en-US', 'es-ES', 'pt-BR'). If omitted, language is auto-detected from recipient's country code.
"es-ES"
Email attachments. Only supported when channel is 'email'. Maximum 40MB total size.
50Response
Message accepted for delivery.
