Microsoft Azure Attested API

The Attested API from Microsoft Azure, for attested.

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

GET /attested/document Get a VM's attested metadata document · Microsoft Azure Get Attested Document #
Ask an LLM
“How can code on my Azure VM prove it is running on a genuine Azure VM?”
“Can I pass a nonce when requesting the attested document?”
Tell an agent
Get the attested data document for this VM with Metadata header {metadata}.
Fetch the attested document using nonce {nonce} and Metadata header {metadata}.

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-attested-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-attested-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure InstanceMetadataClient Attested API
  description: The Azure Instance Metadata Client
  version: '2020-09-01'
servers:
- url: http://169.254.169.254/metadata
- url: https://169.254.169.254/metadata
tags:
- name: Attested
paths:
  /attested/document:
    get:
      operationId: microsoftAzureAttestedGetdocument
      description: Get Attested Data for the Virtual Machine.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - name: nonce
        in: query
        required: false
        description: This is a string of up to 32 random alphanumeric characters.
        schema:
          type: string
      - $ref: '#/components/parameters/MetadataParameter'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AttestedData'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-examples:
        Get Attested Data for the VM:
          $ref: ./examples/GetAttestedData.json
      summary: Microsoft Azure Get Attested Document
      tags:
      - Attested
components:
  schemas:
    AttestedData:
      type: object
      description: This is the response from the Attested_GetDocument operation.
      properties:
        signature:
          type: string
          description: This is the encoded string containing the VM ID, SKU, plan information, public key, timestamp, and nonce value.
        encoding:
          type: string
          description: This is the encoding scheme of the signature.
    ErrorResponse:
      description: This is the response from an operation in the case an error occurs.
      type: object
      properties:
        error:
          description: Error message indicating why the operation failed.
          type: string
  parameters:
    ApiVersionParameter:
      name: api-version
      in: query
      description: This is the API version to use.
      required: true
      x-ms-enum:
        name: ApiVersion
        modelAsString: true
      schema:
        type: string
        enum:
        - '2018-10-01'
    MetadataParameter:
      name: Metadata
      in: header
      description: This must be set to 'true'.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
        enum:
        - 'true'
  securitySchemes:
    basic_auth:
      type: http
      scheme: basic
      description: A Basic authentication flow
x-provenance:
  method: harvested
  publisher: Microsoft Azure
  source: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-02-01/imds.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)