Query the Directing Travel lifecycle, server-side streaming status, executed text instructions, and chapter information; you can also report the client's pull-stream or playback heartbeat at the same time.
Scope
Query the Directing Travel lifecycle, server-side streaming status, executed 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. For how to obtain them, see Obtain authentication credentials.
- Prerequisites: Query with the
encryptedTravelIdreturned by Enter Travel. - Caller: Either your server or your client can call it. Polling every 2–5 seconds is recommended.
HTTP request
Singapore
GET https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/api/v2/apps/happyoyster-1.0-directing/openapi/v1/travels/status
Replace {WorkspaceId} with your actual Workspace ID.
US (Virginia)
GET https://{WorkspaceId}.us-east-1.maas.aliyuncs.com/api/v2/apps/happyoyster-1.0-directing/openapi/v1/travels/status
Replace {WorkspaceId} with your actual Workspace ID.
Request parameters | Query Travel status |
Authorization API Key authentication. The primary API Key is not required; either the primary or a temporary API Key can call it.
| |
Query parameters | |
encryptedTravelId The Directing encrypted Travel ID. Returned by Enter Travel. | |
clientStreamStatus The client's RTC pull-stream or playback status, case-insensitive. Unrecognized values are ignored. Allowed values:
| |
clientStreamStatusTimeMs The millisecond timestamp of the client state change. Used together with |
Response parameters | Travel running |
code Return code. | |
message Error message. | |
data Response data. |
Prerequisite states and call notes
- Poll every 2–5 seconds.
- In the
runningstatus, you can call the supported control endpoints according tocreationModel: standard mode supportsinstruct,pause,resume,rewind, andend; script mode supportsupdate-script,pause,resume,rewind, andend. - This endpoint does not return
mode,aspectRatio,playUrl,bgmUrl, orsessionId; the streaming configuration is based on the Enter Travel response. clientStreamStatusis the client-side playback heartbeat, andrtcStatusis the server-side streaming status; they are not interchangeable.
Error codes
If the model call fails and returns an error, see HappyOyster Error Codes to resolve it.
Next steps
When the Travel is running or paused:
- Standard mode: Send Process Instruction.
- Script mode: Full script update.
- Common: Pause / Resume / Rewind / End.