Query API reference

Exact public analytics query request, filter value shapes, response columns, rows, metadata, and errors.

Last verified 2026-08-02
POSThttps://query.reportplane.com/query

The endpoint supports direct browser requests from any origin. CORS preflight allows Authorization and Content-Type without enabling credentialed cookies. A browser-visible Runtime API Key should be dedicated to query access and restricted to the minimum required Analytics APIs and filters. Send it as Authorization: ApiKey rp_ak_...; reserve the Bearer scheme for runtime JWTs.

Request body

FieldTypeRequiredDescription
analyticsstringYesAnalytics API key or supported internal reference
queryobjectYesCaller-controlled query values allowed by the definition
query.parametersobjectNoValues for supported definition parameters
query.filtersarrayNoAllowed runtime filters
query.limitpositive integerNoRequested bound; effective rows use the lowest request, definition, binding, and 100,000-row server limit

Filter object:

FieldTypeRequired
fieldstringYes
operatorstringYes
valuedepends on operatorExcept exists

between uses { "from": value, "to": value }. in, not_in, contains_any, and contains_all use a non-empty array. exists does not require a value.

Success response

The standard data object contains:

FieldTypeDescription
columnsarrayOutput names and warehouse-neutral types
rowsarray of objectsNormalized query results
result_metadataobjectRenderer-neutral roles and chart suggestions

Resolution and access

The runtime resolves analytics inside the authenticated client's project, verifies the client's allowlist against the requested reference and resolved ID/key, then validates and executes the saved definition.

Error statuses

  • 400: invalid body, unknown analytics reference in the project, invalid filter, incompatible type, or execution/planning error;
  • 401: authentication failed;
  • 403: identity binding or allowed-analytics policy failed.

Generated contract

Generate resource-specific OpenAPI with allowed filters and response shape from the Analytics API detail page in the console. OpenAPI generation is not part of Management API v1.

Was this page helpful?Send feedback