Query the recorded original and the three composited variants of a completed Acting Travel. For external delivery, withInstructionAndWatermark is recommended.
Scope
Query the recorded original and the three composited variants of a completed Acting Travel. withInstruction is the overlay variant of the user's process instructions; for external delivery, withInstructionAndWatermark is recommended. Before calling, confirm the following:
-
Authentication: Only the primary API Key is supported; temporary API Keys cannot be used (error code
403003).- Get the primary API Key: Get and configure an API Key.
-
Prerequisites: The Travel status is
completed. An available original URL is the precondition for returning an artifacts response. Confirm via Query Travel Status. - Caller: Called by your server.
HTTP request
- Singapore
- US (Virginia)
GET https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/api/v2/apps/happyoyster-1.0-acting/openapi/v1/travels/artifactsReplace {WorkspaceId} with your actual Workspace ID.Request parameters |
|
Authorization string (Required)API Key authentication. Only the primary API Key is supported; it starts with sk-, e.g. sk-xxx. It is typically configured as the environment variable $DASHSCOPE_API_KEY. A temporary API Key (starting with st-) returns 403003. | |
Query parameters | |
encryptedTravelId string (Required)An Acting encrypted Travel ID with status completed. Returned by Enter Travel. |
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.composeStatus stringThe aggregated status of the three composited variants:
original.video objectThe four fixed variants of the main video. Each item contains url, status, resolution, and durationSec.
stringDownload URL; null when processing or unavailable.video.*.status stringPer-item status:
string"720p" when original matches 720p; otherwise it may be null.video.*.durationSec integerThe uniformly parsed video duration in seconds; when parseable, all ready variants carry this value. It may be null when processing / unavailable or when the duration cannot yet be parsed. |
Prerequisite states and call notes
- The client can poll at a controlled interval while
composeStatus != ready. video.withInstructionis the process-instruction overlay variant, not the instruction-free original.- For external delivery, read
video.withInstructionAndWatermark; if your business only needs the original, keep readingvideo.original.url. - The four video variants share the same duration-parsing result, so within one response the ready variants with a parseable duration return a consistent
durationSec. - A Travel ended by
TRAVEL_NO_STREAM_AUTO_ENDisfailedand generates no queryable artifacts. - Do not always render
404000as "not yet complete": first readstatusanderrorCodevia Query Travel Status or Query Travel List; for afailedTravel, show the failure reason.
404000 scenarios
| Scenario | Endpoint behavior |
|---|---|
The Travel is still in progress (init / pending / running / paused) | Returns business code 404000, with message = Video is still being generated, please try again once the process is complete |
The Travel is failed | Returns business code 404000, with message = Experience failed and no video was produced (errorCode=<errorCode>): <errorMessage>; failure is terminal and no video will be produced |
| The Travel does not exist, does not belong to you, or is not Acting | Returns business code 404000 |
| The original URL is unavailable | Returns business code 404000; the original is the hard gate for the whole endpoint |
| The original is ready and composition is still processing | HTTP 200; the corresponding composited item has status=processing, url=null |
| Composition failed or the URL is temporarily unavailable | HTTP 200; the corresponding composited item has status=unavailable, url=null |
Error codes
If the model call fails and returns an error, see HappyOyster Error Codes to resolve it.
Next steps
- Query Travel List: view other historical Travels.
- End Travel: end a new Travel before querying its artifacts.