---
title: "GET /models/{id}"
method: GET
path: "/models/{id}"
tags: ["Models"]
---

# GET /models/{id}

`GET /models/{id}`

Retrieves model metadata and optionally the model definition.
Status codes:
* 200 OK
* 400 Bad Request
  * InvalidArgument - The model id is invalid.
  * MissingArgument - The model id was not provided.
* 404 Not Found
  * ModelNotFound - The model was not found.

## Path parameters

- `id` string, required

## Query parameters

- `includeModelDefinition` boolean
- `api-version` string, required

## Response `200`

Success

- DigitalTwinsModelData — A model definition and metadata for that model.
  - `displayName` object — A language map that contains the localized display names as specified in the model definition.
  - `description` object — A language map that contains the localized descriptions as specified in the model definition.
  - `id` string, required — The id of the model as specified in the model definition.
  - `uploadTime` string, date-time — The time the model was uploaded to the service.
  - `decommissioned` boolean — Indicates if the model is decommissioned. Decommissioned models cannot be referenced by newly created digital twins.
  - `model` object — The model definition.

## Other responses

- `default` — Default response.

---

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