POST/GET requests

Run your queries asynchronously

Introduction

The Explorer API allows you to

Create a new asynchronous query run

Request fields

Field nameDescription

parameters

Key-value map of parameter names and their respective values.

run_config

Query run configuration to use when creating the query run.

run_config.limit

The query row limit to use for this query run.

Example

curl -X 'POST' \
  'https://api.allium.so/api/v1/explorer/queries/{query_id}/run-async' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'X-API-KEY: <YOUR API KEY>' \
  -d '{
  "parameters": {},
  "run_config": {
    "limit": 1000,
  }
}'

Retrieve the latest query run information for a query

Retrieve the status of a query run

Possible query run statuses

StatusDescription

created

Query has been created.

queued

Query has been queued for execution.

running

Query is currently executing.

success

Query has successfully executed.

failed

Query execution failed.

canceled

Query was canceled, likely due to user action.

Retrieve the results of a query run

The query run result will have the following fields:

Field nameDescription

sql

The SQL query executed in the request

data

The results of the query encoded as a list of JSON objects

meta

Metadata about the results.

meta.columns

List of the data's column names and types.

queried_at

The timestamp at which the query was executed

Cancel a query run

Last updated