Execute workbook query and retrieve results
Can be either an Organization API Key or Personal Access Token (PAT).
Include in the Authorization header as: Bearer YOUR_TOKEN
Executes the query as the specified user. If not provided, the API uses the user associated with the API token. The userId must belong to a user in your organization.
Optional cache policy to control how query caching behaves. Must be one of:
Standard - Uses standard caching behaviorSkipRequery - Uses cached results if available, but does not requery if not foundSkipCache - Bypasses cache and always executes a fresh queryStandard, SkipRequery, SkipCache Cannot be used with planOnly. Specifies the format of query results exported by the API.
If omitted, the API will return results in a base-64 encoded format.
csv, json, xlsx Cannot be used with resultType. If true, the API will return the query execution plan without running the query. The response will include the generated SQL and query metadata.
Applicable only if resultType is specified. If true, formatting will be applied to numeric and currency values in the form of currency symbols and thousand separators.
Successful responses will contain the following:
jobs_submitted propertyjob_id, status, and the provided query. Note: If planOny: true was included in the request body, the status will be PLANNED.result property, which contains the query results as a base64 encoded Apache Arrow table. At this point, you can use something like Omni Python SDK to decode and validate the results.