List a stored response's input items
const url = 'https://api.katara.com/v1/responses/example/input_items?order=asc';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”- bearerAuth
- None
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The id of a stored response.
Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”The items, in one page.
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
input_text, output_text and refusal; input_image with image_url or file_id; input_file with file_id or file_data; input_audio; and summary_text and reasoning_text in reasoning items. Files are uploaded through /v1/files.
object
JSON argument document encoded as text.
Example
{ "object": "list", "data": [ { "role": "user" } ], "has_more": false}The response is missing, expired, deleted or someone else’s (response_not_found).
object
object
Stable error code.
Explanation for the caller.
Examplegenerated
{ "error": { "type": "example", "code": "example", "message": "example", "param": "example" }}