---
title: "Get a chart query"
method: GET
path: "/v1/internal/dashboard-saved-queries/{id}"
tags: ["Dashboard saved queries"]
---

# Get a chart query

`GET /v1/internal/dashboard-saved-queries/{id}`

## Request

- Base URL: `http://localhost:5173/api`
- URL: `http://localhost:5173/api/v1/internal/dashboard-saved-queries/{id}`
- Auth: none declared

Gets a dashboard saved query by id.

## Path parameters

- `id` string, uuid, required

## Response `200`

Dashboard saved query

- DashboardSavedQuery
  - `id` string, uuid
  - `project_id` string, uuid: Project the query is bounded to. Omit for every project in the workspace.
  - `sql` string, required
  - `created_at` string, date-time
  - `created_by` string

## Other responses

- `404`: Not found
- `501`: Ollie or Custom Charts is not enabled for this workspace

## Changes

- **2026-10-14** `1becf60bcc5e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/comet-ml/apis/opik-rest-api/changes/v1/internal/dashboard-saved-queries/:id/get.md)

---

[API](https://skmtc.dev/comet-ml/apis/opik-rest-api.md) - [All operations](https://skmtc.dev/comet-ml/apis/opik-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/comet-ml/apis/opik-rest-api/revisions/0067fada8962?raw)
