Skip to content

/v1/web-sessions

POST
/v1/web-sessions
curl --request POST \
--url https://service.testing.nairon.cloud/v1/web-sessions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "webAgentId": "example", "mode": "WEB_FULL" }'
Media typeapplication/json
object
webAgentId
required
string format: cuid
/^[cC][0-9a-z]{6,}$/
mode
string
default: WEB_FULL
Allowed values: WEB_FULL WEB_TEXT voice voice_text text

Default Response

Media typeapplication/json
object
roomUrl
required
string
token
required
string
expiresAt
required
string
Examplegenerated
{
"roomUrl": "example",
"token": "example",
"expiresAt": "example"
}