GET
/
responses
/
{response_id}
/
input_items
curl --request GET \
  --url https://api.openai.com/v1/responses/{response_id}/input_items \
  --header 'Authorization: Bearer <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>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

response_id
string
required

The ID of the response to retrieve input items for.

Query Parameters

limit
integer
default:20

A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.

order
enum<string>

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.
Available options:
asc,
desc
after
string

An item ID to list items after, used in pagination.

before
string

An item ID to list items before, used in pagination.

include
enum<string>[]

Additional fields to include in the response. See the include parameter for Response creation above for more information.

Response

200 - application/json

OK

A list of Response items.