Azure.AI.Agents (stable:v1)

2025/05/14 • 41 new methods

ListAgents (new)
Description Gets a list of agents that were previously created.
Reference Link ¶

⚼ Request

GET:  /assistants
{
api-version: string ,
limit: integer ,
order: string ,
after: string ,
before: string ,
}

⚐ Response (200)

{
data:
[
{
id: string ,
object: enum ,
created_at: integer ,
name: string ,
description: string ,
model: string ,
instructions: string ,
tools:
[
{
type: string ,
}
,
]
,
tool_resources:
{
code_interpreter:
{
file_ids:
[
string ,
]
,
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
file_search:
{
vector_store_ids:
[
string ,
]
,
vector_stores:
[
{
name: string ,
configuration:
{
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
}
,
]
,
}
,
azure_ai_search:
{
indexes:
[
{
index_connection_id: string ,
index_name: string ,
query_type: enum ,
top_k: integer ,
filter: string ,
index_asset_id: string ,
}
,
]
,
}
,
}
,
temperature: number ,
top_p: number ,
response_format: string ,
metadata: object ,
}
,
]
,
last_id: string ,
has_more: boolean ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
CreateAgent (new)
Description Creates a new agent.
Reference Link ¶

⚼ Request

POST:  /assistants
{
api-version: string ,
body:
{
model: string ,
name: string ,
description: string ,
instructions: string ,
tools:
[
{
type: string ,
}
,
]
,
tool_resources:
{
code_interpreter:
{
file_ids:
[
string ,
]
,
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
file_search:
{
vector_store_ids:
[
string ,
]
,
vector_stores:
[
{
name: string ,
configuration:
{
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
}
,
]
,
}
,
azure_ai_search:
{
indexes:
[
{
index_connection_id: string ,
index_name: string ,
query_type: enum ,
top_k: integer ,
filter: string ,
index_asset_id: string ,
}
,
]
,
}
,
}
,
temperature: number ,
top_p: number ,
response_format: string ,
metadata: object ,
}
,
}

⚐ Response (200)

{
id: string ,
object: enum ,
created_at: integer ,
name: string ,
description: string ,
model: string ,
instructions: string ,
tools:
[
{
type: string ,
}
,
]
,
tool_resources:
{
code_interpreter:
{
file_ids:
[
string ,
]
,
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
file_search:
{
vector_store_ids:
[
string ,
]
,
vector_stores:
[
{
name: string ,
configuration:
{
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
}
,
]
,
}
,
azure_ai_search:
{
indexes:
[
{
index_connection_id: string ,
index_name: string ,
query_type: enum ,
top_k: integer ,
filter: string ,
index_asset_id: string ,
}
,
]
,
}
,
}
,
temperature: number ,
top_p: number ,
response_format: string ,
metadata: object ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
GetAgent (new)
Description Retrieves an existing agent.
Reference Link ¶

⚼ Request

GET:  /assistants/{assistantId}
{
api-version: string ,
assistantId: string ,
}

⚐ Response (200)

{
id: string ,
object: enum ,
created_at: integer ,
name: string ,
description: string ,
model: string ,
instructions: string ,
tools:
[
{
type: string ,
}
,
]
,
tool_resources:
{
code_interpreter:
{
file_ids:
[
string ,
]
,
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
file_search:
{
vector_store_ids:
[
string ,
]
,
vector_stores:
[
{
name: string ,
configuration:
{
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
}
,
]
,
}
,
azure_ai_search:
{
indexes:
[
{
index_connection_id: string ,
index_name: string ,
query_type: enum ,
top_k: integer ,
filter: string ,
index_asset_id: string ,
}
,
]
,
}
,
}
,
temperature: number ,
top_p: number ,
response_format: string ,
metadata: object ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
UpdateAgent (new)
Description Modifies an existing agent.
Reference Link ¶

⚼ Request

POST:  /assistants/{assistantId}
{
api-version: string ,
assistantId: string ,
body:
{
model: string ,
name: string ,
description: string ,
instructions: string ,
tools:
[
{
type: string ,
}
,
]
,
tool_resources:
{
code_interpreter:
{
file_ids:
[
string ,
]
,
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
file_search:
{
vector_store_ids:
[
string ,
]
,
vector_stores:
[
{
name: string ,
configuration:
{
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
}
,
]
,
}
,
azure_ai_search:
{
indexes:
[
{
index_connection_id: string ,
index_name: string ,
query_type: enum ,
top_k: integer ,
filter: string ,
index_asset_id: string ,
}
,
]
,
}
,
}
,
temperature: number ,
top_p: number ,
response_format: string ,
metadata: object ,
}
,
}

⚐ Response (200)

{
id: string ,
object: enum ,
created_at: integer ,
name: string ,
description: string ,
model: string ,
instructions: string ,
tools:
[
{
type: string ,
}
,
]
,
tool_resources:
{
code_interpreter:
{
file_ids:
[
string ,
]
,
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
file_search:
{
vector_store_ids:
[
string ,
]
,
vector_stores:
[
{
name: string ,
configuration:
{
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
}
,
]
,
}
,
azure_ai_search:
{
indexes:
[
{
index_connection_id: string ,
index_name: string ,
query_type: enum ,
top_k: integer ,
filter: string ,
index_asset_id: string ,
}
,
]
,
}
,
}
,
temperature: number ,
top_p: number ,
response_format: string ,
metadata: object ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
DeleteAgent (new)
Description Deletes an agent.
Reference Link ¶

⚼ Request

DELETE:  /assistants/{assistantId}
{
api-version: string ,
assistantId: string ,
}

⚐ Response (200)

{
id: string ,
deleted: boolean ,
object: enum ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
Files_ListFiles (new)
Description Gets a list of previously uploaded files.
Reference Link ¶

⚼ Request

GET:  /files
{
api-version: string ,
purpose: string ,
}

⚐ Response (200)

{
object: enum ,
data:
[
{
object: enum ,
id: string ,
bytes: integer ,
filename: string ,
created_at: integer ,
purpose: enum ,
status: enum ,
status_details: string ,
}
,
]
,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
Files_UploadFile (new)
Description Uploads a file for use by other operations.
Reference Link ¶

⚼ Request

POST:  /files
{
api-version: string ,
file: file ,
purpose: string ,
filename: string ,
}

⚐ Response (200)

{
object: enum ,
id: string ,
bytes: integer ,
filename: string ,
created_at: integer ,
purpose: enum ,
status: enum ,
status_details: string ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
Files_GetFile (new)
Description Returns information about a specific file. Does not retrieve file content.
Reference Link ¶

⚼ Request

GET:  /files/{fileId}
{
api-version: string ,
fileId: string ,
}

⚐ Response (200)

{
object: enum ,
id: string ,
bytes: integer ,
filename: string ,
created_at: integer ,
purpose: enum ,
status: enum ,
status_details: string ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
Files_DeleteFile (new)
Description Delete a previously uploaded file.
Reference Link ¶

⚼ Request

DELETE:  /files/{fileId}
{
api-version: string ,
fileId: string ,
}

⚐ Response (200)

{
id: string ,
deleted: boolean ,
object: enum ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
Files_GetFileContent (new)
Description Retrieves the raw content of a specific file.
Reference Link ¶

⚼ Request

GET:  /files/{fileId}/content
{
api-version: string ,
fileId: string ,
}

⚐ Response (200)

{
$schema: file ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
Threads_ListThreads (new)
Description Gets a list of threads that were previously created.
Reference Link ¶

⚼ Request

GET:  /threads
{
api-version: string ,
limit: integer ,
order: string ,
after: string ,
before: string ,
}

⚐ Response (200)

{
data:
[
{
id: string ,
object: enum ,
created_at: integer ,
tool_resources:
{
code_interpreter:
{
file_ids:
[
string ,
]
,
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
file_search:
{
vector_store_ids:
[
string ,
]
,
vector_stores:
[
{
name: string ,
configuration:
{
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
}
,
]
,
}
,
azure_ai_search:
{
indexes:
[
{
index_connection_id: string ,
index_name: string ,
query_type: enum ,
top_k: integer ,
filter: string ,
index_asset_id: string ,
}
,
]
,
}
,
}
,
metadata: object ,
}
,
]
,
last_id: string ,
has_more: boolean ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
Threads_CreateThread (new)
Description Creates a new thread. Threads contain messages and can be run by agents.
Reference Link ¶

⚼ Request

POST:  /threads
{
api-version: string ,
body:
{
messages:
[
{
role: enum ,
content: string ,
attachments:
[
{
file_id: string ,
data_source:
{
uri: string ,
type: enum ,
}
,
tools:
[
string ,
]
,
}
,
]
,
metadata: object ,
}
,
]
,
tool_resources:
{
code_interpreter:
{
file_ids:
[
string ,
]
,
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
file_search:
{
vector_store_ids:
[
string ,
]
,
vector_stores:
[
{
name: string ,
configuration:
{
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
}
,
]
,
}
,
azure_ai_search:
{
indexes:
[
{
index_connection_id: string ,
index_name: string ,
query_type: enum ,
top_k: integer ,
filter: string ,
index_asset_id: string ,
}
,
]
,
}
,
}
,
metadata: object ,
}
,
}

⚐ Response (200)

{
id: string ,
object: enum ,
created_at: integer ,
tool_resources:
{
code_interpreter:
{
file_ids:
[
string ,
]
,
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
file_search:
{
vector_store_ids:
[
string ,
]
,
vector_stores:
[
{
name: string ,
configuration:
{
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
}
,
]
,
}
,
azure_ai_search:
{
indexes:
[
{
index_connection_id: string ,
index_name: string ,
query_type: enum ,
top_k: integer ,
filter: string ,
index_asset_id: string ,
}
,
]
,
}
,
}
,
metadata: object ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
Threads_GetThread (new)
Description Gets information about an existing thread.
Reference Link ¶

⚼ Request

GET:  /threads/{threadId}
{
api-version: string ,
threadId: string ,
}

⚐ Response (200)

{
id: string ,
object: enum ,
created_at: integer ,
tool_resources:
{
code_interpreter:
{
file_ids:
[
string ,
]
,
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
file_search:
{
vector_store_ids:
[
string ,
]
,
vector_stores:
[
{
name: string ,
configuration:
{
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
}
,
]
,
}
,
azure_ai_search:
{
indexes:
[
{
index_connection_id: string ,
index_name: string ,
query_type: enum ,
top_k: integer ,
filter: string ,
index_asset_id: string ,
}
,
]
,
}
,
}
,
metadata: object ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
Threads_UpdateThread (new)
Description Modifies an existing thread.
Reference Link ¶

⚼ Request

POST:  /threads/{threadId}
{
api-version: string ,
threadId: string ,
body:
{
tool_resources:
{
code_interpreter:
{
file_ids:
[
string ,
]
,
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
file_search:
{
vector_store_ids:
[
string ,
]
,
vector_stores:
[
{
name: string ,
configuration:
{
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
}
,
]
,
}
,
azure_ai_search:
{
indexes:
[
{
index_connection_id: string ,
index_name: string ,
query_type: enum ,
top_k: integer ,
filter: string ,
index_asset_id: string ,
}
,
]
,
}
,
}
,
metadata: object ,
}
,
}

⚐ Response (200)

{
id: string ,
object: enum ,
created_at: integer ,
tool_resources:
{
code_interpreter:
{
file_ids:
[
string ,
]
,
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
file_search:
{
vector_store_ids:
[
string ,
]
,
vector_stores:
[
{
name: string ,
configuration:
{
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
}
,
]
,
}
,
azure_ai_search:
{
indexes:
[
{
index_connection_id: string ,
index_name: string ,
query_type: enum ,
top_k: integer ,
filter: string ,
index_asset_id: string ,
}
,
]
,
}
,
}
,
metadata: object ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
Threads_DeleteThread (new)
Description Deletes an existing thread.
Reference Link ¶

⚼ Request

DELETE:  /threads/{threadId}
{
api-version: string ,
threadId: string ,
}

⚐ Response (200)

{
id: string ,
deleted: boolean ,
object: enum ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
Messages_ListMessages (new)
Description Gets a list of messages that exist on a thread.
Reference Link ¶

⚼ Request

GET:  /threads/{threadId}/messages
{
threadId: string ,
run_id: string ,
api-version: string ,
limit: integer ,
order: string ,
after: string ,
before: string ,
}

⚐ Response (200)

{
data:
[
{
id: string ,
object: enum ,
created_at: integer ,
thread_id: string ,
status: enum ,
incomplete_details:
{
reason: enum ,
}
,
completed_at: integer ,
incomplete_at: integer ,
role: enum ,
content:
[
{
type: string ,
}
,
]
,
assistant_id: string ,
run_id: string ,
attachments:
[
{
file_id: string ,
data_source:
{
uri: string ,
type: enum ,
}
,
tools:
[
string ,
]
,
}
,
]
,
metadata: object ,
}
,
]
,
last_id: string ,
has_more: boolean ,
}
Messages_CreateMessage (new)
Description Creates a new message on a specified thread.
Reference Link ¶

⚼ Request

POST:  /threads/{threadId}/messages
{
api-version: string ,
threadId: string ,
body:
{
role: enum ,
content: string ,
attachments:
[
{
file_id: string ,
data_source:
{
uri: string ,
type: enum ,
}
,
tools:
[
string ,
]
,
}
,
]
,
metadata: object ,
}
,
}

⚐ Response (200)

{
id: string ,
object: enum ,
created_at: integer ,
thread_id: string ,
status: enum ,
incomplete_details:
{
reason: enum ,
}
,
completed_at: integer ,
incomplete_at: integer ,
role: enum ,
content:
[
{
type: string ,
}
,
]
,
assistant_id: string ,
run_id: string ,
attachments:
[
{
file_id: string ,
data_source:
{
uri: string ,
type: enum ,
}
,
tools:
[
string ,
]
,
}
,
]
,
metadata: object ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
Messages_GetMessage (new)
Description Retrieves an existing message.
Reference Link ¶

⚼ Request

GET:  /threads/{threadId}/messages/{messageId}
{
api-version: string ,
threadId: string ,
messageId: string ,
}

⚐ Response (200)

{
id: string ,
object: enum ,
created_at: integer ,
thread_id: string ,
status: enum ,
incomplete_details:
{
reason: enum ,
}
,
completed_at: integer ,
incomplete_at: integer ,
role: enum ,
content:
[
{
type: string ,
}
,
]
,
assistant_id: string ,
run_id: string ,
attachments:
[
{
file_id: string ,
data_source:
{
uri: string ,
type: enum ,
}
,
tools:
[
string ,
]
,
}
,
]
,
metadata: object ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
Messages_UpdateMessage (new)
Description Modifies an existing message on an existing thread.
Reference Link ¶

⚼ Request

POST:  /threads/{threadId}/messages/{messageId}
{
api-version: string ,
threadId: string ,
messageId: string ,
body:
{
metadata: object ,
}
,
}

⚐ Response (200)

{
id: string ,
object: enum ,
created_at: integer ,
thread_id: string ,
status: enum ,
incomplete_details:
{
reason: enum ,
}
,
completed_at: integer ,
incomplete_at: integer ,
role: enum ,
content:
[
{
type: string ,
}
,
]
,
assistant_id: string ,
run_id: string ,
attachments:
[
{
file_id: string ,
data_source:
{
uri: string ,
type: enum ,
}
,
tools:
[
string ,
]
,
}
,
]
,
metadata: object ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
Runs_ListRuns (new)
Description Gets a list of runs for a specified thread.
Reference Link ¶

⚼ Request

GET:  /threads/{threadId}/runs
{
threadId: string ,
api-version: string ,
limit: integer ,
order: string ,
after: string ,
before: string ,
}

⚐ Response (200)

{
data:
[
{
id: string ,
object: enum ,
thread_id: string ,
assistant_id: string ,
status: enum ,
required_action:
{
type: string ,
}
,
last_error:
{
code: string ,
message: string ,
}
,
model: string ,
instructions: string ,
tools:
[
{
type: string ,
}
,
]
,
created_at: integer ,
expires_at: integer ,
started_at: integer ,
completed_at: integer ,
cancelled_at: integer ,
failed_at: integer ,
incomplete_details:
{
reason: enum ,
}
,
usage:
{
completion_tokens: integer ,
prompt_tokens: integer ,
total_tokens: integer ,
}
,
temperature: number ,
top_p: number ,
max_prompt_tokens: integer ,
max_completion_tokens: integer ,
truncation_strategy:
{
type: enum ,
last_messages: integer ,
}
,
tool_choice: string ,
response_format: string ,
metadata: object ,
tool_resources:
{
code_interpreter:
{
file_ids:
[
string ,
]
,
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
file_search:
{
vector_store_ids:
[
string ,
]
,
vector_stores:
[
{
name: string ,
configuration:
{
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
}
,
]
,
}
,
azure_ai_search:
{
indexes:
[
{
index_connection_id: string ,
index_name: string ,
query_type: enum ,
top_k: integer ,
filter: string ,
index_asset_id: string ,
}
,
]
,
}
,
}
,
parallel_tool_calls: boolean ,
}
,
]
,
last_id: string ,
has_more: boolean ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
Runs_CreateRun (new)
Description Creates a new run for an agent thread.
Reference Link ¶

⚼ Request

POST:  /threads/{threadId}/runs
{
api-version: string ,
threadId: string ,
include[]: array ,
body:
{
assistant_id: string ,
model: string ,
instructions: string ,
additional_instructions: string ,
additional_messages:
[
{
role: enum ,
content: string ,
attachments:
[
{
file_id: string ,
data_source:
{
uri: string ,
type: enum ,
}
,
tools:
[
string ,
]
,
}
,
]
,
metadata: object ,
}
,
]
,
tools:
[
{
type: string ,
}
,
]
,
stream: boolean ,
temperature: number ,
top_p: number ,
max_prompt_tokens: integer ,
max_completion_tokens: integer ,
truncation_strategy:
{
type: enum ,
last_messages: integer ,
}
,
tool_choice: string ,
response_format: string ,
parallel_tool_calls: boolean ,
metadata: object ,
}
,
}

⚐ Response (200)

{
id: string ,
object: enum ,
thread_id: string ,
assistant_id: string ,
status: enum ,
required_action:
{
type: string ,
}
,
last_error:
{
code: string ,
message: string ,
}
,
model: string ,
instructions: string ,
tools:
[
{
type: string ,
}
,
]
,
created_at: integer ,
expires_at: integer ,
started_at: integer ,
completed_at: integer ,
cancelled_at: integer ,
failed_at: integer ,
incomplete_details:
{
reason: enum ,
}
,
usage:
{
completion_tokens: integer ,
prompt_tokens: integer ,
total_tokens: integer ,
}
,
temperature: number ,
top_p: number ,
max_prompt_tokens: integer ,
max_completion_tokens: integer ,
truncation_strategy:
{
type: enum ,
last_messages: integer ,
}
,
tool_choice: string ,
response_format: string ,
metadata: object ,
tool_resources:
{
code_interpreter:
{
file_ids:
[
string ,
]
,
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
file_search:
{
vector_store_ids:
[
string ,
]
,
vector_stores:
[
{
name: string ,
configuration:
{
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
}
,
]
,
}
,
azure_ai_search:
{
indexes:
[
{
index_connection_id: string ,
index_name: string ,
query_type: enum ,
top_k: integer ,
filter: string ,
index_asset_id: string ,
}
,
]
,
}
,
}
,
parallel_tool_calls: boolean ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
Runs_GetRun (new)
Description Gets an existing run from an existing thread.
Reference Link ¶

⚼ Request

GET:  /threads/{threadId}/runs/{runId}
{
api-version: string ,
threadId: string ,
runId: string ,
}

⚐ Response (200)

{
id: string ,
object: enum ,
thread_id: string ,
assistant_id: string ,
status: enum ,
required_action:
{
type: string ,
}
,
last_error:
{
code: string ,
message: string ,
}
,
model: string ,
instructions: string ,
tools:
[
{
type: string ,
}
,
]
,
created_at: integer ,
expires_at: integer ,
started_at: integer ,
completed_at: integer ,
cancelled_at: integer ,
failed_at: integer ,
incomplete_details:
{
reason: enum ,
}
,
usage:
{
completion_tokens: integer ,
prompt_tokens: integer ,
total_tokens: integer ,
}
,
temperature: number ,
top_p: number ,
max_prompt_tokens: integer ,
max_completion_tokens: integer ,
truncation_strategy:
{
type: enum ,
last_messages: integer ,
}
,
tool_choice: string ,
response_format: string ,
metadata: object ,
tool_resources:
{
code_interpreter:
{
file_ids:
[
string ,
]
,
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
file_search:
{
vector_store_ids:
[
string ,
]
,
vector_stores:
[
{
name: string ,
configuration:
{
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
}
,
]
,
}
,
azure_ai_search:
{
indexes:
[
{
index_connection_id: string ,
index_name: string ,
query_type: enum ,
top_k: integer ,
filter: string ,
index_asset_id: string ,
}
,
]
,
}
,
}
,
parallel_tool_calls: boolean ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
Runs_UpdateRun (new)
Description Modifies an existing thread run.
Reference Link ¶

⚼ Request

POST:  /threads/{threadId}/runs/{runId}
{
api-version: string ,
threadId: string ,
runId: string ,
body:
{
metadata: object ,
}
,
}

⚐ Response (200)

{
id: string ,
object: enum ,
thread_id: string ,
assistant_id: string ,
status: enum ,
required_action:
{
type: string ,
}
,
last_error:
{
code: string ,
message: string ,
}
,
model: string ,
instructions: string ,
tools:
[
{
type: string ,
}
,
]
,
created_at: integer ,
expires_at: integer ,
started_at: integer ,
completed_at: integer ,
cancelled_at: integer ,
failed_at: integer ,
incomplete_details:
{
reason: enum ,
}
,
usage:
{
completion_tokens: integer ,
prompt_tokens: integer ,
total_tokens: integer ,
}
,
temperature: number ,
top_p: number ,
max_prompt_tokens: integer ,
max_completion_tokens: integer ,
truncation_strategy:
{
type: enum ,
last_messages: integer ,
}
,
tool_choice: string ,
response_format: string ,
metadata: object ,
tool_resources:
{
code_interpreter:
{
file_ids:
[
string ,
]
,
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
file_search:
{
vector_store_ids:
[
string ,
]
,
vector_stores:
[
{
name: string ,
configuration:
{
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
}
,
]
,
}
,
azure_ai_search:
{
indexes:
[
{
index_connection_id: string ,
index_name: string ,
query_type: enum ,
top_k: integer ,
filter: string ,
index_asset_id: string ,
}
,
]
,
}
,
}
,
parallel_tool_calls: boolean ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
Runs_CancelRun (new)
Description Cancels a run of an in‐progress thread.
Reference Link ¶

⚼ Request

POST:  /threads/{threadId}/runs/{runId}/cancel
{
api-version: string ,
threadId: string ,
runId: string ,
}

⚐ Response (200)

{
id: string ,
object: enum ,
thread_id: string ,
assistant_id: string ,
status: enum ,
required_action:
{
type: string ,
}
,
last_error:
{
code: string ,
message: string ,
}
,
model: string ,
instructions: string ,
tools:
[
{
type: string ,
}
,
]
,
created_at: integer ,
expires_at: integer ,
started_at: integer ,
completed_at: integer ,
cancelled_at: integer ,
failed_at: integer ,
incomplete_details:
{
reason: enum ,
}
,
usage:
{
completion_tokens: integer ,
prompt_tokens: integer ,
total_tokens: integer ,
}
,
temperature: number ,
top_p: number ,
max_prompt_tokens: integer ,
max_completion_tokens: integer ,
truncation_strategy:
{
type: enum ,
last_messages: integer ,
}
,
tool_choice: string ,
response_format: string ,
metadata: object ,
tool_resources:
{
code_interpreter:
{
file_ids:
[
string ,
]
,
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
file_search:
{
vector_store_ids:
[
string ,
]
,
vector_stores:
[
{
name: string ,
configuration:
{
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
}
,
]
,
}
,
azure_ai_search:
{
indexes:
[
{
index_connection_id: string ,
index_name: string ,
query_type: enum ,
top_k: integer ,
filter: string ,
index_asset_id: string ,
}
,
]
,
}
,
}
,
parallel_tool_calls: boolean ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
RunSteps_ListRunSteps (new)
Description Gets a list of run steps from a thread run.
Reference Link ¶

⚼ Request

GET:  /threads/{threadId}/runs/{runId}/steps
{
threadId: string ,
runId: string ,
include[]: array ,
api-version: string ,
limit: integer ,
order: string ,
after: string ,
before: string ,
}

⚐ Response (200)

{
data:
[
{
id: string ,
object: enum ,
type: enum ,
assistant_id: string ,
thread_id: string ,
run_id: string ,
status: enum ,
step_details:
{
type: enum ,
}
,
last_error:
{
code: enum ,
message: string ,
}
,
created_at: integer ,
expired_at: integer ,
completed_at: integer ,
cancelled_at: integer ,
failed_at: integer ,
usage:
{
completion_tokens: integer ,
prompt_tokens: integer ,
total_tokens: integer ,
}
,
metadata: object ,
}
,
]
,
last_id: string ,
has_more: boolean ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
RunSteps_GetRunStep (new)
Description Retrieves a single run step from a thread run.
Reference Link ¶

⚼ Request

GET:  /threads/{threadId}/runs/{runId}/steps/{stepId}
{
api-version: string ,
threadId: string ,
runId: string ,
stepId: string ,
include[]: array ,
}

⚐ Response (200)

{
id: string ,
object: enum ,
type: enum ,
assistant_id: string ,
thread_id: string ,
run_id: string ,
status: enum ,
step_details:
{
type: enum ,
}
,
last_error:
{
code: enum ,
message: string ,
}
,
created_at: integer ,
expired_at: integer ,
completed_at: integer ,
cancelled_at: integer ,
failed_at: integer ,
usage:
{
completion_tokens: integer ,
prompt_tokens: integer ,
total_tokens: integer ,
}
,
metadata: object ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
Runs_SubmitToolOutputsToRun (new)
Description Submits outputs from tools as requested by tool calls in a run.
Reference Link ¶

⚼ Request

POST:  /threads/{threadId}/runs/{runId}/submit_tool_outputs
{
api-version: string ,
threadId: string ,
runId: string ,
body:
{
tool_outputs:
[
{
tool_call_id: string ,
output: string ,
}
,
]
,
stream: boolean ,
}
,
}

⚐ Response (200)

{
id: string ,
object: enum ,
thread_id: string ,
assistant_id: string ,
status: enum ,
required_action:
{
type: string ,
}
,
last_error:
{
code: string ,
message: string ,
}
,
model: string ,
instructions: string ,
tools:
[
{
type: string ,
}
,
]
,
created_at: integer ,
expires_at: integer ,
started_at: integer ,
completed_at: integer ,
cancelled_at: integer ,
failed_at: integer ,
incomplete_details:
{
reason: enum ,
}
,
usage:
{
completion_tokens: integer ,
prompt_tokens: integer ,
total_tokens: integer ,
}
,
temperature: number ,
top_p: number ,
max_prompt_tokens: integer ,
max_completion_tokens: integer ,
truncation_strategy:
{
type: enum ,
last_messages: integer ,
}
,
tool_choice: string ,
response_format: string ,
metadata: object ,
tool_resources:
{
code_interpreter:
{
file_ids:
[
string ,
]
,
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
file_search:
{
vector_store_ids:
[
string ,
]
,
vector_stores:
[
{
name: string ,
configuration:
{
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
}
,
]
,
}
,
azure_ai_search:
{
indexes:
[
{
index_connection_id: string ,
index_name: string ,
query_type: enum ,
top_k: integer ,
filter: string ,
index_asset_id: string ,
}
,
]
,
}
,
}
,
parallel_tool_calls: boolean ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
CreateThreadAndRun (new)
Description Creates a new agent thread and immediately starts a run using that new thread.
Reference Link ¶

⚼ Request

POST:  /threads/runs
{
api-version: string ,
body:
{
assistant_id: string ,
thread:
{
messages:
[
{
role: enum ,
content: string ,
attachments:
[
{
file_id: string ,
data_source:
{
uri: string ,
type: enum ,
}
,
tools:
[
string ,
]
,
}
,
]
,
metadata: object ,
}
,
]
,
tool_resources:
{
code_interpreter:
{
file_ids:
[
string ,
]
,
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
file_search:
{
vector_store_ids:
[
string ,
]
,
vector_stores:
[
{
name: string ,
configuration:
{
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
}
,
]
,
}
,
azure_ai_search:
{
indexes:
[
{
index_connection_id: string ,
index_name: string ,
query_type: enum ,
top_k: integer ,
filter: string ,
index_asset_id: string ,
}
,
]
,
}
,
}
,
metadata: object ,
}
,
model: string ,
instructions: string ,
tools:
[
{
type: string ,
}
,
]
,
tool_resources:
{
code_interpreter:
{
file_ids:
[
string ,
]
,
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
file_search:
{
vector_store_ids:
[
string ,
]
,
vector_stores:
[
{
name: string ,
configuration:
{
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
}
,
]
,
}
,
azure_ai_search:
{
indexes:
[
{
index_connection_id: string ,
index_name: string ,
query_type: enum ,
top_k: integer ,
filter: string ,
index_asset_id: string ,
}
,
]
,
}
,
}
,
stream: boolean ,
temperature: number ,
top_p: number ,
max_prompt_tokens: integer ,
max_completion_tokens: integer ,
truncation_strategy:
{
type: enum ,
last_messages: integer ,
}
,
tool_choice: string ,
response_format: string ,
parallel_tool_calls: boolean ,
metadata: object ,
}
,
}

⚐ Response (200)

{
id: string ,
object: enum ,
thread_id: string ,
assistant_id: string ,
status: enum ,
required_action:
{
type: string ,
}
,
last_error:
{
code: string ,
message: string ,
}
,
model: string ,
instructions: string ,
tools:
[
{
type: string ,
}
,
]
,
created_at: integer ,
expires_at: integer ,
started_at: integer ,
completed_at: integer ,
cancelled_at: integer ,
failed_at: integer ,
incomplete_details:
{
reason: enum ,
}
,
usage:
{
completion_tokens: integer ,
prompt_tokens: integer ,
total_tokens: integer ,
}
,
temperature: number ,
top_p: number ,
max_prompt_tokens: integer ,
max_completion_tokens: integer ,
truncation_strategy:
{
type: enum ,
last_messages: integer ,
}
,
tool_choice: string ,
response_format: string ,
metadata: object ,
tool_resources:
{
code_interpreter:
{
file_ids:
[
string ,
]
,
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
file_search:
{
vector_store_ids:
[
string ,
]
,
vector_stores:
[
{
name: string ,
configuration:
{
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
}
,
]
,
}
,
azure_ai_search:
{
indexes:
[
{
index_connection_id: string ,
index_name: string ,
query_type: enum ,
top_k: integer ,
filter: string ,
index_asset_id: string ,
}
,
]
,
}
,
}
,
parallel_tool_calls: boolean ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
VectorStores_ListVectorStores (new)
Description Returns a list of vector stores.
Reference Link ¶

⚼ Request

GET:  /vector_stores
{
api-version: string ,
limit: integer ,
order: string ,
after: string ,
before: string ,
}

⚐ Response (200)

{
data:
[
{
id: string ,
object: enum ,
created_at: integer ,
name: string ,
usage_bytes: integer ,
file_counts:
{
in_progress: integer ,
completed: integer ,
failed: integer ,
cancelled: integer ,
total: integer ,
}
,
status: enum ,
expires_after:
{
anchor: enum ,
days: integer ,
}
,
expires_at: integer ,
last_active_at: integer ,
metadata: object ,
}
,
]
,
last_id: string ,
has_more: boolean ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
VectorStores_CreateVectorStore (new)
Description Creates a vector store.
Reference Link ¶

⚼ Request

POST:  /vector_stores
{
api-version: string ,
body:
{
file_ids:
[
string ,
]
,
name: string ,
configuration:
{
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
expires_after:
{
anchor: enum ,
days: integer ,
}
,
chunking_strategy:
{
type: enum ,
}
,
metadata: object ,
}
,
}

⚐ Response (200)

{
id: string ,
object: enum ,
created_at: integer ,
name: string ,
usage_bytes: integer ,
file_counts:
{
in_progress: integer ,
completed: integer ,
failed: integer ,
cancelled: integer ,
total: integer ,
}
,
status: enum ,
expires_after:
{
anchor: enum ,
days: integer ,
}
,
expires_at: integer ,
last_active_at: integer ,
metadata: object ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
VectorStores_GetVectorStore (new)
Description Returns the vector store object matching the specified ID.
Reference Link ¶

⚼ Request

GET:  /vector_stores/{vectorStoreId}
{
api-version: string ,
vectorStoreId: string ,
}

⚐ Response (200)

{
id: string ,
object: enum ,
created_at: integer ,
name: string ,
usage_bytes: integer ,
file_counts:
{
in_progress: integer ,
completed: integer ,
failed: integer ,
cancelled: integer ,
total: integer ,
}
,
status: enum ,
expires_after:
{
anchor: enum ,
days: integer ,
}
,
expires_at: integer ,
last_active_at: integer ,
metadata: object ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
VectorStores_ModifyVectorStore (new)
Description Modifies an existing vector store.
Reference Link ¶

⚼ Request

POST:  /vector_stores/{vectorStoreId}
{
api-version: string ,
vectorStoreId: string ,
body:
{
name: string ,
expires_after:
{
anchor: enum ,
days: integer ,
}
,
metadata: object ,
}
,
}

⚐ Response (200)

{
id: string ,
object: enum ,
created_at: integer ,
name: string ,
usage_bytes: integer ,
file_counts:
{
in_progress: integer ,
completed: integer ,
failed: integer ,
cancelled: integer ,
total: integer ,
}
,
status: enum ,
expires_after:
{
anchor: enum ,
days: integer ,
}
,
expires_at: integer ,
last_active_at: integer ,
metadata: object ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
VectorStores_DeleteVectorStore (new)
Description Deletes the vector store object matching the specified ID.
Reference Link ¶

⚼ Request

DELETE:  /vector_stores/{vectorStoreId}
{
api-version: string ,
vectorStoreId: string ,
}

⚐ Response (200)

{
id: string ,
deleted: boolean ,
object: enum ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
VectorStoreFileBatches_CreateVectorStoreFileBatch (new)
Description Create a vector store file batch.
Reference Link ¶

⚼ Request

POST:  /vector_stores/{vectorStoreId}/file_batches
{
api-version: string ,
vectorStoreId: string ,
body:
{
file_ids:
[
string ,
]
,
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
chunking_strategy:
{
type: enum ,
}
,
}
,
}

⚐ Response (200)

{
id: string ,
object: enum ,
created_at: integer ,
vector_store_id: string ,
status: enum ,
file_counts:
{
in_progress: integer ,
completed: integer ,
failed: integer ,
cancelled: integer ,
total: integer ,
}
,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
VectorStoreFileBatches_GetVectorStoreFileBatch (new)
Description Retrieve a vector store file batch.
Reference Link ¶

⚼ Request

GET:  /vector_stores/{vectorStoreId}/file_batches/{batchId}
{
api-version: string ,
vectorStoreId: string ,
batchId: string ,
}

⚐ Response (200)

{
id: string ,
object: enum ,
created_at: integer ,
vector_store_id: string ,
status: enum ,
file_counts:
{
in_progress: integer ,
completed: integer ,
failed: integer ,
cancelled: integer ,
total: integer ,
}
,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
VectorStoreFileBatches_CancelVectorStoreFileBatch (new)
Description Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible.
Reference Link ¶

⚼ Request

POST:  /vector_stores/{vectorStoreId}/file_batches/{batchId}/cancel
{
api-version: string ,
vectorStoreId: string ,
batchId: string ,
}

⚐ Response (200)

{
id: string ,
object: enum ,
created_at: integer ,
vector_store_id: string ,
status: enum ,
file_counts:
{
in_progress: integer ,
completed: integer ,
failed: integer ,
cancelled: integer ,
total: integer ,
}
,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
VectorStoreFileBatches_ListVectorStoreFileBatchFiles (new)
Description Returns a list of vector store files in a batch.
Reference Link ¶

⚼ Request

GET:  /vector_stores/{vectorStoreId}/file_batches/{batchId}/files
{
vectorStoreId: string ,
batchId: string ,
filter: string ,
api-version: string ,
limit: integer ,
order: string ,
after: string ,
before: string ,
}

⚐ Response (200)

{
data:
[
{
id: string ,
object: enum ,
usage_bytes: integer ,
created_at: integer ,
vector_store_id: string ,
status: enum ,
last_error:
{
code: enum ,
message: string ,
}
,
chunking_strategy:
{
type: enum ,
}
,
}
,
]
,
last_id: string ,
has_more: boolean ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
VectorStoreFiles_ListVectorStoreFiles (new)
Description Returns a list of vector store files.
Reference Link ¶

⚼ Request

GET:  /vector_stores/{vectorStoreId}/files
{
vectorStoreId: string ,
filter: string ,
api-version: string ,
limit: integer ,
order: string ,
after: string ,
before: string ,
}

⚐ Response (200)

{
data:
[
{
id: string ,
object: enum ,
usage_bytes: integer ,
created_at: integer ,
vector_store_id: string ,
status: enum ,
last_error:
{
code: enum ,
message: string ,
}
,
chunking_strategy:
{
type: enum ,
}
,
}
,
]
,
last_id: string ,
has_more: boolean ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
VectorStoreFiles_CreateVectorStoreFile (new)
Description Create a vector store file by attaching a file to a vector store.
Reference Link ¶

⚼ Request

POST:  /vector_stores/{vectorStoreId}/files
{
api-version: string ,
vectorStoreId: string ,
body:
{
file_id: string ,
data_source:
{
uri: string ,
type: enum ,
}
,
chunking_strategy:
{
type: enum ,
}
,
}
,
}

⚐ Response (200)

{
id: string ,
object: enum ,
usage_bytes: integer ,
created_at: integer ,
vector_store_id: string ,
status: enum ,
last_error:
{
code: enum ,
message: string ,
}
,
chunking_strategy:
{
type: enum ,
}
,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
VectorStoreFiles_GetVectorStoreFile (new)
Description Retrieves a vector store file.
Reference Link ¶

⚼ Request

GET:  /vector_stores/{vectorStoreId}/files/{fileId}
{
api-version: string ,
vectorStoreId: string ,
fileId: string ,
}

⚐ Response (200)

{
id: string ,
object: enum ,
usage_bytes: integer ,
created_at: integer ,
vector_store_id: string ,
status: enum ,
last_error:
{
code: enum ,
message: string ,
}
,
chunking_strategy:
{
type: enum ,
}
,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
VectorStoreFiles_DeleteVectorStoreFile (new)
Description Deletes a vector store file. This removes the file‐to‐store link (does not delete the file itself).
Reference Link ¶

⚼ Request

DELETE:  /vector_stores/{vectorStoreId}/files/{fileId}
{
api-version: string ,
vectorStoreId: string ,
fileId: string ,
}

⚐ Response (200)

{
id: string ,
deleted: boolean ,
object: enum ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}