Skip to main content
POST
/
query
/
batch
cURL
curl --request POST \
  --url https://{axiom-domain}/v1/query/batch \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "queryId": "<string>",
    "aplRequest": {
      "apl": "<string>",
      "cursor": "<string>",
      "defaultLimit": 123,
      "defaultOrder": [
        {
          "desc": true,
          "field": "<string>"
        }
      ],
      "endTime": "<string>",
      "includeCursor": true,
      "includeCursorField": true,
      "libraries": [
        "<string>"
      ],
      "maxBinAutoGroups": 123,
      "queryOptions": {
        "against": "<string>",
        "againstStart": "<string>",
        "againstTimestamp": "<string>",
        "aggChartOpts": "<string>",
        "caseSensitive": "<string>",
        "containsTimeFilter": "<string>",
        "datasets": "<string>",
        "displayNull": "<string>",
        "editorContent": "<string>",
        "endColumn": "<string>",
        "endLineNumber": "<string>",
        "endTime": "<string>",
        "integrationsFilter": "<string>",
        "nanosecondPrecision": "<string>",
        "openIntervals": "<string>",
        "overlayCharts": "<string>",
        "queryObject": "<string>",
        "quickRange": "<string>",
        "resolution": "<string>",
        "resultsHistogram": "<string>",
        "selection": "<string>",
        "shownColumns": "<string>",
        "startColumn": "<string>",
        "startLineNumber": "<string>",
        "startTime": "<string>",
        "timeSeriesVariant": "<string>",
        "timeSeriesView": "<string>"
      },
      "queryRegion": "<string>",
      "startTime": "<string>",
      "variables": {}
    }
  }
]
'
{
  "code": 123,
  "detail": {
    "column": 123,
    "compileErrorCode": 1,
    "errorType": 1,
    "line": 123,
    "message": "<string>"
  },
  "message": "<string>"
}
Use this endpoint to query data from a specific edge deployment. The data you query must be stored in the edge deployment where you query it. For more information, see Query data and Edge deployments.The base domain for this endpoint is the base domain of the edge deployment where you want to query data.
Edge deploymentBase domain for ingest and query
US East 1 (AWS)us-east-1.aws.edge.axiom.co
EU Central 1 (AWS)eu-central-1.aws.edge.axiom.co
This endpoint only supports API tokens. Personal access tokens (PATs) aren’t supported. For more information, see Tokens.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Query Parameters

maxConcurrency
integer
default:10

Maximum number of concurrent queries to execute

Required range: 1 <= x <= 20
nocache
boolean
default:false

Whether to bypass cache for all queries in the batch

apl-source
string

Contains the source of the APL query (for example console, dashboard, etc.)

apl-source-id
string

Contains the id of the source, for example dashboard_id

Body

application/json
queryId
string
required

Unique identifier for this query in the batch

aplRequest
object

Response

SSE stream of query results