List input items
$ openai beta:responses:input-items list
GET/responses/{response_id}/input_items
Returns a list of input items for a given response.
Parameters
Query param: Additional fields to include in the response. See the include
parameter for Response creation above for more information.
--limit: optional number
Query param: A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.
List input items
openai beta:responses:input-items list \
--api-key 'My API Key' \
--response-id response_id{
"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
}