Microsoft Azure Assistant API

The Assistant API from Microsoft Azure, for assistant.

GitHub OpenAPI

Operations 1

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

POST /assistants/{assistant_id} Modify an Azure OpenAI assistant · Microsoft Azure Modifies An Assistant #
Ask an LLM
“Can I change the model or instructions of an existing Azure OpenAI assistant?”
“Which assistant settings, like tools and files, can be updated after creation?”
Tell an agent
Change assistant {assistant_id} to use model {model}.
Update the instructions of assistant {assistant_id} to {instructions}.

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-assistant-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-assistant-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure Azure OpenAI Service Assistant API
  description: Azure OpenAI APIs for completions and search
  version: 2024-03-01-preview
servers:
- url: https://{endpoint}/openai
  variables:
    endpoint:
      default: your-resource-name.openai.azure.com
security:
- bearer:
  - api.read
- apiKey: []
tags:
- name: Assistant
paths:
  /assistants/{assistant_id}:
    post:
      operationId: microsoftAzureModifyAssistant
      tags:
      - Assistant
      summary: Microsoft Azure Modifies An Assistant
      parameters:
      - in: path
        name: assistant_id
        required: true
        schema:
          type: string
        description: The ID of the assistant to modify.
      - in: query
        name: api-version
        required: true
        schema:
          type: string
          example: 2024-03-01-preview
          description: api version
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/modifyAssistantRequest'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/assistantObject'
      x-ms-examples:
        Create an assistant.:
          $ref: ./examples/modify_assistant.yaml
      description: Needs a more full description created.
components:
  schemas:
    assistantObject:
      type: object
      title: Assistant
      description: Represents an `assistant` that can call the model and use tools.
      properties:
        id:
          description: The identifier, which can be referenced in API endpoints.
          type: string
        object:
          description: The object type, which is always `assistant`.
          type: string
          enum:
          - assistant
          x-ms-enum:
            name: AssistantObjectType
            modelAsString: true
            values:
            - value: assistant
              description: The object type, which is always assistant
        created_at:
          description: The Unix timestamp (in seconds) for when the assistant was created.
          type: integer
        name:
          description: 'The name of the assistant. The maximum length is 256 characters.

            '
          type:
          - string
          - 'null'
          maxLength: 256
        description:
          description: 'The description of the assistant. The maximum length is 512 characters.

            '
          type:
          - string
          - 'null'
          maxLength: 512
        model:
          description: 'ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models/overview) for descriptions of them.

            '
          type: string
        instructions:
          description: 'The system instructions that the assistant uses. The maximum length is 32768 characters.

            '
          type:
          - string
          - 'null'
          maxLength: 32768
        tools:
          description: 'A list of tool enabled on the assistant. There can be a maximum of 128 tools per assistant. Tools can be of types `code_interpreter`, `retrieval`, or `function`.

            '
          default: []
          type: array
          maxItems: 128
          items:
            oneOf:
            - $ref: '#/components/schemas/assistantToolsCode'
            - $ref: '#/components/schemas/assistantToolsRetrieval'
            - $ref: '#/components/schemas/assistantToolsFunction'
        file_ids:
          description: 'A list of [file](/docs/api-reference/files) IDs attached to this assistant. There can be a maximum of 20 files attached to the assistant. Files are ordered by their creation date in ascending order.

            '
          default: []
          type: array
          maxItems: 20
          items:
            type: string
        metadata:
          description: 'Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format. Keys can be a maximum of 64 characters long and values can be a maximum of 512 characters long.

            '
          type:
          - object
          - 'null'
      required:
      - id
      - object
      - created_at
      - name
      - description
      - model
      - instructions
      - tools
      - file_ids
      - metadata
    modifyAssistantRequest:
      type: object
      additionalProperties: false
      properties:
        model:
          description: 'ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models/overview) for descriptions of them.

            '
          anyOf:
          - type: string
        name:
          description: 'The name of the assistant. The maximum length is 256 characters.

            '
          type:
          - string
          - 'null'
          maxLength: 256
        description:
          description: 'The description of the assistant. The maximum length is 512 characters.

            '
          type:
          - string
          - 'null'
          maxLength: 512
        instructions:
          description: 'The system instructions that the assistant uses. The maximum length is 32768 characters.

            '
          type:
          - string
          - 'null'
          maxLength: 32768
        tools:
          description: 'A list of tool enabled on the assistant. There can be a maximum of 128 tools per assistant. Tools can be of types `code_interpreter`, `retrieval`, or `function`.

            '
          default: []
          type: array
          maxItems: 128
          items:
            oneOf:
            - $ref: '#/components/schemas/assistantToolsCode'
            - $ref: '#/components/schemas/assistantToolsRetrieval'
            - $ref: '#/components/schemas/assistantToolsFunction'
        file_ids:
          description: 'A list of [File](/docs/api-reference/files) IDs attached to this assistant. There can be a maximum of 20 files attached to the assistant. Files are ordered by their creation date in ascending order. If a file was previously attached to the list but does not show up in the list, it will be deleted from the assistant.

            '
          default: []
          type: array
          maxItems: 20
          items:
            type: string
        metadata:
          description: 'Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format. Keys can be a maximum of 64 characters long and values can be a maximum of 512 characters long.

            '
          type:
          - object
          - 'null'
    assistantToolsRetrieval:
      type: object
      title: Retrieval tool
      properties:
        type:
          type: string
          description: 'The type of tool being defined: `retrieval`'
          enum:
          - retrieval
          x-ms-enum:
            name: assistantToolsRetrievalType
            modelAsString: true
            values:
            - value: retrieval
              description: retrieval as type of tool being defined
      required:
      - type
    assistantToolsFunction:
      type: object
      title: Function tool
      properties:
        type:
          type: string
          description: 'The type of tool being defined: `function`'
          enum:
          - function
          x-ms-enum:
            name: assistantToolsFunction
            modelAsString: true
            values:
            - value: retrieval
              description: retrieval as type of tool being defined
        function:
          type: object
          description: The function definition.
          properties:
            description:
              type: string
              description: A description of what the function does, used by the model to choose when and how to call the function.
            name:
              type: string
              description: The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
            parameters:
              $ref: '#/components/schemas/chatCompletionFunctionParameters'
          required:
          - name
          - parameters
          - description
      required:
      - type
      - function
    assistantToolsCode:
      type: object
      title: Code interpreter tool
      properties:
        type:
          type: string
          description: 'The type of tool being defined: `code_interpreter`'
          enum:
          - code_interpreter
          x-ms-enum:
            name: assistantToolsCodeType
            modelAsString: true
            values:
            - value: code_interpreter
              description: code_interpreter as type of tool being defined
      required:
      - type
    chatCompletionFunctionParameters:
      type: object
      description: The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/gpt/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
      additionalProperties: true
  securitySchemes:
    bearer:
      type: oauth2
      flows:
        implicit:
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/v2.0/authorize
          scopes: {}
      x-tokenInfoFunc: api.middleware.auth.bearer_auth
      x-scopeValidateFunc: api.middleware.auth.validate_scopes
    apiKey:
      type: apiKey
      name: api-key
      in: header