GET
/responses/{response_id}/input_itemsList response input items
Lists the input items used to generate a model response. Use after, limit, and order to paginate and order the items, and include to request additional output fields. The response identifies whether more input items are available.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
response_idstringrequired
The identifier of the response whose input items to retrieve.
limitintegeroptional
Maximum number of input items to return, from 1 to 100. Defaults to 20 when omitted.
orderstringoptional
Sort order for input items: `asc` or `desc`. Defaults to `desc` when omitted.
afterstringoptional
Item identifier after which to return input items for pagination.
includearray<string>optional
Additional output fields to include, such as `file_search_call.results`, `web_search_call.results`, or `message.output_text.logprobs`.
200Returns a list object containing the input items in `data`, pagination identifiers, and a `has_more` flag.
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.
429Returned when the request exceeds the rate limit.
errorobjectrequired
Error handling
A 429 is returned when the request exceeds the rate limit. response_id must identify the response whose inputs you want to list. limit must be between 1 and 100, and order must be asc or desc.