cURL - Query Travel status
Scope
Query the Acting Travel lifecycle, server-side streaming status, sent text instructions, and chapter information; you can also report the client's pull-stream or playback heartbeat at the same time. Before calling, confirm the following:
- Authentication: The primary API Key is not required; either the primary or a temporary API Key can call it.
- Prerequisites: Query with the
encryptedTravelIdreturned by Enter Travel (Client). - Caller: Either your server or your client can call it. Polling every 2-5 seconds is recommended.
Authorizations
string
header
required
QwenCloud API Key. Only the primary API Key (sk- prefix) is supported. See Get an API Key.
Header Parameters
string
required
API Key authentication. The primary API Key is not required; either the primary or a temporary API Key can call it.
- Primary API Key: starts with sk-, e.g. sk-xxx.
- Temporary API Key: starts with st-, e.g. st-xxx.
Query Parameters
string
required
The Acting encrypted Travel ID. Returned by Enter Travel (Client).
enum<string>
The client's RTC pull-stream or playback status, case-insensitive. Unrecognized values are ignored.
DISCONNECTED,CONNECTING,CONNECTED,PLAYING,BUFFERING,PAUSED,RECONNECTING
integer
The millisecond timestamp of the client state change. Used together with clientStreamStatus.