Tokens

View as MarkdownOpen in Claude

Manage API tokens with create, update, and delete operations.

Access via client.compat.tokens 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 token = await client.compat.tokens.create({
name: "my-token",
permissions: ["voice", "messaging"],
});

Methods