---
title: "Retrieve snippet versions"
method: GET
path: "/snippets/{id}/version"
tags: ["Snippet"]
---

# Retrieve snippet versions

`GET /snippets/{id}/version`

Used to retrieve a list of snippet versions

## Path parameters

- `id` string, required

## Response `200`

The snippet variant versions

- VariantVersionQueryResult
  - `invariant_id` string — Object ID for the parent type. Set by system.
  - `latest_version` integer — The generation number of this variant
  - `versions` VariantVersion[] — The versions for this entity.
    - `variant_id` string — Object ID for the parent type. Set by system.
    - `version` integer — The generation number of this variant
    - `previous_version` integer — The generation number of the variant that was edited to create this variant (if applicable)
    - `merged_version` integer — The generation number of the variant that was merged with the previous version to create this variant (if applicable)
    - `next_versions` integer[] — An array of generation numbers for the variants that were edited over this variant (if applicable)
    - `created_on_branch` string — Name of the branch the variant was created on
    - `change_description` string — Description of the change between this variant and the previous variant
    - `source_control_tags` string[] — An array of source control tags that apply to this variant version
    - `created_time` integer — Time at which the variant was created
    - `created_by_id` string — The ID of the user who created this variant
  - `cursor` string — Cursor used for pagination

## Other responses

- `404` — Snippet not found
- `default` — Unknown error

---

[API](https://skmtc.net/mabl/apis/mabl-api.md) · [All operations](https://skmtc.net/mabl/apis/mabl-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mabl/mabl-api/revisions/d0fc0114da66/schema)
