upstack CLI.
Base URL
All endpoints in this reference are relative tohttps://api.upstackdata.com, grouped by service path:
/db-mgmt/api/*— analytics queries and the measures catalog./accounts/api/*— dashboard view management./tr/api/*— server-side event ingestion.
Authentication
Every request carries two headers:
Mint an API key in the dashboard under Settings → API Keys. The raw key is
shown once at creation — store it securely; we keep only a hash.
Scopes
API keys carry one or more scopes. The required scope per endpoint is listed on each endpoint’s page.
The catalogs (
GET /api/measures, GET /api/filters) sit under analytics:read
alongside the query endpoints, so a key that can’t query can’t enumerate what’s
queryable either.
Older keys minted before mid-May 2026 may carry legacy scopes
db_query or
attribution_query. These are auto-expanded to analytics:read at request
time, so existing keys keep working without rotation. Rotate at your
convenience to switch to the modern names.Errors and rate limits
All errors are JSON responses with amessage field and the appropriate status
code. See Errors for the full response shape and status
code reference, and Rate limiting for how
request limits are enforced and how to retry safely.
Quickstart
Discover what measures are available, then build a dashboard from three of them. This needs a key withanalytics:read and dashboards:write.
1
List measures
core.new_customer_roas, core.new_customer_mer, meta.cpm).2
Build a dashboard from those measures
DashboardView with auto-laid-out sparkline widgets.3
Open it in the dashboard
Sign in to app.upstackdata.com and pick the new
view from the view dropdown.
upstack dashboard view build.