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.
The identity and technical contract details declared by the specification.
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
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
DeleteMessageResponse
object
3 properties
3 required
AssistantToolsFileSearch
object
2 properties
1 required
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
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
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
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
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
The full machine-readable OpenAPI contract behind this narrative.
Other APIs OpenAI publishes across the network.