
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@saperly/sdk
Advanced tools
Typed TypeScript client for the Saperly API. The phone carrier for AI agents.
Typed TypeScript client for the Saperly API. The phone carrier for AI agents.
One API call gives your agent a real phone number with TCPA compliance, consent capture, and an audit trail built in. Zero runtime dependencies, Node.js 18+.
npm install @saperly/sdk
Provision a hosted line and print its phone number.
import { Saperly } from "@saperly/sdk";
const saperly = new Saperly({ apiKey: process.env.SAPERLY_API_KEY! });
const line = await saperly.lines.create({
name: "my agent",
mode: "hosted",
systemPrompt: "You are a helpful assistant.",
});
console.log(line.phoneNumber);
Get an API key at saperly.com/settings/keys. Signup is portal-only (magic link, Google, or GitHub).
Saperly uses a two-tier credential model. Both authenticate via Authorization: Bearer <key>.
| Credential | Use case |
|---|---|
API key (sk_live_…, sk_test_…) | Place calls, send SMS, manage lines, read usage and audit. |
Service key (sk_svc_live_…, sk_svc_test_…) | Mint, rotate, and revoke child API keys via POST /v1/keys. Credential management only. |
Child API keys minted by a service key carry their own scope: full, call_only, sms_only, or read_only, optionally bound to a single line_id with a monthly_cap_cents ceiling. Full reference at docs.saperly.com/service-keys.
MIT. See LICENSE.
hello@saperly.com or open an issue.
FAQs
Typed TypeScript client for the Saperly API. The phone carrier for AI agents.
The npm package @saperly/sdk receives a total of 5 weekly downloads. As such, @saperly/sdk popularity was classified as not popular.
We found that @saperly/sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.