---
title: "Lists the Component versions based on the specified Component Id"
method: GET
path: "/components/{component_id}/versions"
tags: ["components"]
---

# Lists the Component versions based on the specified Component Id

`GET /components/{component_id}/versions`

The component should be accessible to the client (e.g. component from the own Contract or shared one).

## Path parameters

- `component_id` string, required

## Response `200`

OK

- object
  - `data` object[], required
    - `id` string, required
    - `type` 'version', required
    - `links` object, required
      - `self` string, required
    - `attributes` object, required
      - `date` integer, required — The unix time stamp
      - `version_number` string, required
    - `relationships` object, required
      - `descriptor` object, required
        - `data` object, required
          - `id` string, required
          - `type` 'descriptor', required
        - `links` object, required
          - `self` string, required
      - `component` object, required
        - `data` object, required
          - `id` string, required
          - `type` 'component', required
        - `links` object, required
          - `self` string, required
  - `meta` object, required
  - `links` object, required
    - `self` string, required

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.net/elastic/apis/elastic-io-rest-api-documentation-v2.md) · [All operations](https://skmtc.net/elastic/apis/elastic-io-rest-api-documentation-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elastic/elastic-io-rest-api-documentation-v2/revisions/411f9f98c01e/schema)
