Query the build progress of an Adventure World. The API returns the encrypted World ID, build status, and first-frame URL; the client polls until the World enters ready.
Scope
Query the build progress of an Adventure World. Before calling, confirm the following:
- Authentication: The primary API Key is not required; either the primary or a temporary API Key can call this endpoint. For how to obtain them, see Obtain authentication credentials.
- Prerequisites: Query with the
encryptedWorldIdreturned by Create World. You can start querying from thegeneratingstate. - Caller: Either your server or your client can call it.
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/worlds/build-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 | |
encryptedWorldId string (Required)The encrypted World ID returned by Create World. It is encrypted by the server; you do not need to decrypt it. |
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 encryptedWorldId stringEncrypted World ID.status stringBuild status:
stringWorld first-frame URL; null when not yet generated or when the build failed.name stringWorld name. Returned only when status=ready.mode integerAlways 1 for Adventure. Returned only when status=ready. |
Prerequisite states and call notes
- Poll every 3–5 seconds until
statusisreadyorfailed. - Only a
readyWorld can exchange for a travel credential and enter the room. - When a URL image fails validation after asynchronous storage, the World may go from
generatingtofailed. - This endpoint does not return
aspectRatio; when you need creation metadata such asperspectiveoruploadMode, call Query World Detail.
Error codes
If the model call fails and returns an error, see HappyOyster Error Codes to resolve it.
Next steps
After the World enters ready:
- Get Travel Credential: exchange for a single-use
ticket. - Query World Detail: query the full creation metadata.