---
title: "Gets a Snapshot for the resource by snapshot id"
method: GET
path: "/api/v1/models/{id}/snapshots/{snapshotId}"
tags: ["Models"]
---

# Gets a Snapshot for the resource by snapshot id

`GET /api/v1/models/{id}/snapshots/{snapshotId}`

## Request

- Base URL: `/` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/v1/models/{id}/snapshots/{snapshotId}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/usnistgov/apis/dioptra-rest-api/docs/api/v1/models/:id/snapshots/:snapshotId/get.ts> (a function with typed inputs; its response is checked against the schema)

## Headers

- `X-Fields` string, mask

## Response `200`

Success

- SnapshotsIdModelDump
  - `id` integer: ID for the Model resource.
  - `snapshot` integer: ID for the underlying Model snapshot.
  - `group` GroupRef
    - `id` integer: ID for the Group resource.
    - `name` string: Name of the Group resource.
    - `url` string: URL for accessing the full Group resource.
  - `user` UserRefDump
    - `id` integer: ID for the User resource.
    - `username` string: Username of the User resource.
    - `url` string: URL for accessing the full User resource.
  - `createdOn` string, date-time: Timestamp when the Model resource was created.
  - `snapshotCreatedOn` string, date-time: Timestamp when the Model resource snapshot was created.
  - `lastModifiedOn` string, date-time: Timestamp when the Model resource was last modified.
  - `latestSnapshot` boolean: Whether or not the Model resource is the latest version.
  - `hasDraft` boolean: Whether a draft exists for the Model resource.
  - `tags` TagRefDump[]
    - `id` integer: ID for the Tag.
    - `name` string: Name of the Tag.
    - `group` GroupRef
      - `id` integer: ID for the Group resource.
      - `name` string: Name of the Group resource.
      - `url` string: URL for accessing the full Group resource.
    - `url` string: URL for accessing the full Tag.
  - `deleted` boolean: Whether the Model resource has been deleted.
  - `name` string, required: Name of the Model resource.
  - `description` string: Description of the Model resource.
  - `versions` ModelVersionRefDump[]
    - `versionNumber` integer: The version number of the Model.
    - `url` string: URL for accessing the full Model Version.
  - `latestVersion` ModelVersionDump
    - `description` string: Description of the Model Version.
    - `model` ModelRefDump
      - `id` integer: ID for the Model resource.
      - `group` GroupRef
        - `id` integer: ID for the Group resource.
        - `name` string: Name of the Group resource.
        - `url` string: URL for accessing the full Group resource.
      - `url` string: URL for accessing the full Model resource.
      - `deleted` boolean: Whether the Model resource has been deleted.
      - `name` string, required: Name of the Model resource.
    - `artifact` ArtifactRefDump
      - `id` integer: ID for the Artifact resource.
      - `group` GroupRef
        - `id` integer: ID for the Group resource.
        - `name` string: Name of the Group resource.
        - `url` string: URL for accessing the full Group resource.
      - `url` string: URL for accessing the full Artifact Resource.
      - `deleted` boolean: Whether the Artifact resource has been deleted.
    - `versionNumber` integer: The version number of the Model.
    - `createdOn` string, date-time: Timestamp when the Model Version was created.

## Changes

- **2026-09-30** `7615a76631a4`: 9 breaking, 2 warning, 4 info
  - the `group` response's property type changed from `object` to no type for status `200`
  - the `latestVersion` response's property type changed from `object` to no type for status `200`
  - the `latestVersion/allOf[#/components/schemas/ModelVersion-dump]/artifact` response's property type changed from `object` to no type for status `200`
  - the `latestVersion/allOf[#/components/schemas/ModelVersion-dump]/artifact/allOf[#/components/schemas/ArtifactRef-dump]/group` response's property type changed from `object` to no type for status `200`
  - …11 more
- **2026-02-11** `a73101579c5c`: 3 info
  - added the optional property `snapshotCreatedOn` to the response with the `200` status
  - added `#/components/schemas/ArtifactRef-dump` to the `latestVersion/allOf[#/components/schemas/ModelVersion-dump]/artifact` response property `allOf` list for the response status `200`
  - removed `#/components/schemas/ArtifactRef` from the `latestVersion/allOf[#/components/schemas/ModelVersion-dump]/artifact` response property `allOf` list for the response status `200`
- …earlier changes not shown

[Operation history](https://skmtc.dev/usnistgov/apis/dioptra-rest-api/changes/api/v1/models/:id/snapshots/:snapshotId/get.md)

---

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