🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

kaicalls

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kaicalls

Official KaiCalls SDK — give your AI agent a phone. Outbound calls, agents, leads, SMS, transcripts, and webhooks.

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

kaicalls

Official JavaScript/TypeScript SDK for the KaiCalls API — give your AI agent a phone. Outbound calls, agents, leads, SMS, transcripts, webhooks, and platform APIs.

  • Zero dependencies (uses native fetch, Node 18+)
  • Full TypeScript types, ESM + CJS
  • Docs: https://www.kaicalls.com/docs/api · Live OpenAPI: GET /api/v1/openapi.json

Install

npm install kaicalls

Quick start

import { KaiCalls } from 'kaicalls';

const kai = new KaiCalls({ apiKey: 'kc_live_...' });

// Make an outbound call — the agent auto-enriches with CRM context
const call = await kai.calls.create({
  agentId: 'uuid-abc123',
  to: '+15125551234',
  name: 'John Smith',
  context: 'Following up on his kitchen remodel inquiry',
});

// Block until the call finishes, then read the AI summary
const result = await kai.calls.wait(call.id);
console.log(result.summary);

No account yet? Sign up via the API

import { KaiCalls } from 'kaicalls';

const account = await KaiCalls.signup({
  businessName: 'Smith Law Firm',
  email: 'contact@smithlaw.com',
  planId: 'starter',
});
// account.api_key works immediately; send the owner to account.checkout_url
const kai = new KaiCalls({ apiKey: account.api_key });

What's wrapped

ResourceMethods
kai.callscreate, get, list, wait
kai.recordingsget
kai.agentslist, get, create, update, versions
kai.leadslist, get, create, update, audit
kai.smssend, updatePrompt, conversations, messages
kai.transcriptslist
kai.phoneNumberslist, available, assign, release
kai.workspaceslist, get, create, update (lifecycle actions)
kai.webhookslist, create, delete, test, rotateSecret
kai.analyticsdashboard, calls, funnel, agents, weekly, businesses
kai.evalscreate, list, get, update, delete, run, getRun
kai.eventslist, deliveries, replay, backfill
kai.communicationRunsvalidate, preview, create, list, pause, cancel, jobs, attempts
kai.discoverycapabilities, openapi, schemas, health
kai.accountbalance, usage

Anything not wrapped yet is reachable through the escape hatch:

await kai.request('/api/sdr/pipeline', { query: { businessId: 'uuid-biz' } });

Errors

All non-2xx responses throw KaiCallsError with status, code (e.g. unauthorized, forbidden, rate_limited), message, and the raw body.

import { KaiCallsError } from 'kaicalls';

try {
  await kai.calls.create({ agentId, to });
} catch (err) {
  if (err instanceof KaiCallsError && err.code === 'rate_limited') {
    // back off and retry
  }
}

Notes

Keywords

kaicalls

FAQs

Package last updated on 16 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts