---
title: "Get Latest Query Run Handler"
method: GET
path: "/api/v1/explorer/query-runs"
---

# Get Latest Query Run Handler

`GET /api/v1/explorer/query-runs`

## Query parameters

- `query_id` string, required

## Response `200`

Successful Response

- QueryRun
  - `run_id` string, required
  - `query_id` string, required
  - `query_config` QueryConfig, required
    - `sql` string, required
    - `limit` integer, required
    - `parameters` object
    - `datastore_to_use` 'snowflake' | 'postgres' — An enumeration.
  - `creator_id` string, required
  - `created_at` string, date-time, required
  - `completed_at` string, date-time
  - `status` 'created' | 'queued' | 'running' | 'success' | 'failed' | 'canceled', required — An enumeration.
  - `stats` QueryRunStats
    - `start_time` string, date-time, required
    - `end_time` string, date-time, required
    - `datastore` 'snowflake' | 'postgres' — An enumeration.
    - `sql` string
    - `row_count` integer
    - `data_size_bytes` integer
  - `error` string
  - `results` QueryRunResults
    - `storage_type` 'gcs', required — An enumeration.
  - `zed_token` string

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/allium/apis/allium-account-api.md) · [All operations](https://skmtc.net/allium/apis/allium-account-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/allium/allium-account-api/versions/6c79c032c85d/schema)
