---
title: "GET /operations/{operationId}"
method: GET
path: "/operations/{operationId}"
---

# GET /operations/{operationId}

`GET /operations/{operationId}`

Gets operation info.

## Path parameters

- `operationId` string, required

## Query parameters

- `api-version` string, required

## Headers

- `x-ms-client-request-id` string, uuid

## Response `200`

The request has succeeded.

- DocumentModelBuildOperationDetails — Operation info.
  - `operationId` string, required — Operation ID
  - `status` 'notStarted' | 'running' | 'failed' | 'succeeded' | 'canceled' | 'skipped', required — Operation status.
  - `percentCompleted` integer — Operation progress (0-100).
  - `createdDateTime` string, date-time, required — Date and time (UTC) when the operation was created.
  - `lastUpdatedDateTime` string, date-time, required — Date and time (UTC) when the status was last updated.
  - `kind` 'documentModelBuild' | 'documentModelCompose' | 'documentModelCopyTo' | 'documentClassifierCopyTo' | 'documentClassifierBuild', required — Type of operation.
  - `resourceLocation` string, uri, required — URL of the resource targeted by this operation.
  - `apiVersion` string — API version used to create this operation.
  - `tags` object — List of key-value tag attributes associated with the document model.
  - `error` DocumentIntelligenceError — The error object.
    - `code` string, required — One of a server-defined set of error codes.
    - `message` string, required — A human-readable representation of the error.
    - `target` string — The target of the error.
    - `details` DocumentIntelligenceError[] — An array of details about specific errors that led to this reported error.
    - `innererror` DocumentIntelligenceInnerError — An object containing more specific information about the error.
      - `code` string — One of a server-defined set of error codes.
      - `message` string — A human-readable representation of the error.
      - `innererror` DocumentIntelligenceInnerError — recursive

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/azure/apis/ai-documentintelligence.md) · [All operations](https://skmtc.net/azure/apis/ai-documentintelligence/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/ai-documentintelligence/versions/3f750834da9e/schema)
