Microsoft Azure Media Composition API

The MediaComposition API from Microsoft Azure, for mediacomposition.

GitHub OpenAPI

Operations 6

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 /mediaCompositions/{mediaCompositionId} Get a media composition · Microsoft Azure Gets A Media Composition #
Ask an LLM
“What layout, inputs and outputs does my media composition have?”
“Can I look up a media composition by its id?”
Tell an agent
Get media composition {composition}.
Show the layout and stream state of composition {composition}.
PUT /mediaCompositions/{mediaCompositionId} Create a media composition · Microsoft Azure Creates A New Media Composition #
Ask an LLM
“How do I create a new media composition that combines call video feeds?”
“Which inputs, outputs and layout do I define for a new composition?”
Tell an agent
Create media composition {composition} with layout {layout}, inputs {inputs} and outputs {outputs}.
Set up a new composition {composition}.
PATCH /mediaCompositions/{mediaCompositionId} Update an existing media composition · Microsoft Azure Updates An Existing Media Composition #
Ask an LLM
“Can I change the layout of a media composition that already exists?”
“How do I swap the inputs on an existing composition?”
Tell an agent
Change the layout of composition {composition} to {layout}.
Update existing composition {composition} with inputs {inputs}.
DELETE /mediaCompositions/{mediaCompositionId} Delete a media composition · Microsoft Azure Deletes A Media Composition #
Ask an LLM
“How can I delete a media composition I'm done with?”
“Can I remove a composition by id?”
Tell an agent destructive · confirm first
Delete media composition {composition}.
Remove composition {composition} permanently.
POST /mediaCompositions/{mediaCompositionId}:start Start a media composition · Microsoft Azure Starts The Composition #
Ask an LLM
“How do I start streaming a media composition?”
“Can I kick off a composition once it's configured?”
Tell an agent
Start media composition {composition}.
Begin running composition {composition} now.
POST /mediaCompositions/{mediaCompositionId}:stop Stop a media composition · Microsoft Azure Stops The Composition #
Ask an LLM
“How can I stop a running media composition?”
“Can I halt a composition's output stream without deleting it?”
Tell an agent
Stop media composition {composition}.
Halt the running composition {composition}.

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-mediacomposition-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-mediacomposition-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure Azure Communication Service Media…
  description: Azure Communication Media Composition Service
  version: 2022-07-16-preview
tags:
- name: MediaComposition
paths:
  /mediaCompositions/{mediaCompositionId}:
    get:
      tags:
      - MediaComposition
      summary: Microsoft Azure Gets A Media Composition
      operationId: microsoftAzureMediacompositionGet
      parameters:
      - in: path
        name: mediaCompositionId
        description: The media composition id
        required: true
        schema:
          type: string
          maxLength: 256
          pattern: ^[0-9a-zA-Z-]+$
      - in: query
        name: api-version
        description: The API version
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MediaComposition'
        '400':
          description: Bad Request.
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
        '401':
          description: Unauthorized.
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
        '403':
          description: Forbidden.
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
        '429':
          description: Too many requests.
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
        '503':
          description: Service unavailable.
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
        default:
          description: Failure
          headers:
            x-ms-error-code:
              description: The error code.
              schema:
                type: string
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
      x-ms-examples:
        Get Media Composition:
          $ref: ./examples/MediaComposition_GetMediaComposition.json
      description: Needs a more full description created.
    put:
      tags:
      - MediaComposition
      summary: Microsoft Azure Creates A New Media Composition
      operationId: microsoftAzureMediacompositionCreate
      parameters:
      - in: path
        name: mediaCompositionId
        description: The media composition id
        required: true
        schema:
          type: string
          maxLength: 256
          pattern: ^[0-9a-zA-Z-]+$
      - in: query
        name: api-version
        description: The API version
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MediaComposition'
        '400':
          description: Bad Request.
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
        '401':
          description: Unauthorized.
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
        '403':
          description: Forbidden.
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
        '429':
          description: Too many requests.
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
        '503':
          description: Service unavailable.
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
        default:
          description: Failure
          headers:
            x-ms-error-code:
              description: The error code.
              schema:
                type: string
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
      x-ms-examples:
        Create new Media Composition:
          $ref: ./examples/MediaComposition_CreateMediaComposition.json
      description: Needs a more full description created.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MediaComposition'
        description: The media composition object to create
        required: true
    patch:
      tags:
      - MediaComposition
      summary: Microsoft Azure Updates An Existing Media Composition
      operationId: microsoftAzureMediacompositionUpdate
      parameters:
      - in: path
        name: mediaCompositionId
        description: The media composition id
        required: true
        schema:
          type: string
          maxLength: 256
          pattern: ^[0-9a-zA-Z-]+$
      - in: query
        name: api-version
        description: The API version
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MediaComposition'
        '400':
          description: Bad Request.
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
        '401':
          description: Unauthorized.
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
        '403':
          description: Forbidden.
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
        '429':
          description: Too many requests.
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
        '503':
          description: Service unavailable.
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
        default:
          description: Failure
          headers:
            x-ms-error-code:
              description: The error code.
              schema:
                type: string
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
      x-ms-examples:
        Update Media Composition - Change source:
          $ref: ./examples/MediaComposition_UpdateMediaComposition.json
      description: Needs a more full description created.
      requestBody:
        content:
          application/merge-patch+json:
            schema:
              $ref: '#/components/schemas/MediaComposition'
        description: The media composition object to update
        required: true
    delete:
      tags:
      - MediaComposition
      summary: Microsoft Azure Deletes A Media Composition
      operationId: microsoftAzureMediacompositionDelete
      parameters:
      - in: path
        name: mediaCompositionId
        description: The media composition id
        required: true
        schema:
          type: string
          maxLength: 256
          pattern: ^[0-9a-zA-Z-]+$
      - in: query
        name: api-version
        description: The API version
        required: true
        schema:
          type: string
      responses:
        '204':
          description: No Content
        '400':
          description: Bad Request.
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
        '401':
          description: Unauthorized.
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
        '403':
          description: Forbidden.
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
        '429':
          description: Too many requests.
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
        '503':
          description: Service unavailable.
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
        default:
          description: Failure
          headers:
            x-ms-error-code:
              description: The error code.
              schema:
                type: string
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
      x-ms-examples:
        Delete Media Composition:
          $ref: ./examples/MediaComposition_DeleteMediaComposition.json
      description: Needs a more full description created.
  /mediaCompositions/{mediaCompositionId}:start:
    post:
      tags:
      - MediaComposition
      summary: Microsoft Azure Starts The Composition
      operationId: microsoftAzureMediacompositionStart
      parameters:
      - in: path
        name: mediaCompositionId
        description: The media composition id
        required: true
        schema:
          type: string
          maxLength: 256
          pattern: ^[0-9a-zA-Z-]+$
      - in: query
        name: api-version
        description: The API version
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompositionStreamState'
        '400':
          description: Bad Request.
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
        '401':
          description: Unauthorized.
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
        '403':
          description: Forbidden.
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
        '429':
          description: Too many requests.
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
        '503':
          description: Service unavailable.
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
        default:
          description: Failure
          headers:
            x-ms-error-code:
              description: The error code.
              schema:
                type: string
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
      x-ms-examples:
        Start Media Composition:
          $ref: ./examples/MediaComposition_StartMediaComposition.json
      description: Needs a more full description created.
  /mediaCompositions/{mediaCompositionId}:stop:
    post:
      tags:
      - MediaComposition
      summary: Microsoft Azure Stops The Composition
      operationId: microsoftAzureMediacompositionStop
      parameters:
      - in: path
        name: mediaCompositionId
        description: The media composition id
        required: true
        schema:
          type: string
          maxLength: 256
          pattern: ^[0-9a-zA-Z-]+$
      - in: query
        name: api-version
        description: The API version
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompositionStreamState'
        '400':
          description: Bad Request.
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
        '401':
          description: Unauthorized.
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
        '403':
          description: Forbidden.
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
        '429':
          description: Too many requests.
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
        '503':
          description: Service unavailable.
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
        default:
          description: Failure
          headers:
            x-ms-error-code:
              description: The error code.
              schema:
                type: string
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
      x-ms-examples:
        Stop Media Composition:
          $ref: ./examples/MediaComposition_StopMediaComposition.json
      description: Needs a more full description created.
components:
  schemas:
    LayoutType:
      description: Kind of layout
      enum:
      - custom
      - grid
      - autoGrid
      - presentation
      - presenter
      type: string
      x-ms-enum:
        name: LayoutType
        modelAsString: true
    Layout:
      description: Configure a layout
      required:
      - kind
      type: object
      properties:
        kind:
          $ref: '#/components/schemas/LayoutType'
        resolution:
          $ref: '#/components/schemas/Resolution'
        placeholderImageUri:
          description: Set global placeholder image
          type: string
        scalingMode:
          $ref: '#/components/schemas/ScalingMode'
      discriminator:
        propertyName: kind
    MediaInput:
      description: Media input to be used in the composition
      required:
      - kind
      type: object
      properties:
        kind:
          $ref: '#/components/schemas/MediaInputType'
        placeholderImageUri:
          description: Image url to be used if participant has no video stream
          type: string
      discriminator:
        propertyName: kind
    MediaInputType:
      description: Kind of media input
      enum:
      - participant
      - screenShare
      - dominantSpeaker
      - activePresenter
      - image
      - groupCall
      - room
      - teamsMeeting
      - srt
      - rtmp
      type: string
      x-ms-enum:
        name: MediaInputType
        modelAsString: true
    MediaOutput:
      description: Media output to be used in the composition
      required:
      - kind
      type: object
      properties:
        kind:
          $ref: '#/components/schemas/MediaOutputType'
      discriminator:
        propertyName: kind
    MediaComposition:
      description: Body of a media composition
      type: object
      properties:
        id:
          description: Id of the media composition
          type: string
        layout:
          $ref: '#/components/schemas/Layout'
        inputs:
          description: Inputs used in the composition
          type: object
          additionalProperties:
            $ref: '#/components/schemas/MediaInput'
        outputs:
          description: Outputs used in the composition
          type: object
          additionalProperties:
            $ref: '#/components/schemas/MediaOutput'
        streamState:
          $ref: '#/components/schemas/CompositionStreamState'
    StreamStatus:
      description: State of the composition stream
      enum:
      - notStarted
      - running
      - stopped
      type: string
      x-ms-enum:
        name: StreamStatus
        modelAsString: true
    CompositionStreamState:
      description: Provides the state of the media composition
      type: object
      properties:
        status:
          $ref: '#/components/schemas/StreamStatus'
    MediaOutputType:
      description: Kind of media output
      enum:
      - groupCall
      - room
      - teamsMeeting
      - srt
      - rtmp
      type: string
      x-ms-enum:
        name: MediaOutputType
        modelAsString: true
    Resolution:
      description: The dimensions of the scene or objects in the scene
      required:
      - height
      - width
      type: object
      properties:
        width:
          format: int32
          description: Width of the object
          type: integer
        height:
          format: int32
          description: Height of the object
          type: integer
    CommunicationErrorResponse:
      $ref: ../../../Common/stable/2022-07-13/common.json#/definitions/CommunicationErrorResponse
    ScalingMode:
      description: The scaling mode for the view of a video stream in a cell.
      enum:
      - stretch
      - crop
      - fit
      type: string
      x-ms-enum:
        name: ScalingMode
        modelAsString: true