Skip to main content
POST
Preview a view

Authorizations

Authorization
string
header
required

A project key (Developers → API keys). Keep it on your server, not in an app.

Headers

traceparent
string

W3C Trace Context; joins your trace to ours

Body

application/json
definition
object
required

The question: whose numbers, what to count, over which range, as which shape

compare
boolean

Also answer for the span of the same length just before

Response

Preview a view

period
object
required

A date range: from is inclusive, to is exclusive

compared_with
object
required

A date range: from is inclusive, to is exclusive

series
object[]
required

One entry for each measure, in the order asked

rows
object[]
required

Empty unless the shape is list

total_rows
integer | null
required

How many rows a list has in all

Required range: x >= 0
computed_at
string<date-time>
required

When this answer was computed

steps
object[] | null
required

Set for a funnel