List input items
client.responses.inputItems.list(stringresponseID, InputItemListParams { after, include, limit, order } query?, RequestOptionsoptions?): CursorPage<ResponseItem>
GET/responses/{response_id}/input_items
List input items
import OpenAI from "openai";
const client = new OpenAI();
const response = await client.responses.inputItems.list("resp_123");
console.log(response.data);
{
"object": "list",
"data": [
{
"id": "msg_abc123",
"type": "message",
"role": "user",
"content": [
{
"type": "input_text",
"text": "Tell me a three sentence bedtime story about a unicorn."
}
]
}
],
"first_id": "msg_abc123",
"last_id": "msg_abc123",
"has_more": false
}
Returns Examples
{
"object": "list",
"data": [
{
"id": "msg_abc123",
"type": "message",
"role": "user",
"content": [
{
"type": "input_text",
"text": "Tell me a three sentence bedtime story about a unicorn."
}
]
}
],
"first_id": "msg_abc123",
"last_id": "msg_abc123",
"has_more": false
}