Skip to main content

Create a LiveKit join token

POST 

/api/rooms/:roomId/token

Returns a signed LiveKit access token and the LiveKit URL for joining the room's meeting, plus the caller's identity, display name, role and permissions. The token is valid for 6 hours; it lets every role subscribe and send data, allows publishing audio and video only for roles with publish_av, and gives LiveKit room admin rights to the host and moderators. A caller who is not yet a member becomes one with the room's defaultRole; the room creator is always host. Signed-in users join as themselves. Guests must send a display name (trimmed, up to 64 characters) and get a new guestId when they send none or an invalid one; they should keep it to rejoin with the same identity. Anyone with the room id may call it.

When the room has a waiting room and the caller is neither the creator nor a member, no token is issued: the caller is queued and gets 403 with error set to waiting_room, or waiting_denied if they were denied. Returns 503 when LiveKit is not configured.

Request​

Responses​

Join token.