Create streaming session (deprecated)
[DEPRECATED] Use /session-storage/session instead.
Endpoint provides functionality to initiate streaming sessions. It creates a unique Room at the WebRTC server for upcoming audio publishing and registers connection at the WebSocket translation management API. JWT access token received in response should be used for both connecting to the WebRTC server and WebSocket translation management API.
Notice, the JWT access token contains permissions, which may lead to restriction of several API functionalities.
Streaming session allows publishing RTC stream to the server, receiving translated audio stream, and managing translation options through WebSocket API.
References
Request body
Response
Session created successfully.
Example response
{
"ok": true,
"data": {
"publisher": [
"eyJhbGciOiJIUzI1NiI...wNzUwMzcsImV4cCI6MTYzMjA3NTAzN30.eyJpZCI6MX0"
],
"subscriber": [
"eyJhbGciOiJIUzI1NiI...wNzUwMzcsImV4cCI6MTYzMjA3NTAzN30.eyJpZCI6MX0"
],
"room_name": "e0a14Cb7",
"stream_url": "https://api.palabra.ai/stream/",
"control_url": "wss://api.palabra.ai/stream/control/"
}
}Changes
No recorded changes to this endpoint across all 1 revision of this API.