apicheats.dev openai/llms.txt Raw .md
GET

GET /responses/{response_id}/input_items — OpenAI API

OpenAI API key (required); https://api.openai.com/v1

OpenAI API

List input items

Base URL
https://api.openai.com/v1
Auth
Authorization: Bearer <OPENAI_API_KEY>
Last verified
2026-10-20 · upstream hash matched
Actions Try in browser→
Agents: curl -H "Accept: text/markdown" this URL
→ 286 tokens · Vary: Accept

Critical gotchas

The Responses API is the primary interface for new text and tool workflows; Chat Completions remains a separate compatibility API.

Audio transcription uploads use multipart form data rather than a JSON request body.

cURL

curl -X GET 'https://api.openai.com/v1/responses/response-id/input_items?limit=20&order=asc&after=example-after&include=example' \  -H "Authorization: Bearer $OPENAI_API_KEY"

Parameters

Name In Type Required Description
response_id path string Yes The ID of the response to retrieve input items for.
limit query integer No A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.
order query string No 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.
after query string No An item ID to list items after, used in pagination.
include query string[] No Additional fields to include in the response. See the `include` parameter for Response creation above for more information.

Response 200 OK

{
  "object": "list",
  "data": [
    {
      "type": "message",
      "role": "user",
      "status": "in_progress",
      "content": [
        {
          "type": "input_text",
          "text": "string",
          "prompt_cache_breakpoint": {
            "mode": "[recursive or deeply nested schema]"
          }
        }
      ],
      "id": "string"
    }
  ],
  "has_more": true,
  "first_id": "string",
  "last_id": "string"
}
Get a free OpenAI API key → sponsored

Affiliate link - we may earn a commission, at no extra cost to you.