provider Responses GET
/responses/{response_id}/input_items @utdk/openai
/responses/{response_id}/input_items Returns a list of input items for a given response.
- response_id path required
- The ID of the response to retrieve input items for.
- string
- limit query
- A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.
- integer
- order query
- 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.
- enum: asc, desc
- after query
- An item ID to list items after, used in pagination.
- string
- before query
- An item ID to list items before, used in pagination.
- string
- include query
- Additional fields to include in the response. See the `include` parameter for Response creation above for more information.
- array
Try it
Authentication
Configure credentials for OpenAI API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import openai from '@utdk/openai';
await openai.listinputitems({
"limit": 20
})