POST /api/query-channel-details. See
List channel entities
for the full request and response reference.
The grain is controlled by --dimensions:
- omit it for account grain (the default; one row per ad account across every connected platform — Facebook, Google, TikTok),
- pass exactly one of
campaign,adset, oradfor that grain.
--date-start / --date-end are omitted, the response is an
entity-only listing (no metric aggregation). To scope by ad platform, use a
canonical filter on channel.resource_source (not a dimension).
Usage
Required flags
Optional flags
See
upstack query for the shared output /
from-file flags.
Response shape
The response has aresults array (not rows). Each element is one entity
row keyed by the grain — top-level account/accountName,
campaign/campaignName, adset/adsetName, or ad/adName — plus a
basicDetails snapshot. data.primary / data.compare carry the metric
series only when --measures was provided; entities with no data in the
period return an empty data.primary array rather than zero-filled buckets.
Examples
See also
upstack filters— discover valid filter fields, operators, and applicable contexts (everychannel.*field is valid here).upstack measures— list measure ids available across all query endpoints.