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

GET /conversations/{conversation_id}/items — OpenAI API

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

OpenAI API

List 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
→ 284 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/conversations/conv_123/items?limit=20&order=asc&after=example-after&include=example' \  -H "Authorization: Bearer $OPENAI_API_KEY"

Parameters

Name In Type Required Description
conversation_id path string Yes The ID of the conversation to list 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 Specify additional output data to include in the model response. Currently supported values are: - `web_search_call.action.sources`: Include the sources of the web search tool call. - `code_interpreter_call.outputs`: Includes the outputs of python code execution in code interpreter tool call items. - `computer_call_output.output.image_url`: Include image urls from the computer call output. - `file_search_call.results`: Include the search results of the file search tool call. - `message.input_image.image_url`: Include image urls from the input message. - `message.output_text.logprobs`: Include logprobs with assistant messages. - `reasoning.encrypted_content`: Includes an encrypted version of reasoning tokens in reasoning item outputs. This enables reasoning items to be used in multi-turn conversations when using the Responses API statelessly (like when the `store` parameter is set to `false`, or when an organization is enrolled in the zero data retention program).

Response 200 OK

{
  "object": "list",
  "data": [
    {
      "type": "message",
      "id": "string",
      "status": "in_progress",
      "role": "unknown",
      "content": [
        {
          "type": "input_text",
          "text": "string",
          "prompt_cache_breakpoint": {
            "mode": "[recursive or deeply nested schema]"
          }
        }
      ],
      "phase": "commentary"
    }
  ],
  "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.