Room Tokens

View as MarkdownOpen in Claude

Generate room tokens allowing clients to join video rooms.

Access via client.video.roomTokens 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.video.roomTokens.create({
10 room_name: "my_room",
11 user_name: "John Smith",
12});

Methods