---
title: "Returns the Component descriptor based on the specified Component Id and revision of the component’s build"
method: GET
path: "/components/{component_id}/versions/{git_revision}/descriptor"
tags: ["components"]
---

# Returns the Component descriptor based on the specified Component Id and revision of the component’s build

`GET /components/{component_id}/versions/{git_revision}/descriptor`

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

## Path parameters

- `component_id` string, required
- `git_revision` string, required

## Response `200`

OK

- object
  - `data` object, required
    - `id` string, required
    - `type` 'descriptor', required
    - `links` object, required
      - `self` string, required
    - `attributes` object, required
      - `repo_name` string, required
      - `team_name` string, required
      - `short_revision` string, required
      - `is_latest` boolean, required
      - `description` string, required
      - `icon` string, required — Component icon as base64 string
      - `language` string, required
      - `sailor_version` string, required
      - `title` string, required
      - `triggers` object
    - `relationships` object, required
      - `version` object, required
        - `data` object, required
          - `id` string, required
          - `type` 'version', required
        - `links` object, required
          - `self` string, required
  - `meta` object, 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)
