---
title: "Execute saved chart query"
method: GET
path: "/v0/boards/{boardId}/charts/{chartId}/query"
tags: ["Charts"]
---

# Execute saved chart query

`GET /v0/boards/{boardId}/charts/{chartId}/query`

## Request

- Base URL: `https://api.formo.so`
- URL: `https://api.formo.so/v0/boards/{boardId}/charts/{chartId}/query`
- Auth: HTTP bearer

Runs the saved chart's query with `{{date_from}}`/`{{date_to}}` substituted from the query parameters; the chart's query must contain both template variables. Dune integration is currently unavailable. Request access at https://formo.so/support to discuss re-enabling it; a configured API key alone does not enable Dune-backed charts.

## Path parameters

- `boardId` string, required
- `chartId` string, required

## Query parameters

- `dateFrom` string, date, required
- `dateTo` string, date, required

## Response `200`

Query result

- object
  - `result` string, required: JSON-encoded query result: `{ meta, data, rows }`.

## Other responses

- `400`: The request was rejected. `code` is either `INVALID_VALIDATION_REQUEST` (Zod schema mismatch; `details` carries a `{ fieldPath: message }` map) or `BAD_REQUEST` (semantic validation failure outside Zod, e.g. mismatched IDs, business-rule violations). Branch on `code`, not status, to tell the two apart.

---

[API](https://skmtc.dev/formo/apis/formo-public-api.md) · [All operations](https://skmtc.dev/formo/apis/formo-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/formo/apis/formo-public-api/revisions/67ada57df63c?raw)
