import Zavudev from '@zavudev/sdk';const zavu = new Zavudev({ apiKey: process.env['ZAVUDEV_API_KEY'], // This is the default and can be omitted});const result = await zavu.messages.send({ to: "+14155551234", text: "Hello from Zavu!",});
You can optionally specify a sender by passing zavuSender (TypeScript), zavu_sender (Python), or the Zavu-Sender header (cURL). If omitted, your project’s default sender is used.
That’s it. Zavu automatically:
Respects user preference: When a user messages you first, we reply on the same channel they used
Optimizes outbound: For business-initiated messages, selects the optimal channel based on cost and delivery rates
Falls back intelligently: Tries alternative channels if delivery fails
Tracks everything: Delivery status updates via API and webhooks