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.

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

Methods