Node.js SDK
TypeScript SDK for Node.js. Install via npm, place calls with client.calls.create(). Preview; pin your version.
The Sautikit Node.js SDK is a TypeScript-first client for placing calls, checking call status, and managing phone numbers. It exports both ES modules and CommonJS, supports top-level await, and runs in Node.js 18+ and modern browsers.
npm install @sautikit/nodeOr with Yarn:
yarn add @sautikit/nodeOr with pnpm:
pnpm add @sautikit/nodePlace an outbound call and get the call ID back:
import { SautikitClient } from "@sautikit/node";
const client = new SautikitClient({
apiKey: process.env.SAUTIKIT_API_KEY,
});
const call = await client.calls.create({
from: "+254712345678",
to: ["+254700000001"],
});
console.log(`Call placed. ID: ${call.call_id}, Status: ${call.status}`);The response includes:
{
"call_id": "9d2b1f53-8c0e-4f1d-9a6b-5d3a8c47e9f0",
"pbx_session_id": "HD_1a2b3c",
"status": "ringing",
"events_url": "/v1/calls/9d2b1f53-8c0e-4f1d-9a6b-5d3a8c47e9f0/events"
}The SDK reads your API key from the SAUTIKIT_API_KEY environment variable by default:
export SAUTIKIT_API_KEY="eyJ..."Or pass it directly to the constructor:
const client = new SautikitClient({
apiKey: "eyJ...",
});Preview: semver pinning recommended. The SDK's public API may change before v1.0. Pin your version in package.json:
{
"dependencies": {
"@sautikit/node": "0.x.y"
}
}Subscribe to releases on GitHub to stay informed of breaking changes.