List response input items
Lists the input items stored for a response, paginated with after, limit and order. Returns the input stored for this response: the full chain for previous_response_id, only the new turn for conversation, and the compaction item for compacted history. Background responses without stored input return an empty list.
store: true (the default); responses created with store: false return 404, as do responses that were deleted or are out of the API key’s project scope.
What is listed
The list contains the input stored for the response, which depends on how the response was created:previous_response_id: the full chain, including the items carried over from earlier responses.conversation: only the new turn sent with this response. Earlier turns are listed byGET /v3/conversations/{id}/messages, which requires the conversation list permission.- Compacted history: the dropped history appears as one compaction item.
status with Retrieve Response.
A user message that uses {{var}} variables is listed as the template, not the rendered text. Redacted PII is restored in the listed text and file names; uploaded file contents keep their redaction placeholders. Media URLs expire after one hour.
Pagination
The response is{ "object": "list", "data", "first_id", "last_id", "has_more" }. first_id and last_id are null on an empty page.
fc_<message_id>_<n>. Tool items run by the provider, such as web search, are listed under their stored ID, not the provider ID that the response output shows.
include
Passinclude to select extra fields. Repeat the parameter, use include[], or separate values with commas. Unknown values return 400.
Each of these fields is omitted unless its value is listed:
code_interpreter_call.outputscomputer_call_output.output.image_urlfile_search_call.resultsmessage.input_image.image_urlmessage.output_text.logprobsreasoning.encrypted_contentweb_search_call.action.sourcesweb_search_call.results
Media
Stored files are returned as presigned URLs valid for one hour. Image URLs on input messages are returned only withinclude=message.input_image.image_url. A file or image the API key cannot access, or that cannot be signed, is returned without a URL. Download media promptly, or list the items again for fresh URLs. file_id values are not stored and are not returned.Authorizations
Query Parameters
Additional fields to include. Each listed field is omitted unless requested. Accepts the OpenAI includables: code_interpreter_call.outputs, computer_call_output.output.image_url, file_search_call.results, message.input_image.image_url, message.output_text.logprobs, reasoning.encrypted_content, web_search_call.action.sources and web_search_call.results.
code_interpreter_call.outputs, computer_call_output.output.image_url, file_search_call.results, message.input_image.image_url, message.output_text.logprobs, reasoning.encrypted_content, web_search_call.action.sources, web_search_call.results Response
Input items retrieved successfully.