Skip to content

List a stored response's input items

GET
/responses/{response_id}/input_items
curl --request GET \
--url 'https://api.katara.com/v1/responses/example/input_items?order=asc' \
--header 'Authorization: Bearer <token>'

The input items of a stored response, newest first unless order is asc, under the same rule as reading it.

response_id
required
string
/^resp_[A-Za-z0-9_-]{1,120}$/

The id of a stored response.

order
string
default: desc
Allowed values: asc desc

The items, in one page.

Media typeapplication/json
object
object
required
string
Allowed value: list
data
required
Array<object>

A message (role user, assistant, system or developer, with string or typed content), or a typed item: function_call, function_call_output (string or a list of parts), custom_tool_call, custom_tool_call_output, reasoning, web_search_call, tool_search_call, tool_search_output, additional_tools, agent_message, or an item_reference to an item of a stored response. Replayed web_search_call items and encrypted_content are dropped.

object
type
string
id
string
role
string
Allowed values: user assistant system developer
content
One of:
string
call_id
string
name
string
arguments

JSON argument document encoded as text.

string
output
key
additional properties
any
has_more
required
boolean
first_id
string | null
last_id
string | null
Example
{
"object": "list",
"data": [
{
"role": "user"
}
],
"has_more": false
}

The response is missing, expired, deleted or someone else’s (response_not_found).

Media typeapplication/json
object
error
required
object
type
string
code
required

Stable error code.

string
message
required

Explanation for the caller.

string
param
string | null
Examplegenerated
{
"error": {
"type": "example",
"code": "example",
"message": "example",
"param": "example"
}
}