Microsoft Azure Assistants API

The Assistants API from Microsoft Azure, for assistants.

GitHub OpenAPI
Business capability
Artificial Intelligence Management BC-610.60

Operations 34

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /assistants List the assistants I have created · Microsoft Azure Get Assistants #
Ask an LLM
“Which assistants have I already set up in Azure OpenAI?”
“Can I page through my assistants newest first, a fixed number at a time?”
Tell an agent
Show me all the assistants I've created.
List my first {limit} assistants in {order} order.
POST /assistants Create a new assistant · Microsoft Azure Post Assistants #
Ask an LLM
“How do I set up a new assistant on a model deployment with its own system instructions?”
“Can a brand-new assistant be given tools and files from the moment it is created?”
Tell an agent
Create an assistant named {name} on model {model}.
Set up a new {model} assistant that follows these instructions: {instructions}.
GET /assistants/{assistantId} Look up one assistant's configuration · Microsoft Azure Get Assistants Assistantid #
Ask an LLM
“What model and instructions is a particular assistant configured with?”
“Can I pull up the settings of one assistant by its id?”
Tell an agent
Show me the configuration of assistant {assistantId}.
Fetch assistant {assistantId} so I can check which tools it has.
POST /assistants/{assistantId} Change an existing assistant's settings · Microsoft Azure Post Assistants Assistantid #
Ask an LLM
“Can I switch an assistant I already built to a different model?”
“How do I rewrite the instructions of an assistant that's already live?”
Tell an agent
Move assistant {assistantId} to model {model}.
Replace the instructions on assistant {assistantId} with: {instructions}.
DELETE /assistants/{assistantId} Delete an assistant · Microsoft Azure Delete Assistants Assistantid #
Ask an LLM
“Can I permanently remove an assistant I no longer use?”
“What happens when I delete an assistant by its id?”
Tell an agent destructive · confirm first
Delete assistant {assistantId}.
Get rid of the assistant with id {assistantId}.
GET /assistants/{assistantId}/files List files attached to an assistant · Microsoft Azure Get Assistants Assistantid Files #
Ask an LLM
“Which files can a given assistant's retrieval tools read right now?”
“Is there a way to page through the files linked to one assistant?”
Tell an agent
List the files attached to assistant {assistantId}.
Show the first {limit} files linked to assistant {assistantId}.
POST /assistants/{assistantId}/files Attach an uploaded file to an assistant · Microsoft Azure Post Assistants Assistantid Files #
Ask an LLM
“How do I give an assistant access to a file I already uploaded?”
“Can I link one more document to an assistant's file-reading tools?”
Tell an agent
Attach uploaded file {file_id} to assistant {assistantId}.
Let assistant {assistantId} read file {file_id} with its tools.
GET /assistants/{assistantId}/files/{fileId} Look up a file attached to an assistant · Microsoft Azure Get Assistants Assistantid Files Fileid #
Ask an LLM
“Can I confirm a specific file is still attached to an assistant?”
“When was a particular file linked to my assistant?”
Tell an agent
Show attached file {fileId} on assistant {assistantId}.
Check the attachment record for file {fileId} on assistant {assistantId}.
DELETE /assistants/{assistantId}/files/{fileId} Unlink a file from an assistant · Microsoft Azure Delete Assistants Assistantid Files Fileid #
Ask an LLM
“How do I stop an assistant's tools from reading a file I attached?”
“Does unlinking a file from an assistant make it unavailable to that assistant?”
Tell an agent destructive · confirm first
Unlink file {fileId} from assistant {assistantId}.
Detach file {fileId} so assistant {assistantId} can no longer read it.
GET /assistants/{assistant_id} Retrieve an assistant at a set API version · Microsoft Azure Retrieves An Assistant #
Ask an LLM
“Can I fetch an assistant while pinning a specific api-version?”
“Which version-pinned call returns one assistant's details?”
Tell an agent
Retrieve assistant {assistant_id} using api-version {api_version}.
Pull assistant {assistant_id} from the versioned assistants endpoint.
DELETE /assistants/{assistant_id} Delete an assistant at a set API version · Microsoft Azure Delete An Assistant #
Ask an LLM
“Can I delete an assistant through the call that requires an api-version?”
“Is removing an assistant on a pinned API version permanent?”
Tell an agent destructive · confirm first
Delete assistant {assistant_id} with api-version {api_version}.
Remove assistant {assistant_id} via the versioned delete endpoint.
POST /threads Start a new conversation thread · Microsoft Azure Create A Thread #
Ask an LLM
“How do I open a new conversation thread for an assistant to work in?”
“Can I seed a new thread with starting messages when I create it?”
Tell an agent
Start a new empty conversation thread.
Create a thread pre-loaded with these messages: {messages}.
GET /threads/{thread_id} Retrieve a conversation thread · Microsoft Azure Retrieves A Thread #
Ask an LLM
“Can I look up a conversation thread and its metadata by id?”
“When was a given thread created?”
Tell an agent
Show me thread {thread_id}.
Fetch the details and metadata of conversation thread {thread_id}.
POST /threads/{thread_id} Update a thread's metadata · Microsoft Azure Modifies A Thread #
Ask an LLM
“Can I tag an existing conversation thread with my own metadata?”
“What on a thread can be changed after it's created?”
Tell an agent
Set the metadata on thread {thread_id} to {metadata}.
Label conversation thread {thread_id} with {metadata}.
DELETE /threads/{thread_id} Delete a conversation thread · Microsoft Azure Delete A Thread #
Ask an LLM
“How do I delete a conversation thread when the chat is finished?”
“Can a deleted thread be recovered afterwards?”
Tell an agent destructive · confirm first
Delete thread {thread_id}.
Throw away the whole conversation thread {thread_id}.
GET /threads/{thread_id}/messages List the messages in a thread · Microsoft Azure Returns A List Of Messages For A Given Thread #
Ask an LLM
“How do I read back every message in a conversation thread?”
“Can I get a thread's messages oldest first instead of newest first?”
Tell an agent
List the messages in thread {thread_id}.
Show the last {limit} messages of thread {thread_id} in {order} order.
POST /threads/{thread_id}/messages Add a message to a thread · Microsoft Azure Create A Message #
Ask an LLM
“How do I post a user message into an existing thread?”
“Can a message I add to a thread carry file attachments?”
Tell an agent
Add a {role} message saying {content} to thread {thread_id}.
Post {content} into thread {thread_id} with files {file_ids} attached.
GET /threads/{thread_id}/messages/{message_id} Retrieve one message from a thread · Microsoft Azure Retrieve A Message #
Ask an LLM
“Can I fetch a single message out of a thread by its id?”
“Who wrote a particular message in a conversation thread?”
Tell an agent
Show message {message_id} from thread {thread_id}.
Get the content of message {message_id} in thread {thread_id}.
POST /threads/{thread_id}/messages/{message_id} Update a message's metadata · Microsoft Azure Modifies A Message #
Ask an LLM
“Can I attach my own metadata to a message already in a thread?”
“Is the text of a posted message editable, or only its metadata?”
Tell an agent
Set metadata {metadata} on message {message_id} in thread {thread_id}.
Tag message {message_id} of thread {thread_id} as reviewed.
POST /threads/runs Create a thread and run it in one step · Microsoft Azure Create A Thread And Run It In One Request #
Ask an LLM
“Can I start a new thread and have an assistant answer it in a single call?”
“What's the quickest way to get an assistant response without creating the thread first?”
Tell an agent
Create a new thread and run assistant {assistant_id} on it right away.
Start thread {thread} and immediately run assistant {assistant_id} on it.
GET /threads/{thread_id}/runs List the runs on a thread · Microsoft Azure Returns A List Of Runs Belonging To A Thread #
Ask an LLM
“Which assistant runs have been executed on a thread?”
“Can I page through a thread's run history?”
Tell an agent
List the runs on thread {thread_id}.
Show the {limit} most recent runs of thread {thread_id}.
POST /threads/{thread_id}/runs Run an assistant on an existing thread · Microsoft Azure Create A Run #
Ask an LLM
“How do I have an assistant respond to a thread I already have?”
“Can I override the assistant's instructions for just one run?”
Tell an agent
Run assistant {assistant_id} on thread {thread_id}.
Run assistant {assistant_id} on thread {thread_id} with these one-off instructions: {instructions}.
GET /threads/{thread_id}/runs/{run_id} Check the status of a run · Microsoft Azure Retrieves A Run #
Ask an LLM
“Has my assistant run finished, or is it still in progress?”
“Is a run waiting on me to submit tool outputs?”
Tell an agent
Check the status of run {run_id} on thread {thread_id}.
Fetch run {run_id} in thread {thread_id} and tell me if it needs action.
POST /threads/{thread_id}/runs/{run_id} Update a run's metadata · Microsoft Azure Modifies A Run #
Ask an LLM
“Can I add my own tracking metadata to a run after it starts?”
“What part of an existing run am I allowed to modify?”
Tell an agent
Set metadata {metadata} on run {run_id} of thread {thread_id}.
Tag run {run_id} in thread {thread_id} with my ticket reference {metadata}.
POST /threads/{thread_id}/runs/{run_id}/submit_tool_outputs Submit tool call results to a waiting run · Microsoft Azure When A Run Has The `status: "requires Action"` And `required… #
Ask an LLM
“How do I hand my function call results back to a run that requires action?”
“What does a run need from me when its status is requires_action?”
Tell an agent
Submit tool outputs {tool_outputs} to run {run_id} on thread {thread_id}.
Send my function results back so run {run_id} in thread {thread_id} can continue.
POST /threads/{thread_id}/runs/{run_id}/cancel Cancel an in-progress run · Microsoft Azure Cancels A Run That Is `in Progress` #
Ask an LLM
“Can I stop an assistant run that's still in progress?”
“What happens if I cancel a run midway through?”
Tell an agent destructive · confirm first
Cancel run {run_id} on thread {thread_id}.
Stop the in-progress run {run_id} in thread {thread_id} now.
GET /threads/{thread_id}/runs/{run_id}/steps List the steps a run took · Microsoft Azure Returns A List Of Run Steps Belonging To A Run #
Ask an LLM
“What steps did the assistant go through during a run?”
“Can I see which tool calls a run made, step by step?”
Tell an agent
List the steps of run {run_id} on thread {thread_id}.
Show the first {limit} steps run {run_id} took in thread {thread_id}.
GET /threads/{thread_id}/runs/{run_id}/steps/{step_id} Retrieve a single run step · Microsoft Azure Retrieves A Run Step #
Ask an LLM
“Can I inspect one specific step of a run in detail?”
“Which tool call happened in a particular run step?”
Tell an agent
Show step {step_id} of run {run_id} in thread {thread_id}.
Get the details of run step {step_id} from run {run_id} on thread {thread_id}.
GET /assistants/{assistant_id}/files List an assistant's files at a set API version · Microsoft Azure Returns A List Of Assistant Files #
Ask an LLM
“Can I list an assistant's attached files while pinning an api-version?”
“Which versioned call pages through the assistant files of one assistant?”
Tell an agent
List assistant files for {assistant_id} on api-version {api_version}.
Page through the assistant files of {assistant_id} after file {after} via the versioned endpoint.
POST /assistants/{assistant_id}/files Attach a file to an assistant at a set API version · Microsoft Azure Create An Assistant File By Attaching A [file] Docs Api… #
Ask an LLM
“Can I create an assistant file through the call that takes an api-version?”
“Is there a version-pinned way to link an uploaded file to an assistant?”
Tell an agent
Create an assistant file linking {file_id} to {assistant_id} on api-version {api_version}.
Use the versioned endpoint to attach file {file_id} to assistant {assistant_id}.
GET /assistants/{assistant_id}/files/{file_id} Retrieve an assistant file at a set API version · Microsoft Azure Retrieves An Assistantfile #
Ask an LLM
“Can I retrieve one assistant file record while pinning an api-version?”
“Which versioned call returns a single AssistantFile?”
Tell an agent
Retrieve AssistantFile {file_id} of {assistant_id} on api-version {api_version}.
Look up AssistantFile {file_id} for assistant {assistant_id} via the versioned endpoint.
DELETE /assistants/{assistant_id}/files/{file_id} Delete an assistant file at a set API version · Microsoft Azure Delete An Assistant File #
Ask an LLM
“Can I delete an AssistantFile through the versioned endpoint?”
“Is removing an assistant file on a pinned api-version reversible?”
Tell an agent destructive · confirm first
Delete AssistantFile {file_id} from {assistant_id} on api-version {api_version}.
Remove the assistant file record {file_id} of {assistant_id} through the versioned delete.
GET /threads/{thread_id}/messages/{message_id}/files List the files attached to a message · Microsoft Azure Returns A List Of Message Files #
Ask an LLM
“Which files were attached to a particular message in a thread?”
“Can I page through a message's file attachments?”
Tell an agent
List the files on message {message_id} in thread {thread_id}.
Show up to {limit} attachments of message {message_id} in thread {thread_id}.
GET /threads/{thread_id}/messages/{message_id}/files/{file_id} Retrieve one file attached to a message · Microsoft Azure Retrieves A Message File #
Ask an LLM
“Can I look up a single file attachment on a thread message?”
“Is a particular file still attached to that message?”
Tell an agent
Show file {file_id} attached to message {message_id} in thread {thread_id}.
Get the message file record {file_id} on message {message_id} of thread {thread_id}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-azure:microsoft-azure-assistants-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

microsoft-azure-assistants-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure Azure OpenAI Assistants API
  version: 2023-11-06-beta
  description: Azure OpenAI APIs for Assistants.
  x-typespec-generated:
  - emitter: '@azure-tools/typespec-autorest'
security:
- ApiKeyAuth: []
- OAuth2Auth:
  - https://cognitiveservices.azure.com/.default
tags:


# --- truncated at 32 KB (104 KB total) ---
# Full source: https://artifacts.apis.io/microsoft-azure/openapi/microsoft-azure-assistants-api-openapi.yml