---
title: "Get dashboard YAML"
method: GET
path: "/internal/v1/dashboards/{project_id}/{dashboard_id}/yaml"
tags: ["Dashboards"]
---

# Get dashboard YAML

`GET /internal/v1/dashboards/{project_id}/{dashboard_id}/yaml`

## Request

- Base URL: `https://api.uptrace.dev`
- URL: `https://api.uptrace.dev/internal/v1/dashboards/{project_id}/{dashboard_id}/yaml`
- Auth: one of:
  - HTTP bearer
  - API key in query parameter `auth_token`
- TypeScript: <https://skmtc.dev/uptrace/apis/uptrace-json-api/docs/internal/v1/dashboards/:project_id/:dashboard_id/yaml/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieve the YAML representation of a dashboard.

## Path parameters

- `project_id` integer, required
- `dashboard_id` integer, required

## Response `200`

Dashboard YAML.

## Other responses

- `400`: Invalid request
- `401`: Authentication required
- `403`: Insufficient permissions
- `404`: Resource not found
- `500`: Internal server error

---

[API](https://skmtc.dev/uptrace/apis/uptrace-json-api.md) - [All operations](https://skmtc.dev/uptrace/apis/uptrace-json-api/llms.txt) - [OpenAPI document](https://skmtc.dev/uptrace/apis/uptrace-json-api/revisions/550c8881ab9a?raw)
