Skip to main content
GET
Get a chart's data

Authorizations

next-auth.session-token
string
cookie
required

NextAuth session JWT cookie. Development: often next-auth.session-token. Production (HTTPS): often __Secure-next-auth.session-token. Send the cookie your browser receives after sign-in.

Path Parameters

chartId
string<cuid2>
required

Chart identifier.

Query Parameters

dateRange
string

A date preset from the field catalog's datePresets, or all-time, replacing the chart's saved range. Not together with from/to.

Maximum string length: 64
from
string<date>

First day of a custom range (inclusive). Requires to.

to
string<date>

Last day of a custom range (inclusive). Requires from.

Response

The chart's rows

data
object
required

What a chart query returns: one row per group, keyed by field name, the label maps to display stored ids with, and the query as it ran.