---
title: "Retrieve query results"
method: GET
path: "/api/v1/queries/{jobId}"
tags: ["Queries"]
---

# Retrieve query results

`GET /api/v1/queries/{jobId}`

Retrieve the status and results of a CQL query

## Path parameters

- `jobId` string, required — jobId of the query to retrieve

## Response `200`

Successfully found query

- QueryBuilderResult
  - `progress` number
  - `queryDetails` QueryResponse, required
    - `initiatedAt` string, date-time, required
    - `jobId` string, required — Id that can be used to request the status of the query. If you would like to re-run the query, you must re-run the query in the UI. See [retrieve query results](/api/readme/queries#retrieve-query-results)
    - `query` string, required
  - `result` QueryResult[]
    - `description` string
    - `name` string, required
    - `tag` string, required
    - `type` string, required
  - `status` 'IN_PROGRESS' | 'DONE' | 'CANCELLED' | 'FAILURE' | 'TIMED_OUT', required

## Other responses

- `404` — Query not found
- `429` — The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.

---

[API](https://skmtc.dev/cortex/apis/cortex-api.md) · [All operations](https://skmtc.dev/cortex/apis/cortex-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cortex/cortex-api/revisions/141799a965b4/schema)
