How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

OpenAI Threads API

The Threads API from OpenAI — 13 operation(s) for threads.

OpenAI Threads API is one of 51 APIs that OpenAI publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 2 JSON Schema definitions.

Tagged areas include Threads. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a JSON-LD context, and 2 JSON Schemas.

This API exposes 19 operations across 13 paths, and defines 10 schemas. It is described by OpenAPI 3.0.0, at version 2.0.0.

Requests are made against a single base URL, https://api.openai.com/v1.

19 operations 13 paths 10 schemas 1 DELETE9 GET9 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.0
API Version
2.0.0
Base URL
https://api.openai.com
Authentication
HTTP Bearer
License
Terms of Service
Resource Areas
1

Authentication & Security 1

OpenAI Threads API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (ApiKeyAuth). By default, every request must be authenticated.

Paths & Operations 19

Across 13 paths, the API surfaces 19 operations — 1 DELETE, 9 GET, 9 POST. Each is listed below with its method, path, parameters, and response codes.

Threads 19
GET
/threads/{thread_id}/messages/{message_id}/files
OpenAI Returns a list of message files.
listMessageFiles 6 params → 200
GET
/threads/{thread_id}/messages/{message_id}/files/{file_id}
OpenAI Retrieves a message file.
getMessageFile 3 params → 200
POST
/threads
OpenAI Create a thread.
createThread body → 200
GET
/threads/{thread_id}
OpenAI Retrieves a thread.
getThread 1 param → 200
POST
/threads/{thread_id}
OpenAI Modifies a thread.
modifyThread 1 param body → 200
DELETE
/threads/{thread_id}
OpenAI Delete a thread.
deleteThread 1 param → 200
GET
/threads/{thread_id}/messages
OpenAI Returns a list of messages for a given thread.
listMessages 5 params → 200
POST
/threads/{thread_id}/messages
OpenAI Create a message.
createMessage 1 param body → 200
GET
/threads/{thread_id}/messages/{message_id}
OpenAI Retrieve a message.
getMessage 2 params → 200
POST
/threads/{thread_id}/messages/{message_id}
OpenAI Modifies a message.
modifyMessage 2 params body → 200
POST
/threads/runs
OpenAI Create a thread and run it in one request.
createThreadAndRun body → 200
GET
/threads/{thread_id}/runs
OpenAI Returns a list of runs belonging to a thread.
listRuns 5 params → 200
POST
/threads/{thread_id}/runs
OpenAI Create a run.
createRun 1 param body → 200
GET
/threads/{thread_id}/runs/{run_id}
OpenAI Retrieves a run.
getRun 2 params → 200
POST
/threads/{thread_id}/runs/{run_id}
OpenAI Modifies a run.
modifyRun 2 params body → 200
POST
/threads/{thread_id}/runs/{run_id}/submit_tool_outputs
OpenAI When a run has the status: "requiresaction" and requiredaction.type is submittooloutputs, this endpoint can be used to submit the outputs from the tool calls once they're all completed. All ou…
submitToolOuputsToRun 2 params body → 200
POST
/threads/{thread_id}/runs/{run_id}/cancel
OpenAI Cancels a run that is inprogress.
cancelRun 2 params → 200
GET
/threads/{thread_id}/runs/{run_id}/steps
OpenAI Returns a list of run steps belonging to a run.
listRunSteps 6 params → 200
GET
/threads/{thread_id}/runs/{run_id}/steps/{step_id}
OpenAI Retrieves a run step.
getRunStep 3 params → 200

Schemas 10

The contract defines 10 schemas that model the data the API accepts and returns. The most detailed are RunObject (19 properties), RunStepObject (16 properties), MessageObject (10 properties), ListRunsResponse (5 properties). Each schema is shown below with its type and property counts.

ListMessagesResponse
object
5 properties 5 required
DeleteThreadResponse
object
3 properties 3 required
ListRunStepsResponse
object
5 properties 5 required
RunStepObject
object
Represents a step in execution of a run.
16 properties 16 required
ListRunsResponse
object
5 properties 5 required
ListMessageFilesResponse
object
5 properties 6 required
MessageObject
object
Represents a message within a [thread](/docs/api-reference/threads).
10 properties 10 required
ThreadObject
object
Represents a thread that contains [messages](/docs/api-reference/messages).
4 properties 4 required
MessageFileObject
object
A list of files attached to a message.
4 properties 4 required
RunObject
object
Represents an execution run on a [thread](/docs/api-reference/threads).
19 properties 19 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

openai-threads-api-openapi.yml Raw ↑

Other APIs OpenAI publishes across the network.

OpenAI Responses API
OpenAI Moderations API
OpenAI Batch API
OpenAI Vector Stores API
OpenAI Uploads API
OpenAI Realtime API
OpenAI Evals API
OpenAI Videos API
OpenAI Conversations API
OpenAI Containers API
OpenAI ChatKit API
OpenAI Skills API
Where this information came from

This is an independent, third-party profile of OpenAI Threads API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.