Tokens

View as MarkdownOpen in Claude

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

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

Methods