> ## Documentation Index
> Fetch the complete documentation index at: https://docs.open-metadata.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve a Chart

> Get a chart by ID or fully qualified name

# Retrieve a Chart

Get a single chart by its unique ID or fully qualified name.

## Get by ID

<ParamField path="id" type="string" required>
  UUID of the chart to retrieve.
</ParamField>

<ParamField query="fields" type="string">
  Comma-separated list of fields to include (e.g., `owners,tags,followers,votes,extension,domains,sourceHash`).
</ParamField>

<ParamField query="include" type="string" default="non-deleted">
  Include `all`, `deleted`, or `non-deleted` entities.
</ParamField>

## Get by Fully Qualified Name

Use `GET /v1/charts/name/{fqn}` to retrieve by fully qualified name.

<ParamField path="fqn" type="string" required>
  Fully qualified name of the chart (e.g., `sample_superset.114`).
</ParamField>

<ParamField query="fields" type="string">
  Comma-separated list of fields to include: `owners`, `tags`, `followers`, `votes`, `extension`, `domains`, `sourceHash`.
</ParamField>

<ParamField query="include" type="string" default="non-deleted">
  Include `all`, `deleted`, or `non-deleted` entities.
</ParamField>

<RequestExample dropdown>
  ```python GET /v1/charts/{id} theme={null}
  from metadata.sdk import configure
  from metadata.sdk.entities import Charts

  configure(
      host="https://your-company.open-metadata.org/api",
      jwt_token="your-jwt-token"
  )

  # Get by ID
  chart = Charts.retrieve("2dde4b53-a577-424b-bbaa-18ac32eca8a9")
  print(f"{chart.fullyQualifiedName}: {chart.displayName}")

  # Get by ID with fields
  chart = Charts.retrieve(
      "2dde4b53-a577-424b-bbaa-18ac32eca8a9",
      fields=["owners", "tags"]
  )

  # Get by fully qualified name
  chart = Charts.retrieve_by_name("sample_superset.114")

  # Get by name with fields
  chart = Charts.retrieve_by_name(
      "sample_superset.114",
      fields=["owners", "tags", "domains"]
  )
  ```

  ```java GET /v1/charts/{id} theme={null}
  import static org.openmetadata.sdk.fluent.Charts.*;

  // Get by ID
  var chart = Charts.retrieve("2dde4b53-a577-424b-bbaa-18ac32eca8a9");

  // Get by ID with fields
  var chart = Charts.retrieve(
      "2dde4b53-a577-424b-bbaa-18ac32eca8a9",
      "owners,tags"
  );

  // Get by fully qualified name
  var chart = Charts.retrieveByName("sample_superset.114");

  // Get by name with fields
  var chart = Charts.retrieveByName(
      "sample_superset.114",
      "owners,tags,domains"
  );
  ```

  ```bash GET /v1/charts/{id} theme={null}
  # Get by ID
  curl "{base_url}/api/v1/charts/2dde4b53-a577-424b-bbaa-18ac32eca8a9" \
    -H "Authorization: Bearer {access_token}"

  # Get by ID with fields
  curl "{base_url}/api/v1/charts/2dde4b53-a577-424b-bbaa-18ac32eca8a9?fields=owners,tags,domains" \
    -H "Authorization: Bearer {access_token}"

  # Get by fully qualified name
  curl "{base_url}/api/v1/charts/name/sample_superset.114" \
    -H "Authorization: Bearer {access_token}"

  # Get by name with fields
  curl "{base_url}/api/v1/charts/name/sample_superset.114?fields=owners,tags,domains" \
    -H "Authorization: Bearer {access_token}"
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "id": "2dde4b53-a577-424b-bbaa-18ac32eca8a9",
    "name": "114",
    "displayName": "# of Games That Hit 100k in Sales By Release Year",
    "fullyQualifiedName": "sample_superset.114",
    "chartType": "Other",
    "version": 0.1,
    "updatedAt": 1769982666218,
    "updatedBy": "admin",
    "sourceUrl": "http://localhost:808/explore/?slice_id=114",
    "service": {
      "id": "b1e6a71d-7f47-4e5f-8ce0-e6e8a88ec97a",
      "type": "dashboardService",
      "name": "sample_superset",
      "fullyQualifiedName": "sample_superset",
      "deleted": false
    },
    "serviceType": "Superset",
    "href": "http://localhost:8585/api/v1/charts/2dde4b53-a577-424b-bbaa-18ac32eca8a9",
    "deleted": false,
    "owners": [],
    "tags": [],
    "followers": [],
    "votes": {
      "upVotes": 0,
      "downVotes": 0
    },
    "domains": []
  }
  ```
</ResponseExample>

***

## Returns

Returns a chart object with all requested fields populated.

## Response

<ResponseField name="id" type="string">
  Unique identifier for the chart (UUID format).
</ResponseField>

<ResponseField name="name" type="string">
  Chart name.
</ResponseField>

<ResponseField name="fullyQualifiedName" type="string">
  Fully qualified name in format `service.chartName`.
</ResponseField>

<ResponseField name="displayName" type="string">
  Human-readable display name.
</ResponseField>

<ResponseField name="description" type="string">
  Description of the chart in Markdown format.
</ResponseField>

<ResponseField name="chartType" type="string">
  Type of chart visualization.
</ResponseField>

<ResponseField name="service" type="object">
  Reference to the parent dashboard service.

  <Expandable title="properties">
    <ResponseField name="id" type="string">
      UUID of the dashboard service.
    </ResponseField>

    <ResponseField name="type" type="string">
      Type of entity (always `dashboardService`).
    </ResponseField>

    <ResponseField name="name" type="string">
      Name of the dashboard service.
    </ResponseField>

    <ResponseField name="fullyQualifiedName" type="string">
      Fully qualified name of the dashboard service.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="sourceUrl" type="string">
  URL of the chart in the source system.
</ResponseField>

<ResponseField name="serviceType" type="string">
  Type of dashboard service (e.g., Superset, Looker, Tableau).
</ResponseField>

<ResponseField name="version" type="number">
  Version number for the entity.
</ResponseField>

<ResponseField name="owners" type="array" optional>
  List of owners. Only included when `fields` contains `owners`.
</ResponseField>

<ResponseField name="tags" type="array" optional>
  Classification tags. Only included when `fields` contains `tags`.
</ResponseField>

<ResponseField name="domains" type="array" optional>
  Domain assignments. Only included when `fields` contains `domains`.
</ResponseField>

***

## Error Handling

| Code  | Error Type     | Description                               |
| ----- | -------------- | ----------------------------------------- |
| `401` | `UNAUTHORIZED` | Invalid or missing authentication token   |
| `403` | `FORBIDDEN`    | User lacks permission to view this chart  |
| `404` | `NOT_FOUND`    | Chart with given ID or FQN does not exist |
