Participants
The participants resource works with a room's live participants. It resolves the room's active session for you, so you pass a room id instead of a session id. For past sessions, use Sessions.
List participants
Returns an empty page when the room has no live session.
- Node.js
- Go
const participants = await client.participants.list(roomId);
for await (const p of participants) {
console.log(p.participantId, p.name);
}
for p, err := range client.Participants.ListAutoPaging(ctx, roomID, videosdk.ListParams{}) {
if err != nil {
return err
}
fmt.Println(p.ParticipantID, p.Name)
}
Get a participant
Errors when the room has no live session.
- Node.js
- Go
const p = await client.participants.get(roomId, "participant-alice");
p, err := client.Participants.Get(ctx, roomID, "participant-alice")
Remove a participant
- Node.js
- Go
await client.participants.remove(roomId, "participant-alice");
msg, err := client.Participants.Remove(ctx, roomID, "participant-alice")
See Sessions for the participant shape.
Got a Question? Ask us on discord

