Microsoft Azure Device Registration State API

The DeviceRegistrationState API from Microsoft Azure, for deviceregistrationstate.

GitHub OpenAPI

Operations 2

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 /registrations/{id} Get a device's registration state · Microsoft Azure Gets The Device Registration State #
Ask an LLM
“How do I check whether a device has registered with the Device Provisioning Service?”
“What registration status does a single device show?”
Tell an agent
Get the registration state for device {id}.
Show the provisioning registration status of registration {id}.
POST /registrations/{id}/query Query registration states in an enrollment group · Microsoft Azure Gets The Registration State Of Devices In This Enrollmentgroup #
Ask an LLM
“Which devices in an enrollment group have registered?”
“Can I page through registration states of an enrollment group?”
Tell an agent
Query device registration states in enrollment group {id}.
List registrations in enrollment group {id}, {max_items} per page.

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-deviceregistrationstate-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-deviceregistrationstate-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: '2021-10-01'
  title: Microsoft Azure ProvisioningServiceClient Device…
  description: API for service operations with the Azure IoT Hub Device Provisioning Service
servers:
- url: https://your-dps.azure-devices-provisioning.net
tags:
- name: DeviceRegistrationState
paths:
  /registrations/{id}:
    get:
      tags:
      - DeviceRegistrationState
      summary: Microsoft Azure Gets The Device Registration State
      operationId: microsoftAzureDeviceregistrationstateGet
      parameters:
      - name: id
        in: path
        description: Registration ID.
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeviceRegistrationState'
        default:
          description: Error response
          headers:
            x-ms-error-code:
              description: The error code for specific error that occurred.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProvisioningServiceErrorDetails'
      description: Needs a more full description created.
  /registrations/{id}/query:
    post:
      tags:
      - DeviceRegistrationState
      summary: Microsoft Azure Gets The Registration State Of Devices In This Enrollmentgroup
      operationId: microsoftAzureDeviceregistrationstateQuery
      parameters:
      - name: id
        in: path
        description: Enrollment group ID.
        required: true
        schema:
          type: string
      - name: x-ms-max-item-count
        in: header
        description: pageSize
        required: false
        schema:
          type: integer
          format: int32
      - name: x-ms-continuation
        in: header
        description: continuation token
        required: false
        schema:
          type: string
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: Success
          headers:
            x-ms-continuation:
              description: The continuation token for getting the next page of results.
              schema:
                type: string
            x-ms-max-item-count:
              description: The maximum number of items returned in a page.
              schema:
                type: integer
            x-ms-item-type:
              description: The list of values returned from the query.
              schema:
                type: string
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/DeviceRegistrationState'
        default:
          description: Error response
          headers:
            x-ms-error-code:
              description: The error code for specific error that occurred.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProvisioningServiceErrorDetails'
      description: Needs a more full description created.
components:
  schemas:
    DeviceRegistrationState:
      description: Device registration state.
      type: object
      properties:
        registrationId:
          description: 'This id is used to uniquely identify a device registration of an enrollment.

            A case-insensitive string (up to 128 characters long) of alphanumeric characters plus certain special characters : . _ -. No special characters allowed at start or end.'
          type: string
          readOnly: true
        createdDateTimeUtc:
          format: date-time
          description: Registration create date time (in UTC).
          type: string
          readOnly: true
        assignedHub:
          description: Assigned Azure IoT Hub.
          type: string
          readOnly: true
        deviceId:
          description: Device ID.
          type: string
          readOnly: true
        status:
          description: Enrollment status.
          enum:
          - unassigned
          - assigning
          - assigned
          - failed
          - disabled
          type: string
          readOnly: true
        substatus:
          description: 'Substatus for ''Assigned'' devices. Possible values include - ''initialAssignment'': Device has been assigned to an IoT hub for the first time, ''deviceDataMigrated'': Device has been assigned to a different IoT hub and its device data was migrated from the previously assigned IoT hub. Device data was removed from the previously assigned IoT hub, ''deviceDataReset'':  Device has been assigned to a different IoT hub and its device data was populated from the initial state stored in the enrollment. Device data was removed from the previously assigned IoT hub, ''reprovisionedToInitialAssignment'': Device has been re-provisioned to a previously assigned IoT hub.'
          enum:
          - initialAssignment
          - deviceDataMigrated
          - deviceDataReset
          - reprovisionedToInitialAssignment
          type: string
          readOnly: true
        errorCode:
          format: int32
          description: Error code.
          type: integer
          readOnly: true
        errorMessage:
          description: Error message.
          type: string
          readOnly: true
        lastUpdatedDateTimeUtc:
          format: date-time
          description: Last updated date time (in UTC).
          type: string
          readOnly: true
        etag:
          description: The entity tag associated with the resource.
          type: string
          readOnly: true
        payload:
          description: Custom allocation payload returned from the webhook to the device.
          type: object
          readOnly: true
    ProvisioningServiceErrorDetails:
      description: Contains the properties of an error returned by the Azure IoT Hub Provisioning Service.
      type: object
      properties:
        errorCode:
          format: int32
          type: integer
        trackingId:
          type: string
        message:
          type: string
        info:
          type: object
          additionalProperties:
            type: string
        timestampUtc:
          format: date-time
          type: string
  parameters:
    ApiVersionParameter:
      name: api-version
      in: query
      description: 'The API version to use for the request. Supported versions include: 2021-10-01'
      required: true
      schema:
        type: string
        default: '2021-10-01'