---
title: "Get a version by ID"
method: GET
path: "/v1/mock-apis/{mockApiId}/version-history/commits/{versionCommitId}"
tags: ["Mock API versioning"]
---

# Get a version by ID

`GET /v1/mock-apis/{mockApiId}/version-history/commits/{versionCommitId}`

## Response `200`

200 response

- VersionHistoryCommit
  - `versionCommit` VersionHistoryCommitData, required
    - `id` string, required — The ID of the version.
    - `date` string, required — The date-time that the version was created.
    - `author` object, nullable, required
      - `id` string, required — The ID of the user that created this version.
      - `username` string, required — The username of the user that created this version.
    - `links` object
      - `self` string, required
      - `items` string, required
      - `restore` string, required
      - `changes` string, required

## Other responses

- `403` — 403 Unauthorized response

---

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