Microsoft Azure Event Routes API

The EventRoutes API from Microsoft Azure, for eventroutes.

GitHub OpenAPI

Operations 4

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 /eventroutes List Digital Twins event routes · Microsoft Azure Get Eventroutes #
Ask an LLM
“Which event routes are configured in my Azure Digital Twins instance?”
“Can I limit how many event routes come back per page?”
Tell an agent
List all event routes in my Digital Twins instance.
List event routes, {maxItemsPerPage} per page.
GET /eventroutes/{id} Get a Digital Twins event route · Microsoft Azure Get Eventroutes Id #
Ask an LLM
“What endpoint and filter does a specific event route use?”
“What happens if I request an event route that doesn't exist?”
Tell an agent
Get event route {id}.
Show the endpoint and filter of Digital Twins event route {id}.
PUT /eventroutes/{id} Add or replace a Digital Twins event route · Microsoft Azure Put Eventroutes Id #
Ask an LLM
“How do I send Digital Twins events to an endpoint with an event route?”
“Can I filter which twin events an event route forwards?”
Tell an agent
Create event route {id} sending events to endpoint {endpointName} with filter {filter}.
Replace event route {id} so it forwards to {endpointName}.
DELETE /eventroutes/{id} Delete a Digital Twins event route · Microsoft Azure Delete Eventroutes Id #
Ask an LLM
“How do I stop forwarding events by deleting an event route?”
“Can I remove a Digital Twins event route by its ID?”
Tell an agent destructive · confirm first
Delete event route {id}.
Remove Digital Twins event route {id} so it no longer forwards events.

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-eventroutes-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-eventroutes-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 2023-02-27-preview
  title: Microsoft Azure Azure Digital Twins Event Routes API
  description: A service for managing and querying digital twins and digital twin models.
servers:
- url: https://digitaltwins-hostname
security:
- oauth2: []
tags:
- name: EventRoutes
paths:
  /eventroutes:
    parameters:
    - $ref: '#/components/parameters/traceparent'
    - $ref: '#/components/parameters/tracestate'
    get:
      tags:
      - EventRoutes
      description: 'Retrieves all event routes.

        Status codes:

        * 200 OK'
      operationId: microsoftAzureEventroutesList
      x-ms-examples:
        List event routes:
          $ref: ./examples/EventRoutesList.json
      parameters:
      - $ref: '#/components/parameters/max-items-per-page'
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EventRouteCollection'
        default:
          description: Default response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Microsoft Azure Get Eventroutes
  /eventroutes/{id}:
    parameters:
    - $ref: '#/components/parameters/traceparent'
    - $ref: '#/components/parameters/tracestate'
    get:
      tags:
      - EventRoutes
      description: 'Retrieves an event route.

        Status codes:

        * 200 OK

        * 404 Not Found

        * EventRouteNotFound - The event route was not found.'
      operationId: microsoftAzureEventroutesGetbyid
      x-ms-examples:
        Get an event route by id:
          $ref: ./examples/EventRouteGet.json
      parameters:
      - $ref: '#/components/parameters/eventRouteId'
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EventRoute'
        default:
          description: Default response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Microsoft Azure Get Eventroutes Id
    put:
      tags:
      - EventRoutes
      description: 'Adds or replaces an event route.

        Status codes:

        * 204 No Content

        * 400 Bad Request

        * EventRouteEndpointInvalid - The endpoint provided does not exist or is not active.

        * EventRouteFilterInvalid - The event route filter is invalid.

        * EventRouteIdInvalid - The event route id is invalid.

        * LimitExceeded - The maximum number of event routes allowed has been reached.'
      operationId: microsoftAzureEventroutesAdd
      x-ms-examples:
        Add an event route:
          $ref: ./examples/EventRoutePut.json
        Add an event route (with filter):
          $ref: ./examples/EventRoutePutWithFilter.json
      parameters:
      - $ref: '#/components/parameters/eventRouteId'
      - $ref: '#/components/parameters/api-version'
      responses:
        '204':
          description: Success
        default:
          description: Default response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Microsoft Azure Put Eventroutes Id
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EventRoute'
        description: The event route data
        required: true
    delete:
      tags:
      - EventRoutes
      description: 'Deletes an event route.

        Status codes:

        * 204 No Content

        * 404 Not Found

        * EventRouteNotFound - The event route was not found.'
      operationId: microsoftAzureEventroutesDelete
      x-ms-examples:
        Delete an event route:
          $ref: ./examples/EventRouteDelete.json
      parameters:
      - $ref: '#/components/parameters/eventRouteId'
      - $ref: '#/components/parameters/api-version'
      responses:
        '204':
          description: Success
        default:
          description: Default response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Microsoft Azure Delete Eventroutes Id
components:
  parameters:
    traceparent:
      name: traceparent
      in: header
      description: Identifies the request in a distributed tracing system.
      required: false
      x-ms-parameter-location: method
      x-ms-parameter-grouping:
        postfix: Options
      schema:
        type: string
    api-version:
      name: api-version
      in: query
      description: The requested API version.
      required: true
      schema:
        type: string
        minLength: 1
    tracestate:
      name: tracestate
      in: header
      description: Provides vendor-specific trace identification information and is a companion to traceparent.
      required: false
      x-ms-parameter-location: method
      x-ms-parameter-grouping:
        postfix: Options
      schema:
        type: string
    eventRouteId:
      name: id
      in: path
      required: true
      description: The id for an event route. The id is unique within event routes and case sensitive.
      x-ms-parameter-location: method
      schema:
        type: string
    max-items-per-page:
      name: max-items-per-page
      in: header
      description: The maximum number of items to retrieve per request. The server may choose to return less than the requested number.
      required: false
      x-ms-client-name: MaxItemsPerPage
      x-ms-parameter-location: method
      x-ms-parameter-grouping:
        postfix: Options
      schema:
        type: integer
  schemas:
    InnerError:
      description: A more specific error description than was provided by the containing error.
      properties:
        code:
          description: A more specific error code than was provided by the containing error.
          type: string
        innererror:
          description: An object containing more specific information than the current object about the error.
          $ref: '#/components/schemas/InnerError'
    EventRoute:
      description: A route which directs notification and telemetry events to an endpoint. Endpoints are a destination outside of Azure Digital Twins such as an EventHub.
      type: object
      required:
      - endpointName
      - filter
      properties:
        id:
          description: The id of the event route.
          type: string
          readOnly: true
        endpointName:
          description: The name of the endpoint this event route is bound to.
          type: string
        filter:
          description: An expression which describes the events which are routed to the endpoint.
          type: string
    ErrorResponse:
      description: Error response.
      required:
      - error
      properties:
        error:
          $ref: '#/components/schemas/Error'
          description: The error details.
    Error:
      description: Error definition.
      properties:
        code:
          description: Service specific error code which serves as the substatus for the HTTP error code.
          type: string
          readOnly: true
        message:
          description: A human-readable representation of the error.
          type: string
          readOnly: true
        details:
          description: Internal error details.
          type: array
          items:
            $ref: '#/components/schemas/Error'
          readOnly: true
        innererror:
          description: An object containing more specific information than the current object about the error.
          $ref: '#/components/schemas/InnerError'
    EventRouteCollection:
      description: A collection of EventRoute objects.
      type: object
      required:
      - value
      properties:
        value:
          description: The EventRoute objects.
          type: array
          items:
            $ref: '#/components/schemas/EventRoute'
        nextLink:
          description: A URI to retrieve the next page of results.
          type: string
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        implicit:
          scopes: {}
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize?resource=0b07f429-9f4b-4714-9392-cc5e8e80c8b0