SDKs
Official client libraries — a VoyloML builder and a REST client, for Node and Python.
Languages
- Node.js ·
@voylo/sdk· zero-dependency, ships types - Python ·
voylo· standard library only - cURL / HTTP · the REST API works from any language
Two things in each SDK
- A VoyloML builder — construct call-control documents fluently (always valid XML).
- A REST client — thin wrapper over the API (numbers, trunks, applications, calls, webhooks, billing) with typed errors and the workspace header handled.
VoyloML builder · Node
Node.js
import { VoyloResponse } from "@voylo/sdk";
const r = new VoyloResponse();
const g = r.gather({ numDigits: 1, action: "/ivr" });
g.say("Press 1 for sales");
r.dial("sip:agent@sip.elevenlabs.io");
return r.toString();
REST client
Node.js
import { VoyloClient } from "@voylo/sdk";
const voylo = new VoyloClient({
apiKey: process.env.VOYLO_API_KEY,
workspaceId: process.env.VOYLO_WORKSPACE_ID,
});
const numbers = await voylo.numbers.list();
Python mirrors the same API (VoyloResponse, VoyloClient).
See VoyloML reference for every verb the builder supports.