Skip to main content
POST
/
api
/
livekit
/
token
Generate Token
curl --request POST \
  --url http://localhost:8000/api/livekit/token \
  --header 'Content-Type: application/json' \
  --data '
{
  "room_name": "<string>",
  "user_id": "<string>",
  "user_name": "<string>"
}
'
{
  "token": "<string>",
  "ws_url": "<string>",
  "room_name": "<string>"
}

Body

application/json
room_name
string
required
user_id
string
required
user_name
string | null

Response

Successful Response

token
string
required
ws_url
string
required
room_name
string
required