Fully Typed
Every parameter and response has TypeScript types with JSDoc. Autocomplete and type safety out of the box.
Zero dependencies. Fully typed. Auto-pagination, retry, and hooks built in.
npm install convoso-jsimport { Convoso } from 'convoso-js';
const client = new Convoso({
authToken: process.env.CONVOSO_TOKEN!,
maxRetries: 3,
});
// Search leads
const { results } = await client.leads.search({ list_id: '333', limit: 100 });
// Auto-paginate through all DNC entries
for await (const entry of client.dnc.searchAll({ campaign_id: '500' })) {
console.log(entry.phone_number);
}
// Monitor agents in real time
const monitor = await client.agentMonitor.search();
console.log(`${monitor.agents_ready} agents ready`);The Convoso API uses POST requests with URL-encoded bodies, returns inconsistent response shapes across endpoints, and has undocumented error codes. This SDK handles all of that:
auth_token added to every request automatically.d.ts declarations