id stringSession identifier.
Use it to inspect, revoke and report on the session. |
token string — OPTIONALCredential the end user connects with.
Returned by POST /v2/sessions and GET /v2/sessions/{id} only. |
intent stringPossible values: [s2s, stt, tts] Product the session token is valid for:
s2s: speech-to-speech translation
stt: speech-to-text
tts: text-to-speech
A token presented to a different product is refused. |
connection_type stringPossible values: [ws, webrtc] Transport the end user will connect with.
webrtc is available for s2s only.
A token issued for one transport cannot be used with the other. |
single_use booleantrue if the token opens only one stream in its lifetime.
|
client_reference_id string — OPTIONALPossible values: length ≤ 256 Your identifier from the create request. |
status stringPossible values: [pending, active, idle, used, expired, revoked]
pending: issued, no stream opened yet, connect window still open
active: at least one stream is running
idle: reusable token that has been used before, no stream running, connect window still
open
used: single-use token whose stream has finished; cannot be used again
expired: connect window has passed and no stream is running
revoked: revoked by you
|
created_at date-timeWhen the session was created. |
connect_by date-timeMoment after which the token can no longer open a new stream. |
max_session_duration_seconds integer — OPTIONALDuration cap applied to each stream, if one was set. |
first_connected_at date-time — OPTIONALWhen the first stream was opened with this token, or null if none yet. |
active_stream_count integerNumber of streams running with this token. |
webrtc object — OPTIONALPresent for connection_type: webrtc only. url stringWebRTC endpoint the publisher and listeners connect to. | room_name stringRoom the session runs in. | subscriber_keys string[] — OPTIONALListener tokens, one per requested subscriber.
Returned on creation only. |
|