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
- China (Beijing)
- US (Virginia)
GET https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/api/v2/apps/happyoyster-1.0-adventure/openapi/v1/travels/statusReplace {WorkspaceId} with your actual Workspace ID.Request parameters |
|
Authorization string (Required)API Key authentication. The primary API Key is not required; either the primary or a temporary API Key can call it.
| |
Query parameters | |
encryptedTravelId string (Required)The Adventure encrypted Travel ID. Returned by Enter Travel. | |
clientStreamStatus string (Optional)The client's RTC pull-stream or playback status, case-insensitive. Unrecognized values are ignored. Allowed values:
| |
clientStreamStatusTimeMs long (Optional)The millisecond timestamp of the client state change. Used together with clientStreamStatus. |
Response parameters |
|
code integerReturn code. 0 means success; non-zero is an error code. | |
message stringError message. null on success. | |
data objectResponse data. null on failure.
Properties encryptedTravelId stringEncrypted Travel ID.status stringTravel lifecycle status:
paused state; do not build a state machine around pause / resume.rtcStatus stringServer-side RTC streaming status; different from the clientStreamStatus reported by the client.updateTime stringLast update time, in ISO 8601 format.userInstructions null | arrayAdventure does not support HTTP instruct, and exploration actions are not echoed to this field; usually null or [], and can be ignored.chapters arrayThe chapter list; null when no chapter data has been generated.characterActions arrayAvailable action IDs for the current character / subject; [] when there is no recommendation. Usually 2–4 are returned. Common actions:
arrayAvailable environment-interaction action IDs for the current scene; [] when there is no recommendation. The server selects 0–3 from a fixed action pool by scene and may return an empty array. Common actions:
|
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.