POST /query/batch
Runs several APL and MPL queries in one request and streams each result as a server-sent event when it completes. Each item sets exactly one of aplRequest or mplRequest; per-item failures, including query limit errors, arrive as error events.
Request
- Base URLhttps://{axiom-domain}/v1
- AuthOAuth 2Authorization codehttps://accounts.google.com/o/oauth2/v2/authToken URLhttps://www.googleapis.com/oauth2/v4/tokenScopesquery|read
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Maximum number of concurrent queries to execute
Whether to bypass cache for all queries in the batch
Contains the source of the APL query (for example console, dashboard, etc.)
Contains the id of the source, for example dashboard_id
Request body
Response
SSE stream of query results. Each event carries a kind field ("apl" or "mpl") indicating how the data payload for that queryId should be interpreted.
Per-item query-limit errors are delivered as SSE error events with status 429, the QueryLimitError body, and X-QueryLimit-* headers.
Changes
No recorded changes to this operation across all 2 revisions of this API.