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.

import { RestClient } from "@signalwire/sdk";
const client = new RestClient({
project: "your-project-id",
token: "your-api-token",
host: "your-space.signalwire.com"
});
const codes = await client.shortCodes.list();
for (const code of codes.data ?? []) {
console.log(code.id, code.number);
}

Methods