cURL - Get travel credential
Scope
A third-party server uses the primary API Key to exchange for a short-lived, single-use ticket, then securely delivers it to the client. Before calling, confirm the following:
- Only the primary API Key is supported; temporary API Keys cannot be used (error code
403003). - The World must belong to the current primary account and the Adventure model, and its status must be
ready. - Called by your server; the resulting
ticketshould be delivered only to a client that is about to enter the room immediately.
Authorizations
string
header
required
QwenCloud API Key. Only the primary API Key (sk- prefix) is supported. See Get an API Key.
Header Parameters
string
default"application/json"
required
Request content type. This parameter must be set to application/json.
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.
Body
application/jsonstring
required
An Adventure World ID under the current primary account with status ready. Returned by Create World.