Skip to main content
POST

Authorizations

x-api-key
string
header
required

Your Upstack API key. Starts with upstack_.

x-pixel-id
string
header
required

The pixel id the request targets.

Body

application/json
pixelId
string
required

Must match the x-pixel-id header (403 if it doesn't).

granularity
enum<string>
required
Available options:
none,
second,
minute,
hour,
day,
week,
month,
quarter,
year
measures
object[]
required
Required array length: 1 - 30 elements
dateRange
object
required
dimensions
string[]
Maximum array length: 5

Dimension id (see Measures & Dimensions).

filters
All of (and) · object

Canonical filter applied to the query. Discover valid fields with GET /api/filters.

compareDateRange
object

Optional comparison period. Must not overlap dateRange; the server picks the preceding period if omitted (and granularitynone).

timezone
string

IANA timezone (e.g. America/New_York).

currency
string
default:USD

ISO 4217 code to convert money measures to (e.g. EUR). Each amount converts at the rate for the day it occurred, so historical results stay stable across reruns. Defaults to USD when omitted — if your store sells in another currency, pass this explicitly.

orderSettings
object

Order-level query settings — exclusion filters, pending/voided handling.

Response

Query results.

results
object[]
required