Skip to main content
GET
/
v0
/
boards
/
{boardId}
/
charts
List charts for a board
curl --request GET \
  --url https://api.formo.so/v0/boards/{boardId}/charts \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.formo.so/v0/boards/{boardId}/charts"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.formo.so/v0/boards/{boardId}/charts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.formo.so/v0/boards/{boardId}/charts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.formo.so/v0/boards/{boardId}/charts"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "Bearer <token>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.formo.so/v0/boards/{boardId}/charts")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.formo.so/v0/boards/{boardId}/charts")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "data": [
    {
      "id": "cht_x1y2z3a4b5c6",
      "project_id": "proj_abc123",
      "board_id": "brd_a1b2c3d4e5f6",
      "chart_type": "line",
      "title": "Daily revenue (last 30 days)",
      "description": null,
      "query": "SELECT toDate(timestamp) AS day, sum(revenue) AS revenue FROM events WHERE event = 'transaction' AND timestamp >= now() - INTERVAL 30 DAY GROUP BY day ORDER BY day",
      "x_axis": "day",
      "y_axis": [
        "revenue"
      ],
      "group_by": null,
      "steps": null,
      "settings": null
    }
  ],
  "page": 1,
  "size": 100,
  "total": 1,
  "has_more": false,
  "board": {
    "id": "brd_a1b2c3d4e5f6",
    "project_id": "proj_abc123",
    "title": "Revenue Dashboard",
    "description": "Weekly revenue, conversion, and retention metrics.",
    "enabled": false
  }
}

Authorizations

Authorization
string
header
required

Workspace API key (e.g. formo_xxx). Create one in the Formo dashboard under Team Settings > API Keys.

Path Parameters

boardId
string
required

Query Parameters

page
integer
default:1

1-indexed page number. Defaults to 1.

Required range: x >= 1
size
integer
default:100

Page size. Defaults to 100, capped at 200.

Required range: 1 <= x <= 200

Response

200 - application/json

Paginated charts plus parent board and any partial-failure warnings

Pagination cursor returned alongside data on every paginated list endpoint. Use these to walk pages: has_more is true while page * size < total. Combine with the matching Page and Size query parameters to request the next page.

page
integer
required

1-indexed page number echoed from the request.

size
integer
required

Page size echoed from the request.

total
integer
required

Total row count across all pages.

has_more
boolean
required

True when more pages remain (page * size < total).

data
object[]
required
board
object
required
warnings
object

Present only if some charts failed to execute. Failures are excluded from data.