Skip to content

List input items

GET https://api.fastapi.ai/v1/responses/{response_id}/input_items

Returns a list of input items for a given response.

Path parameters


response_id string Required
The ID of the Response to retrieve input items for.

Query parameters


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


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


order string Optional Defaults to desc
The order to return the input items in. Default is desc.

  • asc: Return the input items in ascending order.
  • desc: Return the input items in descending order.

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

Returns


A list of input item objects.

The list object includes data, first_id, last_id, and has_more.

Example

bash
curl https://api.fastapi.ai/v1/responses/resp_abc123/input_items \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $FAST_API_KEY"

那年我双手插兜, 让bug稳如老狗