@yotel/client
v0.2.2
Published
Official TypeScript client for the Yotel API (Zetta Dialer).
Downloads
62
Maintainers
Readme
@yotel/client
Official TypeScript client for the Yotel API.
npm install @yotel/clientQuickstart
import { YotelClient } from "@yotel/client";
const client = new YotelClient({ apiKey: "yt_test_..." });
const campaign = await client.campaigns.create({
name: "Demo",
dial_mode: "predictive",
});
const lead = await client.leads.create({
campaign_id: campaign.id,
phone: "9876543210",
});Verifying webhooks
import { verifyWebhook, InvalidSignature } from "@yotel/client";
const event = verifyWebhook({
rawBody,
headers: requestHeaders,
signingSecret: process.env.YOTEL_WEBHOOK_SECRET!,
});See the full docs at docs.yotel.in.
License
Apache-2.0
