The client uses the ticket to create an actual Travel and obtain the RTC join configuration, the Acting capability version, and the player aspect ratio. A successful call creates the Travel.
Scope
The client uses the ticket to create an actual Travel and obtain the RTC join configuration, the Acting capability version, and the player aspect ratio. Before calling, confirm the following:
- Authentication: The primary API Key is not required; the
ticketcompletes the enter-room validation. For how to obtain it, see Obtain authentication credentials. - Prerequisites: The
ticketis obtained from Get Travel Credential, unexpired and unused, and its World status isready. - Caller: Called by your client.
HTTP request
- Singapore
- US (Virginia)
POST https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/api/v2/apps/happyoyster-1.0-acting/openapi/v1/travels/enter-travelReplace {WorkspaceId} with your actual Workspace ID.Request parameters |
|
Content-Typestring(Required)Request content type. This parameter must be set to application/json. | |
Authorization string (Required)API Key authentication. The primary API Key is not required; either the primary or a temporary API Key can call it.
| |
Request Body | |
ticket string (Required)An unexpired, unused single-use credential obtained from Get Travel Credential. Reusing the same ticket returns 401011. |
Acting does not consume
maxExperienceTimeSec; do not pass it. If an invalid tier is still passed, 400000 is returned before model routing.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 stringThe newly created encrypted Travel ID. Used for subsequent Query Travel Status, pause, resume, end, and artifacts queries.encryptedWorldId stringThe encrypted World ID that this Travel corresponds to.mode integerAlways 3 for Acting.creationModel stringAlways simple for Acting.playUrl nullNot available yet; fixed to null.firstFrame stringWorld first-frame URL.rtcConfig objectRTC join configuration; null when there is no available streaming channel, in which case the client cannot start playback based on it.
stringThe Acting enter-room version, fixed to actingV2. Control interfaces must be called according to this version.aspectRatio stringAspect ratio. The client must set the player orientation accordingly before pulling the stream:
integerNo-stream auto-end timeout in seconds, defaults to 30; the actual response prevails. If rtcStatus does not enter the streaming state within this time after entering the room, call End Travel with failCode=TRAVEL_NO_STREAM_AUTO_END.maxExperienceTimeSec nullActing does not use the maximum experience duration; fixed to null. |
Prerequisite states and call notes
- The World corresponding to the
ticketmust beready, and the ticket must be unexpired and unused. - A successful call creates the Travel; reusing the same
ticketreturns401011. - When the Acting feature or specification is not enabled,
403007is returned, and no Travel is created. versionmust be handled asactingV2; do not call control interfaces according to another capability version.- The client should read
aspectRatiobefore establishing the stream pull or the rendering container: use a portrait container for9:16and a landscape container for16:9. - Do not pass
maxExperienceTimeSec. Acting does not auto-end by this field, and the client must not use it to implement a countdown. rtcConfig=nullmeans there is currently no available streaming channel, and the client cannot start playback based on it.
Error codes
If the model call fails and returns an error, see HappyOyster Error Codes to resolve it.
Next steps
After entering the room successfully:
- Query Travel Status: poll every 2–5 seconds; you can send instructions when the Travel is
runningorpaused. - Send Process Instruction: drive the subsequent role-play performance.
- Pause Travel / Resume Travel: control the running pace as needed.
- End Travel: on ending, it enters
completedand artifact processing begins.