---
title: "Retrieves an share by its id"
method: GET
path: "/componentmetadata/shares/{id}"
tags: ["component-metadata - shares"]
---

# Retrieves an share by its id

`GET /componentmetadata/shares/{id}`

## Path parameters

- `id` integer, required

## Response `200`

successful operation

- Share — Share Model
  - `id` integer — the share id
  - `shareToId` integer — the id of the user/group the component is shared with
  - `shareToType` string — the type of entity shared with (user/group/all)
  - `shareToDisplayName` string — full name of the entity shared with
  - `componentType` string — the type of component being shared
  - `componentId` string — the id of the component being shared
  - `accessLevel` string — Level of rights shared with entity. (for projects only)

## Other responses

- `404` — Unable to find a share with the given ID
- `500` — Unexpected server error while trying to retrieve share

## Changes

- **2022-05-10** `dcd4514630c4` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/adobe/apis/adobe-analytics-apis/changes/componentmetadata/shares/:id/get.md)

---

[API](https://skmtc.dev/adobe/apis/adobe-analytics-apis.md) · [All operations](https://skmtc.dev/adobe/apis/adobe-analytics-apis/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/adobe/adobe-analytics-apis/revisions/dcd4514630c4/schema)
