OpenAI ChatKit API

ChatKit is the best way to build agentic chat experiences. It provides session and thread management for building internal knowledge base assistants, research companions, support agents, and more. ChatKit sessions include resolved feature configuration for automatic thread titling, file upload, and history settings. Threads have statuses including active, locked, and closed.

GitHub OpenAPI

Operations 6

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 /chatkit/sessions/{session_id}/cancel Cancel an active ChatKit session · Cancel a ChatKit session #
Ask an LLM
“How do I shut down a ChatKit session so its client secret stops working?”
“Can I cancel a ChatKit session and still see its latest metadata?”
Tell an agent destructive · confirm first
Cancel ChatKit session {session_id}.
Revoke the client secret for ChatKit session {session_id} by cancelling it.
POST /chatkit/sessions Start a ChatKit session for a user · Create a ChatKit session #
Ask an LLM
“How do I create a ChatKit session to embed chat for one of my users?”
“Can I set rate limits and an expiry on a new ChatKit session?”
Tell an agent
Create a ChatKit session for user {user} running workflow {workflow}.
Start a ChatKit session for {user} on {workflow} that expires after {expires_after}.
GET /chatkit/threads/{thread_id}/items List the items in a ChatKit thread · List ChatKit thread items #
Ask an LLM
“What messages and items are in a particular ChatKit thread?”
“Can I read a ChatKit thread's items oldest first?”
Tell an agent
List the items in ChatKit thread {thread_id}.
Show ChatKit thread {thread_id}'s items ordered {order}.
GET /chatkit/threads/{thread_id} Retrieve a ChatKit thread · Retrieve a ChatKit thread #
Ask an LLM
“Can I fetch a ChatKit thread by its identifier?”
“What's the title and status of one ChatKit conversation?”
Tell an agent
Show ChatKit thread {thread_id}.
Get the details of ChatKit conversation {thread_id}.
DELETE /chatkit/threads/{thread_id} Delete a ChatKit thread and its attachments · Delete a ChatKit thread #
Ask an LLM
“How do I delete a ChatKit conversation along with its stored attachments?”
“Does deleting a ChatKit thread also remove its items?”
Tell an agent destructive · confirm first
Delete ChatKit thread {thread_id}.
Remove ChatKit conversation {thread_id} with all its items and attachments.
GET /chatkit/threads List ChatKit threads · List ChatKit threads #
Ask an LLM
“Which ChatKit threads exist for my app?”
“Can I list only the ChatKit threads belonging to one end user?”
Tell an agent
List all ChatKit threads.
Show the ChatKit threads for user {user}.

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
📖
Documentation
https://platform.openai.com/docs/api-reference/chatkit
📖
Documentation
https://platform.openai.com/docs/guides/chatkit

Specifications

SDKs

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-chatkit-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

openai-chatkit-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OpenAI Chatkit 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 (85 KB total) ---
# Full source: https://artifacts.apis.io/openai/openapi/openai-chatkit-api-openapi.yml