Canonical: https://weaveos.com/reference/grafana/read-dashboard-configuration

1. [Software capabilities](https://weaveos.com/reference)
2. /[Grafana](https://weaveos.com/reference/grafana)
3. /Read a Grafana dashboard’s JSON configuration

[![](https://weaveos.com/reference/logos/grafana.svg)Grafana](https://weaveos.com/reference/grafana)

# Read a Grafana dashboard’s JSON configuration

Use Grafana’s Dashboard API to retrieve a versioned dashboard resource. Use the dashboard export menu to download a file for inspection or import.

Documentation reviewed November 27, 2026 · 2 methods with sources

## Ways to do it

1. [1API: GET /apis/dashboard.grafana.app/v1/namespaces/{namespace}/dashboards/{uid}](https://weaveos.com/reference/grafana/read-dashboard-configuration#method-1)
2. [2Interface: Dashboard → Export → Export as code](https://weaveos.com/reference/grafana/read-dashboard-configuration#method-2)

API

### GET /apis/dashboard.grafana.app/v1/namespaces/{namespace}/dashboards/{uid}

Read the dashboard resource, including its metadata and dashboard specification.

[Read source: Grafana Dashboard HTTP API](https://grafana.com/docs/grafana/latest/developer-resources/api-reference/http-api/dashboard/#get-dashboard)

- Requirements

  A Grafana instance that exposes the v1 dashboard resource API, a namespace, and dashboard read permissions. Use a service account token for the documented API example.

- Limitations

  The path’s uid is the dashboard’s metadata.name. The resource has a separate metadata.uid field.

Interface

### Dashboard → Export → Export as code

Open the dashboard and export its JSON for reuse in another Grafana environment.

[Read source: Grafana dashboard export guide](https://grafana.com/docs/grafana/latest/visualizations/dashboards/share-dashboards-panels/#export-a-dashboard-as-code)

- Requirements

  Access to the dashboard in Grafana.

- Limitations

  The portable export can change how data sources are referenced, so verify the data source mappings when importing it on another instance.

## More from Grafana

[View all 1 Grafana tasks](https://weaveos.com/reference/grafana)
