Query the Adventure Travel lifecycle, server-side streaming status, and the current world's action pool; you can also report the client's pull-stream or playback heartbeat at the same time.
Scope
Query the Adventure Travel lifecycle, server-side streaming status, and the current world's action pool; 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-adventure/openapi/v1/travels/status
Replace {WorkspaceId} with your actual Workspace ID.
China (Beijing)
GET https://{WorkspaceId}.cn-beijing.maas.aliyuncs.com/api/v2/apps/happyoyster-1.0-adventure/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-adventure/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 Adventure 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.
- Adventure product capabilities have no
pausedstate; do not build a state machine around pause / resume. characterActionsandenvironmentActionsare available-action hints; actual control is still sent via the SDKsendCommand.- This endpoint does not return
mode,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.- Adventure does not support HTTP
instruct,pause,resume,rewind, orupdate-script; do not integrate the following paths as available HTTP capabilities:/travels/instruct,/travels/pause,/travels/resume,/travels/rewind,/travels/update-script.
Error codes
If the model call fails and returns an error, see HappyOyster Error Codes to resolve it.
Next steps
After the Travel becomes running:
- The client sends direction, viewpoint, and action controls via the SDK
sendCommand(you can first read the action pool returned by this endpoint). - End Travel: end the session and handle the artifacts.