Skip to main content
POST
Check and run an unsaved report

Authorizations

Authorization
string
header
required

Supabase JWT — Authorization: Bearer <token>.

Body

application/json
definition
object
required

A custom report: report-wide filters and up to 12 blocks. Read report-catalog first for the dataset, field and measure ids.

Example:
merchant_id
string<uuid>

Optional merchant to act on. Admins and sub-merchant operators only; other callers always use their token's merchant.

filters
object

Applied on top of definition.filters.

block_id
string

Run only this block.

Response

Block results.

filters
object
required

The filters the blocks ran with (report defaults, then your saved filters, then the ones you passed).

blocks
object[]
required
report_id
string<uuid>
title
string
version
integer
{key}
unknown