# 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.

### Parameters

- `x_organization_id: Optional[str]`

- `response_id: str`

- `order: Optional[Literal["asc", "desc"]]`

  Sort input items in conversation or reverse order.

  - `"asc"`

  - `"desc"`

- `limit: Optional[float]`

  Maximum number of input items to return.

- `after: Optional[str]`

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

### Returns

- `Dict[str, object]`

### Example

```python
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)
```

#### Response

```json
{
  "object": "list",
  "data": [
    {
      "foo": "bar"
    }
  ],
  "first_id": "first_id",
  "last_id": "last_id",
  "has_more": true
}
```

## Domain Types

### Input Item List Response

- `Dict[str, object]`
