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

# Get a mock API's versions

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

## Response `200`

200 response

- VersionHistoryCommits
  - `versionCommits` 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
  - `meta` PaginationMeta, required
    - `start` integer, required — The starting index of the current page
    - `end` integer, required — The ending index of the current page
    - `total` integer, required — The total number of items available
    - `page` integer, required — The current page number
    - `totalPages` integer, required — The total number of pages available
  - `links` PaginationLinks, required
    - `self` string, required — URL path to the user's APIs with optional query parameters

## 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)
