SDK Reference
Node.js SDK
Official TypeScript SDK for the Staffify API. Zero runtime dependencies — uses native fetch and Node.js crypto. Ships ESM, CommonJS, and full .d.ts type declarations. Requires Node 18+.
Installation
bash
npm install staffify
Quick example
TypeScript
import Staffify from 'staffify';
const client = new Staffify({ apiKey: process.env.STAFFIFY_API_KEY });
const { data } = await client.agents.list();
console.log(data.agents);What's included
agentsCreate, configure, and manage AI voice agentscallsList, inspect, and control active callsphoneNumbersPurchase, assign, and manage phone numbersaddressesRegulatory address management for phone numbersknowledgeBasesBuild and query knowledge bases for agentswebhooksManage org-level webhook endpointsprojectProject settings and project-level webhooksorgMulti-project management with org keyssmsSend SMS messages from assigned numbersusageQuery usage stats and cost breakdownsvoicesBrowse available voices by languageverifyFuzzy-match caller input against expected valuescreditsCheck account balance and tiertestSessionsTest agents interactively without making real callsTypeScript support
All methods are fully typed. Import types directly:
TypeScript
import type { Agent, Call, CreateAgentParams } from 'staffify';