api-v2
Installation
SKILL.md
Zavu API v2
When to Use
Use this skill when code calls https://api.zavu.dev/v2, or when the user asks for v2. v2 is a smaller version of the same API: no sender object, no Zavu-Sender header, one project webhook, one error shape.
v1 is not deprecated. It keeps working unchanged, and v1 and v2 calls can be mixed in one codebase with the same API key and the same IDs. Use the other skills for v1.
From TypeScript, use client.v2 of @zavudev/sdk 0.59.0 or later. Every other SDK (zavudev on PyPI and the rest) calls v1 only: from those languages, call v2 with fetch, curl or any HTTP client. The HTTP examples below are what client.v2 sends.
import Zavudev from "@zavudev/sdk";
import type { MessageSendParams } from "@zavudev/sdk/v2"; // v2 types; the root exports v1's
const zavu = new Zavudev(); // reads ZAVUDEV_API_KEY
const params: MessageSendParams = { from: "+13125551212", to: "+56912345678", text: "Hi" };
const { message, routing } = await zavu.v2.messages.send(params);