1
Install the package
In your server project, run:Use Node.js 22 or newer. The package supports TypeScript and JavaScript, with both ESM
import and CommonJS require.2
Create a workspace API key
Select the intended workspace in Famulor, open Settings → API & MCP and create a key. Copy it while the full value is visible; it is shown only once.The workspace needs API Access through its plan or an add-on. A dashboard-created key has full scopes; if your integration needs fewer permissions, see API key hygiene.
3
Store the key on your server
For local development, put the key in a Add
.env file:.env to .gitignore. For hosted applications, use your host’s secret manager or server environment settings. The SDK receives the key explicitly; it does not load .env files or choose a workspace automatically.4
Read your assistants
Save this file as Run it with Node’s environment-file support:An empty list is a successful connection when your workspace has no assistants yet. If the request fails, see Troubleshooting.
sdk-read.mjs:sdk-read.mjs
Start one outbound call
Choose an active assistant and an outbound-capable phone number assigned to it. Use a destination you intend to call, in E.164 format such as+4915123456789.
Save this file as sdk-call.mjs:
sdk-call.mjs
Use your own domain
For a white-label workspace, use the domain you sign in to and include/api/v1: