Query parameters
-
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.
Default value is
20. -
The order to return the input items in. Default is
asc.asc: Return the input items in ascending order.desc: Return the input items in descending order.
Values are
ascordesc. -
An item ID to list items after, used in pagination.
-
An item ID to list items before, used in pagination.
Responses
-
OK
Hide response attributes Show response attributes object
-
The type of object returned, must be
list.Value is
list. -
A list of items used to generate this response.
Content item used to generate a response.
Content item used to generate a response.
One of: A message input to the model with a role indicating instruction following hierarchy. Instructions given with the
developerorsystemrole take precedence over instructions given with theuserrole.Hide attributes Show attributes
-
The type of the message input. Always set to
message.Value is
message. -
The role of the message input. One of
user,system, ordeveloper.Values are
user,system, ordeveloper. -
The status of item. One of
in_progress,completed, orincomplete. Populated when items are returned via API.Values are
in_progress,completed, orincomplete. -
A list of one or many input items to the model, containing different content types.
One of: A text input to the model.
An image input to the model. Learn about image inputs.
Hide attributes Show attributes
-
The type of the input item. Always
input_image.Value is
input_image. -
The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.
-
The ID of the file to be sent to the model.
-
The detail level of the image to be sent to the model. One of
high,low, orauto. Defaults toauto.Values are
high,low, orauto. Default value isauto.
A file input to the model.
Hide attributes Show attributes
-
-
The unique ID of the message input.
An output message from the model.
Hide attributes Show attributes
-
The unique ID of the output message.
-
The type of the output message. Always
message.Value is
message. -
The role of the output message. Always
assistant.Value is
assistant. -
The content of the output message.
One of: A text output from the model.
Hide attributes Show attributes
-
The type of the output text. Always
output_text.Value is
output_text. -
The text output from the model.
-
The annotations of the text output.
One of: A citation to a file.
A citation for a web resource used to generate a model response.
Hide attributes Show attributes
-
The URL of the web resource.
-
The title of the web resource.
-
The type of the URL citation. Always
url_citation.Value is
url_citation. -
The index of the first character of the URL citation in the message.
-
The index of the last character of the URL citation in the message.
-
-
-
The status of the message input. One of
in_progress,completed, orincomplete. Populated when input items are returned via API.Values are
in_progress,completed, orincomplete.
The results of a file search tool call. See the file search guide for more information.
Hide attributes Show attributes
-
The unique ID of the file search tool call.
-
The type of the file search tool call. Always
file_search_call.Value is
file_search_call. -
The status of the file search tool call. One of
in_progress,searching,incompleteorfailed,Values are
in_progress,searching,completed,incomplete, orfailed. -
The queries used to search for files.
-
The results of the file search tool call.
Hide results attributes Show results attributes object
-
The unique ID of the file.
-
The text that was retrieved from the file.
-
The name of the file.
-
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters, booleans, or numbers.
-
The relevance score of the file - a value between 0 and 1.
-
A tool call to a computer use tool. See the computer use guide for more information.
Hide attributes Show attributes
-
The type of the computer call. Always
computer_call.Value is
computer_call. Default value iscomputer_call. -
The unique ID of the computer call.
-
An identifier used when responding to the tool call with output.
action
object Required One of: A click action.
Hide attributes Show attributes
-
Specifies the event type. For a click action, this property is always set to
click.Value is
click. Default value isclick. -
Indicates which mouse button was pressed during the click. One of
left,right,wheel,back, orforward.Values are
left,right,wheel,back, orforward. -
The x-coordinate where the click occurred.
-
The y-coordinate where the click occurred.
A double click action.
Hide attributes Show attributes
-
Specifies the event type. For a double click action, this property is always set to
double_click.Value is
double_click. Default value isdouble_click. -
The x-coordinate where the double click occurred.
-
The y-coordinate where the double click occurred.
A drag action.
Hide attributes Show attributes
-
Specifies the event type. For a drag action, this property is always set to
drag.Value is
drag. Default value isdrag. -
An array of coordinates representing the path of the drag action. Coordinates will appear as an array of objects, eg
[ { x: 100, y: 200 }, { x: 200, y: 300 } ]A series of x/y coordinate pairs in the drag path.
A collection of keypresses the model would like to perform.
Hide attributes Show attributes
-
Specifies the event type. For a keypress action, this property is always set to
keypress.Value is
keypress. Default value iskeypress. -
The combination of keys the model is requesting to be pressed. This is an array of strings, each representing a key.
A mouse move action.
A screenshot action.
A scroll action.
Hide attributes Show attributes
-
Specifies the event type. For a scroll action, this property is always set to
scroll.Value is
scroll. Default value isscroll. -
The x-coordinate where the scroll occurred.
-
The y-coordinate where the scroll occurred.
-
The horizontal scroll distance.
-
The vertical scroll distance.
An action to type in text.
-
-
The pending safety checks for the computer call.
A pending safety check for the computer call.
-
The status of the item. One of
in_progress,completed, orincomplete. Populated when items are returned via API.Values are
in_progress,completed, orincomplete.
The output of a computer tool call.
Hide attributes Show attributes
-
The type of the computer tool call output. Always
computer_call_output.Value is
computer_call_output. Default value iscomputer_call_output. -
The unique ID of the computer call tool output.
-
The ID of the computer tool call that produced the output.
-
The safety checks reported by the API that have been acknowledged by the developer.
A pending safety check for the computer call.
-
A computer screenshot image used with the computer use tool.
Hide output attributes Show output attributes object
-
Specifies the event type. For a computer screenshot, this property is always set to
computer_screenshot.Value is
computer_screenshot. Default value iscomputer_screenshot. -
The URL of the screenshot image.
-
The identifier of an uploaded file that contains the screenshot.
-
-
The status of the message input. One of
in_progress,completed, orincomplete. Populated when input items are returned via API.Values are
in_progress,completed, orincomplete.
The results of a web search tool call. See the web search guide for more information.
Hide attributes Show attributes
-
The unique ID of the web search tool call.
-
The type of the web search tool call. Always
web_search_call.Value is
web_search_call. -
The status of the web search tool call.
Values are
in_progress,searching,completed, orfailed.
A tool call to run a function. See the function calling guide for more information.
Hide attributes Show attributes
-
The unique ID of the function tool call.
-
The type of the function tool call. Always
function_call.Value is
function_call. -
The unique ID of the function tool call generated by the model.
-
The name of the function to run.
-
A JSON string of the arguments to pass to the function.
-
The status of the item. One of
in_progress,completed, orincomplete. Populated when items are returned via API.Values are
in_progress,completed, orincomplete.
The output of a function tool call.
Hide attributes Show attributes
-
The unique ID of the function call tool output.
-
The type of the function tool call output. Always
function_call_output.Value is
function_call_output. -
The unique ID of the function tool call generated by the model.
-
A JSON string of the output of the function tool call.
-
The status of the item. One of
in_progress,completed, orincomplete. Populated when items are returned via API.Values are
in_progress,completed, orincomplete.
-
-
Whether there are more items available.
-
The ID of the first item in the list.
-
The ID of the last item in the list.
-
curl \
--request GET 'https://api.openai.com/v1/responses/{response_id}/input_items' \
--header "Authorization: Bearer $ACCESS_TOKEN"
{
"object": "list",
"data": [
{
"type": "message",
"role": "user",
"status": "in_progress",
"content": [
{
"type": "input_text",
"text": "string"
}
],
"id": "string"
}
],
"has_more": true,
"first_id": "string",
"last_id": "string"
}