Skip to content

VoiceGrant

What the client of a session needs to connect to the audio of a room. kind is the method of the server (p2p, livekit, or sora); the client asks for a new grant before expires_at.

object
kind
required
string
Allowed values: p2p livekit sora
url

The endpoint of the media server; omitted for p2p.

string
token

The access token of the media server; omitted for p2p.

string
options
required

The options of the method for the client.

object
key
additional properties
string
ice_servers
required

The STUN and TURN servers of the connections.

Array<object>

A STUN or TURN server, the RTCIceServer of the browser.

object
urls
required
Array<string>
username
string
credential
string
relay_only
required

Whether the client connects through TURN only (iceTransportPolicy relay).

boolean
expires_at
required
string format: date-time

Example generated

{
"kind": "p2p",
"url": "example",
"token": "example",
"options": {
"additionalProperty": "example"
},
"ice_servers": [
{
"urls": [
"example"
],
"username": "example",
"credential": "example"
}
],
"relay_only": true,
"expires_at": "2026-04-15T12:00:00Z"
}

For LLMs and coding agents:llms.txt,llms-full.txt, llms-small.txt

Analytics on this site