---
title: "List artifact versions"
method: GET
path: "/groups/{groupId}/artifacts/{artifactId}/versions"
tags: ["Versions"]
---

# List artifact versions

`GET /groups/{groupId}/artifacts/{artifactId}/versions`

## Request

- The document declares no server URL.
- Auth: none declared

Returns a list of all versions of the artifact.  The result set is paged.

This operation can fail for the following reasons:

* No artifact with this `artifactId` exists (HTTP error `404`)
* A server error occurred (HTTP error `500`)

## Query parameters

- `offset` integer
- `limit` integer

## Response `200`

List of all artifact versions.

- VersionSearchResults: Describes the response received when searching for artifacts.
  - `count` integer, required: The total number of versions that matched the query (may be more than the number of versions returned in the result set).
  - `versions` SearchedVersion[], required: The collection of artifact versions returned in the result set.
    - `name` string
    - `description` string
    - `createdOn` string, date-time, required
    - `createdBy` string, required
    - `type` string, required
    - `labels` string[]
    - `state` 'ENABLED' | 'DISABLED' | 'DEPRECATED', required: Describes the state of an artifact or artifact version. The following states are possible: * ENABLED * DISABLED * DEPRECATED
    - `globalId` integer, required
    - `version` string, required
    - `properties` Properties: User-defined name-value pairs. Name and value must be strings.
    - `contentId` integer, required
    - `references` ArtifactReference[], required
      - `groupId` string, required
      - `artifactId` string, required
      - `version` string
      - `name` string, required

## Other responses

- `401`: Common response for all operations that can return a `401` error indicating authentication is required.
- `403`: Common response for all operations that can return a `403` error indicating the user is authenticated but not authorized.
- `404`: Common response for all operations that can return a `404` error.
- `500`: Common response for all operations that can fail with an unexpected server error.

## Changes

> 65 revisions in range; 1 not diffed.

- **2022-11-24** (v2) `29b79a1c2c74`: 10 info
  - removed the `ASYNCAPI` enum value from the `versions/items/type` response property for the response status `200`
  - removed the `AVRO` enum value from the `versions/items/type` response property for the response status `200`
  - removed the `GRAPHQL` enum value from the `versions/items/type` response property for the response status `200`
  - removed the `JSON` enum value from the `versions/items/type` response property for the response status `200`
  - …6 more
- **2022-03-22** (v2) `c7368363b270`: 1 info
  - added the required property `versions/items/references` to the response with the `200` status
- **2021-03-25** (v2) `e26e4a280eb6`: 1 info
  - removed the `PROTOBUF_FD` enum value from the `versions/items/type` response property for the response status `200`
- **2021-03-19** (v2) `7c597d58bbdb`: 1 breaking
  - the `versions/items/version` response's property type changed from `integer` to `string`, and format from `int64` to no format for status `200`

[Operation history](https://skmtc.dev/apicurio/apis/apicurio-registry-api-v2/changes/groups/:groupId/artifacts/:artifactId/versions/get.md)

---

[API](https://skmtc.dev/apicurio/apis/apicurio-registry-api-v2.md) - [All operations](https://skmtc.dev/apicurio/apis/apicurio-registry-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/apicurio/apis/apicurio-registry-api-v2/revisions/8c48f413fa1f?raw)
