---
title: "Get a data model"
method: GET
path: "/v2/dataModels/{dataModelId}"
tags: ["Data models"]
---

# Get a data model

`GET /v2/dataModels/{dataModelId}`

## Request

- Base URL: `https://api.sigmacomputing.com`
- URL: `https://api.sigmacomputing.com/v2/dataModels/{dataModelId}`
- Auth: HTTP bearer

Get details of a specific data model by `dataModelId`.

  ### Usage notes
  - Retrieve the **dataModelId** by calling the [/v2/dataModels](https://help.sigmacomputing.com/reference/list-data-models) endpoint.

## Path parameters

- `dataModelId` string, required

## Query parameters

- `excludeTags` boolean

## Response `200`

The response body.

- DataModelsGetDataModelResponse200
  - `dataModelId` string, required: Unique identifier of the data model.
  - `dataModelUrlId` string, required
  - `name` string, required
  - `url` string, required
  - `path` string, required
  - `latestVersion` number, double, required
  - `ownerId` string, required
  - `createdBy` string, required: The identifier of the user who created this object.
  - `updatedBy` string, required: The identifier of the user or process that last updated this object.
  - `createdAt` string, date-time, required: When the object was created.
  - `updatedAt` string, date-time, required: When the object was last updated.
  - `isArchived` boolean
  - `tags` V2DataModelsDataModelIdGetResponsesContentApplicationJsonSchemaTagsItems[]
    - `versionTagId` string, required: Unique identifier of the tag.
    - `tagName` string, required
    - `sourceVersion` number, double, required
    - `taggedAt` string, date-time, required

---

[API](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api.md) - [All operations](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/revisions/fb6036208c49?raw)
