---
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`

## Request

- Base URL: `https://wmc.wiremockapi.cloud`
- URL: `https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/version-history/commits`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/wiremock/apis/wiremock-cloud/docs/v1/mock-apis/:mockApiId/version-history/commits/get.ts> (a function with typed inputs; its response is checked against the schema)

## 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.dev/wiremock/apis/wiremock-cloud.md) - [All operations](https://skmtc.dev/wiremock/apis/wiremock-cloud/llms.txt) - [OpenAPI document](https://skmtc.dev/wiremock/apis/wiremock-cloud/revisions/93bebefc672f?raw)
