POST
/
room
/
{id}
/
user
curl --request POST \
  --url https://livepeer.studio/api/room/{id}/user \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "canPublish": true,
  "canPublishData": true,
  "metadata": "<string>",
  "name": "name"
}'
{
  "id": "d32ae9e6-c459-4931-9898-e86e2f5e7e16",
  "joinUrl": "https://meet.livepeer.chat",
  "token": "token"
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json
canPublish
boolean

Whether a user is allowed to publish audio/video tracks

canPublishData
boolean

Whether a user is allowed to publish data messages to the room

metadata
string

User defined payload to store for the participant

name
string
required

Display name

Response

201 - application/json
id
string

The ID of the user

joinUrl
string

Joining URL - use this for Livepeer's default meeting app (see the multiparticipant streaming guide for more info).

token
string

Joining JWT - this can be used if you have a custom meeting app (see the multiparticipant streaming guide for more info).