Authorizations
DashScope API key.
Path Parameters
The ID of the response whose input items you want to list, in the format resp_xxx. Only response IDs returned by requests created with store=true support this query.
Query Parameters
Returns the items that come after the specified item ID (in the format msg_xxx), in the order set by order. Item IDs come from output[].id in the create-response result, or from data[].id, first_id, and last_id returned by this API. Typical use is pagination: pass the last_id from the previous call as after to fetch the next page.
The maximum number of items to return. Value range: [1, 100]. Default: 20.
The sort order. Valid values: asc (ascending) and desc (descending). Default: desc.
Response
The list of input items. Each element is a message object. In a multi-turn conversation chained with previous_response_id, earlier user messages and model replies are included in chronological order.
The ID of the first item in the list.
The ID of the last item in the list.
Whether more items are available. When true, pass the last_id from this call as the after parameter of the next request to fetch the next page.
The corresponding response ID.
The name of the model used to generate the response.
The Unix timestamp, in milliseconds, when the response was created. Note: this unit differs from the created_at returned by the create-response and retrieve-response APIs, which is in seconds.
Returned for multi-turn conversations. The response ID of the previous turn.