OpenAI Conversations API

Manage conversations and conversation items.

Operations 8

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /conversations/{conversation_id}/items Add items to a conversation · Create items #
Ask an LLM
“Can I append new messages to an existing conversation?”
“Is it possible to add several items to a conversation in one call?”
Tell an agent
Add items {items} to conversation {conversation_id}.
Append these messages to existing conversation {conversation_id}: {items}.
GET /conversations/{conversation_id}/items List the items in a conversation · List items #
Ask an LLM
“How do I read back everything said in a stored conversation?”
“Can I list a conversation's items oldest first?”
Tell an agent
List the items in conversation {conversation_id}.
Show the last {limit} items of conversation {conversation_id}.
GET /conversations/{conversation_id}/items/{item_id} Retrieve one item from a conversation · Retrieve an item #
Ask an LLM
“What does a single message in a conversation contain?”
“Can I fetch one conversation item by its item ID?”
Tell an agent
Get item {item_id} from conversation {conversation_id}.
Show the content of conversation item {item_id} in {conversation_id}.
DELETE /conversations/{conversation_id}/items/{item_id} Delete an item from a conversation · Delete an item #
Ask an LLM
“Can I remove one message from a conversation's history?”
“How do I delete a single item without deleting the whole conversation?”
Tell an agent destructive · confirm first
Delete item {item_id} from conversation {conversation_id}.
Remove message {item_id} from the history of conversation {conversation_id}.
POST /conversations Create a conversation · Create a conversation #
Ask an LLM
“How do I create a persistent conversation to keep state across responses?”
“Can I start a new conversation with some initial messages already in it?”
Tell an agent
Create a new conversation.
Start a conversation seeded with items {items} and metadata {metadata}.
GET /conversations/{conversation_id} Retrieve a conversation · Retrieve a conversation #
Ask an LLM
“What metadata is attached to one of my conversations?”
“Can I look up a conversation by its ID to confirm it still exists?”
Tell an agent
Get conversation {conversation_id}.
Show the details and metadata of conversation {conversation_id}.
DELETE /conversations/{conversation_id} Delete a conversation · Delete a conversation #
Ask an LLM
“Does deleting a conversation also delete the items inside it?”
“What's the way to remove a whole conversation by ID?”
Tell an agent destructive · confirm first
Delete conversation {conversation_id}.
Remove the entire conversation {conversation_id}.
POST /conversations/{conversation_id} Update a conversation's metadata · Update a conversation #
Ask an LLM
“Can I tag a conversation with my own customer or session IDs?”
“How do I change the metadata on an existing conversation?”
Tell an agent
Set metadata {metadata} on conversation {conversation_id}.
Replace the metadata of conversation {conversation_id} with {metadata}.

Documentation

📖
Documentation
https://platform.openai.com/docs/assistants/overview
📖
Documentation
https://platform.openai.com/docs/api-reference/assistants
📖
Documentation
https://platform.openai.com/docs/guides/text-to-speech
📖
Documentation
https://platform.openai.com/docs/api-reference/audio
📖
Documentation
https://platform.openai.com/docs/guides/speech-to-text
📖
Documentation
https://developers.openai.com/api/docs/guides/audio/
📖
Documentation
https://developers.openai.com/api/docs/guides/voice-agents/
📖
Documentation
https://platform.openai.com/docs/api-reference/chat
📖
Documentation
https://platform.openai.com/docs/guides/embeddings
📖
Documentation
https://platform.openai.com/docs/api-reference/embeddings
📖
Documentation
https://platform.openai.com/docs/api-reference/files
📖
Documentation
https://platform.openai.com/docs/guides/fine-tuning
📖
Documentation
https://platform.openai.com/docs/api-reference/fine-tuning
📖
Documentation
https://platform.openai.com/docs/guides/images
📖
Documentation
https://platform.openai.com/docs/api-reference/images
📖
Documentation
https://platform.openai.com/docs/guides/image-generation
📖
Documentation
https://platform.openai.com/docs/guides/images-vision
📖
Documentation
https://platform.openai.com/docs/models
📖
Documentation
https://platform.openai.com/docs/api-reference/models
📖
Documentation
https://platform.openai.com/docs/assistants/how-it-works/managing-threads-and-messages
📖
Documentation
https://platform.openai.com/docs/api-reference/threads
📖
Documentation
https://platform.openai.com/docs/api-reference/completions

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/openai:openai-conversations-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

openai-conversations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OpenAI Conversations API
  description: The OpenAI REST API. Please see https://platform.openai.com/docs/api-reference for more details.
  version: 2.3.0
  termsOfService: https://openai.com/policies/terms-of-use
  contact:
    name: OpenAI Support
    url: https://help.openai.com/
  license:
    name: MIT
    identifier: MIT
servers:
- url: https://api.openai.com/v1
security:
- ApiKeyAuth: []
tags:


# --- truncated at 32 KB (226 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/openai/refs/heads/main/openapi/openai-conversations-api-openapi.yml