GET
/responses/{response_id}/input_itemsList input items for a model response
Lists the input items used to generate a model response. Use limit to set the page size and order to choose the item order. Use after with an item identifier to continue through the results; check has_more to determine whether additional items are available.
response_idstringrequired
The identifier of the response whose input items to list.
limitintegeroptional
Maximum number of items to return, from 1 to 100. Defaults to 20 when omitted.
orderstringoptional
Item order: `asc` for ascending or `desc` for descending. Defaults to `desc` when omitted.
afterstringoptional
Item identifier after which to continue listing results.
includearray<string>optional
Additional response data to include, such as search results, sources, image URLs, or log probabilities; values must be supported include options.
200Returns a list object containing the input items, pagination state, and the first and last item identifiers.
objectstringrequired
The type of object returned, must be `list`.
dataarray<object>required
A list of items used to generate this response.
has_morebooleanrequired
Whether there are more items available.
first_idstringrequired
The ID of the first item in the list.
last_idstringrequired
The ID of the last item in the list.
404Returned when the response or the item specified by `after` was not found.
errorobjectrequired
429Returned when the request was rejected because a rate limit was exceeded.
errorobjectrequired
Error handling
A 404 is returned when the response_id path parameter identifies no response or the after query parameter identifies no item. A 429 indicates that the request exceeded a rate limit; limit must be between 1 and 100, and order must be asc or desc.