/
OP
openai
/
OpenAI API
Search skmtc…
⌘K
Docs
Sign in
Sign in
APIs
Generators
Stacks
Projects
Docs
History
Schema
Sources
Checked 1h ago · Updated 4w ago
View markdown
openai
OpenAI API
delete
Delete a thread.
v1
latest
OpenAPI 3.1.0
MIT
2026-07-13
242
959
2.7 MB
Assistants
23
get
Returns a list of assistants.
post
Create an assistant with a model and instructions.
get
Retrieves an assistant.
post
Modifies an assistant.
delete
Delete an assistant.
post
Create a thread.
post
Create a thread and run it in one request.
get
Retrieves a thread.
post
Modifies a thread.
delete
Delete a thread.
get
Returns a list of messages for a given thread.
post
Create a message.
get
Retrieve a message.
post
Modifies a message.
delete
Deletes a message.
get
Returns a list of runs belonging to a thread.
post
Create a run.
get
Retrieves a run.
post
Modifies a run.
post
Cancels a run that is `in_progress`.
get
Returns a list of run steps belonging to a run.
get
Retrieves a run step.
post
When a run has the `status: "requires_action"` and `required_action.type` is `submit_tool_outputs`, this endpoint can be used to submit the outputs from the tool calls once they're all completed. All outputs must be submitted in a single request.
Audio
9
Audit Logs
1
Batch
4
Certificates
10
Chat
6
Completions
1
Conversations
8
Embeddings
1
Evals
12
Files
5
Fine-tuning
13
Group organization role assignments
3
Group users
3
Groups
4
Images
3
Invites
4
Models
3
Moderations
1
Project group role assignments
3
Project groups
3
Project user role assignments
3
Projects
19
Realtime
9
Responses
5
Roles
8
Skills
11
Uploads
4
Usage
9
User organization role assignments
3
Users
4
Vector stores
16
Videos
10
get
List Containers
post
Create Container
get
Retrieve Container
delete
Delete Container
get
List Container files
post
Create a Container File You can send either a multipart/form-data request with the raw file content, or a JSON request with a file ID.
get
Retrieve Container File
delete
Delete Container File
get
Retrieve Container File Content
get
List organization API keys
post
Create an organization admin API key
get
Retrieve a single organization API key
delete
Delete an organization admin API key
post
Returns input token counts of the request. Returns an object with `object` set to `response.input_tokens` and an `input_tokens` count.
post
Compact a conversation. Returns a compacted response object. Learn when and how to compact long-running conversations in the [conversation state guide](/docs/guides/conversation-state#managing-the-context-window). For ZDR-compatible compaction details, see [Compaction (advanced)](/docs/guides/conversation-state#compaction-advanced).
post
Cancel an active ChatKit session and return its most recent metadata. Cancelling prevents new requests from using the issued client secret.
post
Create a ChatKit session.
get
List items that belong to a ChatKit thread.
get
Retrieve a ChatKit thread by its identifier.
delete
Delete a ChatKit thread along with its items and stored attachments.
get
List ChatKit threads with optional pagination and user filters.
Webhooks
post
batch_cancelled
post
batch_completed
post
batch_expired
post
batch_failed
post
eval_run_canceled
post
eval_run_failed
post
eval_run_succeeded
post
fine_tuning_job_cancelled
post
fine_tuning_job_failed
post
fine_tuning_job_succeeded
post
realtime_call_incoming
post
response_cancelled
post
response_completed
post
response_failed
post
response_incomplete
Assistants
Delete a thread.
delete
/threads/{thread_id}
Path parameters
thread_id
string
required
The ID of the thread to delete.
Response
OK
DeleteThreadResponse
required
id
string
required
deleted
boolean
required
object
'thread.deleted'
required