Short methods for every day. client.api for everything else.
Seven groups cover the most common tasks. Every public API operation is also a typed method.
Your whole call history. One loop.
The iterator fetches the next page only when you need it. A break stops fetching.
Requests
0
Processed
0
Page 1
not fetched
Page 2
not fetched
Page 3
not fetched
Page 4
not fetched
Page 5
not fetched
Reads retry. Calls never go out twice.
On 429, 502, 503 or 504 the SDK retries reads. Writes such as placing a call are never repeated automatically.
Read
- GET /calls
- 503
- Retry-Afterretried
- 200 OK
Write
- POST /calls
- timeout
retryno second attempt- mayHaveExecutedCheck the state before you resend.
Typed errors
FamulorApiErrorThe API answered with
status,codeandrequestId.FamulorTimeoutErrorDeadline passed.
mayHaveExecutedtells you if it may have run.FamulorNetworkErrorNo response received, also with
mayHaveExecuted.FamulorAbortErrorYour
AbortSignalcancelled the request.
Predictable in every environment.
Explicit credentials, one fixed deadline per request and no global state.
You pass the key
The SDK loads no .env files and picks no workspace for you. Each client knows only its own key.
One client per workspace
An API key belongs to one workspace. For several workspaces, create several clients.
On your own domain too
White-label partners point baseUrl at their own HTTPS domain with /api/v1.
OAuth for user apps
Pass an OAuth token, or a function that returns the current one, instead of a key.
One deadline per request
timeoutMs covers the token, retries and the response. Cancel any time with an AbortSignal.
Files and audio
Uploads go in as FormData. Recordings and voice previews come back as ArrayBuffer.
Four ways in. Pick the one that fits.
All four work on the same workspace and the same data.
One operation, every tool
client.calls.create()POST /api/v1/callsfamulor create-callFamulor SDK
For TypeScript and JavaScript in your backend.
- Every API operation as a method
- Types from the OpenAPI
- ESM and CommonJS
Famulor CLI
For terminals, scripts, CI and coding agents.
- One command per API operation
- JSON, table or JSONL
- Key in your OS keychain
MCP Connector
For Claude, ChatGPT and other AI tools in chat.
- One server URL, OAuth sign-in
- Famulor tools right in the chat
- Nothing to install locally
REST API
For HTTP integrations in any language.
- OpenAPI specification
- Real-time webhooks
- Any language, any framework
Small package. Full API.
API coverage
100%
Every public operation via client.api.
Runtime dependencies
0
Uses the fetch of your Node.js runtime.
Module formats
2
ESM and CommonJS, typed for both.
Resource groups
7
Assistants, calls, campaigns and more.
Your first call in three steps.
Install, create a key, go.
- 01
Install
npm install famulor-sdk. Runs on Node.js 22 or newer, as ESM or CommonJS.
- 02
Create a key
Create a key in Settings → API & MCP and store it in your server’s environment or secret manager.
- 03
Go
new Famulor({ apiKey }), then client.assistants.list(). Your editor shows every field.
More from the platform
Other building blocks teams usually pair with this one.
Questions before you go live
What is the Famulor SDK?
The Famulor SDK is the official TypeScript and JavaScript client for the public Famulor API. It brings short methods for assistants, calls, campaigns, contacts, voices, knowledge bases and your account. client.api reaches every other operation, with types from the OpenAPI specification.
What do I need to use the SDK?
Node.js 22 or newer and a workspace with API Access through your plan or an add-on. Install it with npm install famulor-sdk. Create the API key in the dashboard under Settings → API & MCP.
Can I use the SDK in a browser or mobile app?
The SDK runs on your server so your API key stays secret. For conversations right on your website, use the web widget.
Can a call start twice if the connection drops?
Not through the SDK. It never retries writes automatically, not even after a rate limit. After a timeout, mayHaveExecuted shows whether the request may already have arrived. Check the state before you send it again.
Does it work with plain JavaScript?
Yes. The package ships ESM and CommonJS, so you can use import or require('famulor-sdk'). TypeScript projects get the types automatically.
Does it work with several workspaces and white-label?
Yes. An API key belongs to exactly one workspace, so you create one client per workspace. On your own domain, set baseUrl, for example to https://app.example.com/api/v1.
Does the SDK support OAuth?
Yes. Pass accessToken instead of apiKey: a token, or a function that returns the current one. Your app runs consent and token refresh.
When should I use the SDK, CLI or MCP Connector?
The SDK fits your backend. The CLI is for terminals, scripts, CI and coding agents. The MCP Connector brings Famulor into chat tools like Claude or ChatGPT. All three use the same API and workspace.
Your first call, a few lines away.
Get an API key, install famulor-sdk and start with client.assistants.list().
The Famulor SDK is free and MIT licensed. It needs Node.js 22 or newer and a plan with API Access.