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 Assistants API

Build Assistants that can call models and use tools.

OpenAI Assistants API is one of 62 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 Assistant. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a JSON-LD context, and 2 JSON Schemas.

This API exposes 27 operations across 15 paths, and defines 120 schemas. It is described by OpenAPI 3.2.0, at version 1.0.

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

27 operations 15 paths 120 schemas 4 DELETE11 GET12 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.0
Base URL
https://api.openai.com
Authentication
HTTP Bearer, HTTP Bearer
Terms of Service
Resource Areas
1

Authentication & Security 2

OpenAI Assistants API declares 2 security schemes for authenticating requests. It accepts HTTP bearer tokens (ApiKeyAuth). It accepts HTTP bearer tokens (AdminApiKeyAuth). By default, every request must be authenticated.

Paths & Operations 27

Across 15 paths, the API surfaces 27 operations — 4 DELETE, 11 GET, 12 POST. Each is listed below with its method, path, parameters, and response codes.

Assistants 27

Build Assistants that can call models and use tools.

GET
/assistants
OpenAI Returns a list of assistants
listAssistants 4 params → 200
POST
/assistants
OpenAI Create an assistant with a model and instructions
createAssistant body → 200
GET
/assistants/{assistant_id}
OpenAI Retrieves an assistant
getAssistant 1 param → 200
POST
/assistants/{assistant_id}
OpenAI Modifies an assistant
modifyAssistant 1 param body → 200
DELETE
/assistants/{assistant_id}
OpenAI Delete an assistant
deleteAssistant 1 param → 200
GET
/assistants/{assistant_id}/files
OpenAI Returns a list of assistant files
listAssistantFiles 5 params → 200
POST
/assistants/{assistant_id}/files
OpenAI Create an assistant file by attaching a File to an assistant
createAssistantFile 1 param body → 200
GET
/assistants/{assistant_id}/files/{file_id}
OpenAI Retrieves an AssistantFile
getAssistantFile 2 params → 200
DELETE
/assistants/{assistant_id}/files/{file_id}
OpenAI Delete an assistant file
deleteAssistantFile 2 params → 200
POST
/threads
Create thread
createThread body → 200429
POST
/threads/runs
Create thread and run
createThreadAndRun body → 200429
GET
/threads/{thread_id}
Retrieve thread
getThread 1 param → 200429
POST
/threads/{thread_id}
Modify thread
modifyThread 1 param body → 200429
DELETE
/threads/{thread_id}
Delete thread
deleteThread 1 param → 200429
GET
/threads/{thread_id}/messages
List messages
listMessages 6 params → 200429
POST
/threads/{thread_id}/messages
Create message
createMessage 1 param body → 200429
GET
/threads/{thread_id}/messages/{message_id}
Retrieve message
getMessage 2 params → 200429
POST
/threads/{thread_id}/messages/{message_id}
Modify message
modifyMessage 2 params body → 200429
DELETE
/threads/{thread_id}/messages/{message_id}
Delete message
deleteMessage 2 params → 200429
GET
/threads/{thread_id}/runs
List runs
listRuns 5 params → 200429
POST
/threads/{thread_id}/runs
Create run
createRun 2 params body → 200429
GET
/threads/{thread_id}/runs/{run_id}
Retrieve run
getRun 2 params → 200429
POST
/threads/{thread_id}/runs/{run_id}
Modify run
modifyRun 2 params body → 200429
POST
/threads/{thread_id}/runs/{run_id}/cancel
Cancel a run
cancelRun 2 params → 200429
GET
/threads/{thread_id}/runs/{run_id}/steps
List run steps
listRunSteps 7 params → 200429
GET
/threads/{thread_id}/runs/{run_id}/steps/{step_id}
Retrieve run step
getRunStep 4 params → 200429
POST
/threads/{thread_id}/runs/{run_id}/submit_tool_outputs
Submit tool outputs to run
submitToolOuputsToRun 2 params body → 200429

Schemas 120

The contract defines 120 schemas that model the data the API accepts and returns. The most detailed are RunObject (27 properties), RunObject_2 (27 properties), CreateRunRequest_2 (17 properties), CreateRunRequest (17 properties). Each schema is shown below with its type and property counts.

ListAssistantsResponse
object
5 properties 5 required
AssistantToolsRetrieval
object
1 property 1 required
CreateAssistantFileRequest
object
1 property 1 required
DeleteAssistantFileResponse
object
Deletes the association between the assistant and the file, but does not delete the [File](/docs/api-reference/files) object itself.
3 properties 3 required
AssistantObject
object
Represents an assistant that can call the model and use tools.
10 properties 10 required
AssistantFileObject
object
A list of [Files](/docs/api-reference/files) attached to an assistant.
4 properties 4 required
CreateAssistantRequest
object
7 properties 1 required
AssistantToolsCode
object
1 property 1 required
ListAssistantFilesResponse
object
5 properties 6 required
DeleteAssistantResponse
object
3 properties 3 required
FunctionObject
object
3 properties 1 required
AssistantToolsFunction
object
2 properties 2 required
ModifyAssistantRequest
object
7 properties
FunctionParameters
object
The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/text-generation/function-calling) for examples, and the […
RunObject
object
Represents an execution run on a [thread](https://developers.openai.com/api/docs/assistants/migration).
27 properties 25 required
RunStepDetailsToolCallsCodeOutputImageObject
object
2 properties 2 required
ListAssistantsResponse_2
object
5 properties 5 required
CreateMessageRequest
object
4 properties 2 required
MessageContentRefusalObject
object
The refusal content generated by the assistant.
2 properties 2 required
ResponseFormatJsonSchemaSchema
object
The schema for the response format, described as a JSON Schema object. Learn how to build JSON schemas [here](https://json-schema.org/).
RunStepObject
object
Represents a step in execution of a run.
16 properties 16 required
ResponseFormatJsonSchema
object
JSON Schema response format. Used to generate structured JSON responses. Learn more about [Structured Outputs](https://developers.openai.com/api/docs/guides/st…
2 properties 2 required
CreateAssistantRequest_2
object
11 properties 1 required
CreateThreadRequest
object
Options to create a new thread. If no thread is provided when running a request, an empty thread will be created.
3 properties
RunStepDetailsMessageCreationObject
object
Details of the message creation by the run step.
2 properties 2 required
ResponseFormatJsonObject
object
JSON object response format. An older method of generating JSON responses. Using jsonschema is recommended for models that support it. Note that the model will…
1 property 1 required
FileSearchRankingOptions
object
The ranking options for the file search. If not specified, the file search tool will use the auto ranker and a scorethreshold of 0. See the [file search tool d…
2 properties 1 required
AssistantToolsFunction_2
object
2 properties 2 required
AssistantSupportedModels
string
ModifyAssistantRequest_2
object
11 properties
FunctionParameters_2
object
The parameters the functions accepts, described as a JSON Schema object. See the [guide](https://developers.openai.com/api/docs/guides/function-calling) for ex…
TruncationObject
object
Controls for how a thread will be truncated prior to the run. Use this to control the initial context window of the run.
2 properties 1 required
ThreadObject
object
Represents a thread that contains [messages](https://developers.openai.com/api/docs/assistants/migration).
5 properties 5 required
ListRunStepsResponse
object
5 properties 5 required
_MisalignmentSteer
object
1 property 1 required
RunStepDetailsToolCallsCodeObject
object
Details of the Code Interpreter tool call the run step was involved in.
3 properties 3 required
AssistantsApiResponseFormatOption
Specifies the format that the model must output. Compatible with [GPT-4o](https://developers.openai.com/api/docs/models/gpt-4o), [GPT-4 Turbo](https://develope…
Error
object
5 properties 4 required
RunStepDetailsToolCallsFunctionObject
object
3 properties 3 required
ModifyRunRequest
object
1 property
ResponseFormatText
object
Default response format. Used to generate text responses.
1 property 1 required
ReasoningEffort
DeleteThreadResponse
object
3 properties 3 required
ParallelToolCalls
boolean
Whether to enable [parallel function calling](https://developers.openai.com/api/docs/guides/function-callingparallel-function-calling) during tool use.
AssistantsNamedToolChoice
object
Specifies a tool the model should use. Use to force the model to call a specific tool.
2 properties 1 required
RunCompletionUsage
DeleteMessageResponse
object
3 properties 3 required
RunStepCompletionUsage
AssistantToolsFileSearch
object
2 properties 1 required
_MisalignmentErrorType
ListRunsResponse
object
5 properties 5 required
MessageRequestContentTextObject
object
The text content that is part of a message.
2 properties 2 required
RunStepDetailsToolCallsFileSearchResultObject
object
A result instance of the file search.
4 properties 3 required
AssistantToolsCode_2
object
1 property 1 required
MessageObject
object
Represents a message within a [thread](https://developers.openai.com/api/docs/assistants/migration).
14 properties 14 required
FileSearchRanker
string
The ranker to use for the file search. If not specified will use the auto ranker.
FunctionObject_2
object
4 properties 1 required
RunStepDetailsToolCallsFileSearchRankingOptionsObject
object
The ranking options for the file search.
2 properties 2 required
ListMessagesResponse
object
5 properties 5 required
ModifyThreadRequest
object
2 properties
CreateThreadAndRunRequest
object
16 properties 1 required
CreateRunRequest
object
17 properties 1 required
RunStepDetailsToolCallsFileSearchObject
object
3 properties 3 required
ErrorResponse
object
1 property 1 required
MessageContentImageUrlObject
object
References an image URL in the content of a message.
2 properties 2 required
DeleteAssistantResponse_2
object
3 properties 3 required
MisalignmentErrorDetailsResource
object
3 properties
RunStepDetailsToolCallsCodeOutputLogsObject
object
Text output from the Code Interpreter tool call as part of a run step.
2 properties 2 required
MessageContentTextObject
object
The text content that is part of a message.
2 properties 2 required
MessageContentTextAnnotationsFilePathObject
object
A URL for the file that's generated when the assistant used the codeinterpreter tool to generate a file.
5 properties 5 required
RunStepDetailsToolCallsObject
object
Details of the tool call.
2 properties 2 required
AssistantObject_2
object
Represents an assistant that can call the model and use tools.
13 properties 9 required
AssistantsApiToolChoiceOption
Controls which (if any) tool is called by the model. none means the model will not call any tools and instead generates a message. auto is the default value an…
ModifyMessageRequest
object
1 property
SubmitToolOutputsRunRequest
object
2 properties 1 required
MessageContentImageFileObject
object
References an image [File](https://developers.openai.com/api/reference/resources/files) in the content of a message.
2 properties 2 required
MessageContentTextAnnotationsFileCitationObject
object
A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Generated when the assistant u…
5 properties 5 required
RunToolCallObject
object
Tool call objects
3 properties 3 required
AssistantToolsFileSearchTypeOnly
object
1 property 1 required
Metadata
RunStreamEvent
CreateAssistantRequest_3
object
11 properties 1 required
FunctionParameters_3
object
The parameters the functions accepts, described as a JSON Schema object. See the [guide](https://developers.openai.com/api/docs/guides/function-calling) for ex…
RunStepDeltaStepDetailsToolCallsFunctionObject
object
4 properties 2 required
CreateRunRequest_2
object
17 properties 1 required
RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject
object
Text output from the Code Interpreter tool call as part of a run step.
3 properties 2 required
RunStepObject_2
object
Represents a step in execution of a run.
16 properties 16 required
DeleteAssistantResponse_3
object
3 properties 3 required
RunStepDeltaStepDetailsToolCallsFileSearchObject
object
4 properties 3 required
ErrorEvent
object
Occurs when an [error](https://developers.openai.com/api/docs/guides/error-codesapi-errors) occurs. This can happen due to an internal server error or a timeou…
2 properties 2 required
ModifyAssistantRequest_3
object
11 properties
ThreadStreamEvent
RunStepDeltaObject
object
Represents a run step delta i.e. any changed fields on a run step during streaming.
3 properties 3 required
MessageDeltaContentTextObject
object
The text content that is part of a message.
3 properties 2 required
RunStepDeltaStepDetailsMessageCreationObject
object
Details of the message creation by the run step.
2 properties 1 required
MessageDeltaContentTextAnnotationsFilePathObject
object
A URL for the file that's generated when the assistant used the codeinterpreter tool to generate a file.
6 properties 2 required
DoneEvent
object
Occurs when a stream ends.
2 properties 2 required
MessageObject_2
object
Represents a message within a [thread](https://developers.openai.com/api/docs/assistants/migration).
14 properties 14 required
RunObject_2
object
Represents an execution run on a [thread](https://developers.openai.com/api/docs/assistants/migration).
27 properties 25 required
ListAssistantsResponse_3
object
5 properties 5 required
RunStepDeltaStepDetailsToolCallsObject
object
Details of the tool call.
2 properties 1 required
ResponseFormatJsonSchema_2
object
JSON Schema response format. Used to generate structured JSON responses. Learn more about [Structured Outputs](https://developers.openai.com/api/docs/guides/st…
2 properties 2 required
ThreadObject_2
object
Represents a thread that contains [messages](https://developers.openai.com/api/docs/assistants/migration).
5 properties 5 required
MessageDeltaContentImageUrlObject
object
References an image URL in the content of a message.
3 properties 2 required
RunStepDeltaStepDetailsToolCallsCodeOutputImageObject
object
3 properties 2 required
FunctionObject_3
object
4 properties 1 required
CreateThreadAndRunRequest_2
object
16 properties 1 required
MessageDeltaContentTextAnnotationsFileCitationObject
object
A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Generated when the assistant u…
6 properties 2 required
CreateMessageRequest_2
object
4 properties 2 required
MessageStreamEvent
MessageDeltaContentImageFileObject
object
References an image [File](https://developers.openai.com/api/reference/resources/files) in the content of a message.
3 properties 2 required
AssistantToolsFunction_3
object
2 properties 2 required
MessageDeltaObject
object
Represents a message delta i.e. any changed fields on a message during streaming.
3 properties 3 required
RunStepStreamEvent
MessageDeltaContentRefusalObject
object
The refusal content that is part of a message.
3 properties 2 required
AssistantToolsCode_3
object
1 property 1 required
AssistantStreamEvent
Represents an event emitted when streaming a Run. Each event in a server-sent events stream has an event and data property: event: thread.created data: {"id":…
MisalignmentErrorDetailsResource_2
object
4 properties
AssistantObject_3
object
Represents an assistant that can call the model and use tools.
13 properties 9 required
RunStepDeltaStepDetailsToolCallsCodeObject
object
Details of the Code Interpreter tool call the run step was involved in.
4 properties 2 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

openai-assistants-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 Assistants 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.