Skip to content
SupportLogin
List response input items

List response input items

responses.input_items.list(strresponse_id, InputItemListParams**kwargs) -> SyncCursorAfter[InputItemListResponse]
GET/api/v1/responses/{response_id}/input_items

Lists the materialized input items used to generate a stored response.

ParametersExpand Collapse
x_organization_id: Optional[str]
response_id: str
order: Optional[Literal["asc", "desc"]]

Sort input items in conversation or reverse order.

One of the following:
"asc"
"desc"
limit: Optional[float]

Maximum number of input items to return.

minimum1
maximum100
after: Optional[str]

Return items after this input-item ID in the requested order.

ReturnsExpand Collapse
Dict[str, object]

List response input items

import os
from adaption import Adaption

client = Adaption(
    api_key=os.environ.get("ADAPTION_API_KEY"),  # This is the default and can be omitted
)
page = client.responses.input_items.list(
    response_id="resp_123",
)
page = page.data[0]
print(page)
{
  "object": "list",
  "data": [
    {
      "foo": "bar"
    }
  ],
  "first_id": "first_id",
  "last_id": "last_id",
  "has_more": true
}
Returns Examples
{
  "object": "list",
  "data": [
    {
      "foo": "bar"
    }
  ],
  "first_id": "first_id",
  "last_id": "last_id",
  "has_more": true
}