---
title: "List all versions (listVersions)"
method: GET
path: "/api/entities/vc/version"
tags: ["entities-version-control-controller"]
---

# List all versions (listVersions)

`GET /api/entities/vc/version`

Lists all available versions in a branch for all entity types. 
If specified branch does not exist - empty page data will be returned. The response format is the same as for `listEntityVersions` API method.

Available for users with 'TENANT_ADMIN' authority.

## Query parameters

- `branch` string, required
- `pageSize` integer, required
- `page` integer, required
- `textSearch` string
- `sortProperty` 'timestamp'
- `sortOrder` 'ASC' | 'DESC'

## Response `200`

OK

- PageDataEntityVersion
  - `data` EntityVersion[] — Array of the entities
    - `timestamp` integer
    - `id` string
    - `name` string
    - `author` string
  - `totalPages` integer — Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria
  - `totalElements` integer — Total number of elements in all available pages
  - `hasNext` boolean — 'false' value indicates the end of the result set

---

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