Query the recorded original and the three composited variants of a completed Directing Travel. An available original is the precondition for returning an artifacts response; for external delivery, withInstructionAndWatermark is recommended.
Scope
Query the recorded original and the three composited variants of a completed Directing Travel. An available original is the precondition for returning an artifacts response; the composited variants may still be processing. 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 is the precondition for returning an artifacts response. Confirm via Query Travel Status. -
Caller: Called by your server.
HTTP request
Singapore
GET https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/api/v2/apps/happyoyster-1.0-directing/openapi/v1/travels/artifacts
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/artifacts
Replace {WorkspaceId} with your actual Workspace ID.
Request parameters | Query Travel artifacts |
Authorization API Key authentication. Only the primary API Key is supported; it starts with | |
Query parameters | |
encryptedTravelId A Directing encrypted Travel ID with status |
Response parameters | All four artifacts readyComposition still processing |
code Return code. | |
message Error message. | |
data Response data. |
Prerequisite states and call notes
- When the Travel is not
completed, does not exist, does not belong to you or is not Directing, or the original is not available,404000is returned; an available original is the precondition for returning an artifacts response. - When you need all composited variants, you can keep polling while
composeStatus != ready. video.withInstructionAndWatermarkis the recommended variant for external delivery.- 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.
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.