Until now, RevDesk has been something you use. Starting today, it's also something you build on. We're shipping two official, fully-typed npm packages so you can put RevDesk AI agents directly into your own product, with no telephony infrastructure to run.
@revdesk/sdk — the typed API client
The official TypeScript client for the RevDesk v1 API. Every request and response shape is generated straight from our OpenAPI spec, so your editor autocompletes real fields and your build catches mistakes before they ship.
npm install @revdesk/sdk
import { RevDesk } from "@revdesk/sdk";
const revdesk = new RevDesk({ apiKey: process.env.REVDESK_API_KEY! });
// Buy a number — it answers with an AI agent out of the box
const { data: number } = await revdesk.phoneNumbers.buy({ area_code: "415" });
// See the agents in your workspace
const { data: agents } = await revdesk.agents.list();
// Talk to one straight from the browser
const { data: call } = await revdesk.agents.webCall(agents[0].id);
What you get: full coverage of numbers, agents, calls, SMS, caller IDs, caller trust, and usage; auto-pagination via listAll(); safe retries with idempotency keys; typed RevDeskErrors; and it's open source.
Agents you can actually steer
Every number you buy gets a RevDesk AI agent wired up to answer it automatically — through the dashboard or the API, same path, no extra setup. Now you can drive them from code:
- agents.list() — discover the agents in your workspace and which number each answers.
- phoneNumbers.update(id, { agent_id }) — reassign which agent picks up a number.
- agents.webCall(id) — dispatch an agent into a room and get a browser join token. Pair it with @revdesk/webrtc's RevDeskRoom and your users talk to a RevDesk agent from a web page. No phone number, no PSTN leg, three lines of code.
@revdesk/webrtc — calling, right in the browser
Place and receive calls from a web page. RevDeskRTC connects the browser directly; RevDeskRoom joins a relayed call (and now, an agent call). Both emit the same CallState lifecycle, so you write your UI once.
npm install @revdesk/webrtc
Your AI agents can run the phone too
A hosted MCP server at mcp.revdesk.com lets any MCP-capable agent send texts, place and hang up calls, search and buy numbers, and pull usage.
Everything above is live and playable at https://revdesk.dev, our open-source "phone for the web." Grab an API key, paste it in, and dial.