---
title: "Get all entities in a given version"
method: GET
path: "/v1/mock-apis/{mockApiId}/version-history/commits/{versionCommitId}/items"
tags: ["Mock API versioning"]
---

# Get all entities in a given version

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

## Request

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

## Response `200`

200 response

- VersionHistoryCommitItems
  - `items` VersionHistoryCommitItemData[], required
    - `entityType` 'stub_mapping' | 'settings' | 'grpc_descriptor' | 'graphql_schema' | 'openapi_document': The type of the entity.
    - `entityId` string, nullable: The ID of the entity. This is only relevant for entities of type `stub_mapping`.
    - `links` object
      - `self` string
      - `contents` string
      - `restore` string
  - `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)
