POST /v1/data/query returns live metric values from one of a client’s connected data sources. It’s the same call that powers every chart and KPI widget in the app, exposed for your own automations.
This endpoint proxies to Oviond’s datasource service. It reads a data source the client has already connected in the app — it does not create or authorize connections. Connect a source in the project editor first.
Request
Response
data.current— the rows for the current range (one perdimensionsbucket, keyed by your metric and dimension identifiers).data.currentSummary— the totals across the current range.data.previous/data.previousSummary— the same for the comparison period, when you passprevious_start/previous_end(empty otherwise).data.state—ACTIVEwhen the connection returned data.
data_view.
Finding valid identifiers
The validdatasource_id, metrics, dimensions, and data_view values are all discoverable — you never have to guess. Walk the field catalog:
1. Find the datasource_id — list every datasource Oviond supports:
ids you pass to the query:
id, name, data_view, and group:
?data_view=ACCOUNT to filter to one view. Use each id as an entry in metrics / dimensions, and its data_view as data_view.
Other helpful endpoints:
GET /v1/clients/{id}/datasources— which sources a specific client has connected.POST /v1/data/resource— selectable sub-resource values (campaigns, ad sets, videos) for filters.