Short Codes

View as MarkdownOpen in Claude

Manage short codes assigned to your SignalWire project. Short codes are pre-provisioned, so this resource supports listing, retrieving, and updating only — there are no create or delete operations.

Access via client.shortCodes on a RestClient instance.

1import { RestClient } from "@signalwire/sdk";
2
3const client = new RestClient({
4 project: "your-project-id",
5 token: "your-api-token",
6 host: "your-space.signalwire.com"
7});
8
9const codes = await client.shortCodes.list();
10for (const code of codes.data ?? []) {
11 console.log(code.id, code.number);
12}

Methods