---
title: "Get query result"
method: GET
path: "/evaluate/query/{query_id}"
tags: ["Evaluation"]
---

# Get query result

`GET /evaluate/query/{query_id}`

Retrieve the result of a previous query.

## Path parameters

- `query_id` string, required

## Response `200`

Successful Response

- QueryResult
  - `query_id` string, nullable — The ID of the query. This can be used to retrieve the query later, or add feedback to it. If the query failed, this will be None.
  - `errors` object[], nullable — Errors that occurred during the query. These are meant to help the developer debug the query, and are not meant to be shown to the user.
  - `documents` Resource[], required
    - `source` 'reddit' | 'notion' | 'slack' | 'google_calendar' | 'google_mail' | 'box' | 'dropbox' | 'github' | 'google_drive' | 'vault' | 'web_crawler' | 'trace' | 'microsoft_teams' | 'gmail_actions', required
    - `resource_id` string, required
    - `title` string, nullable
    - `metadata` Metadata
      - `created_at` string, date-time, nullable
      - `indexed_at` string, date-time, nullable
      - `last_modified` string, date-time, nullable
      - `status` 'pending' | 'processing' | 'completed' | 'failed' | 'pending_review' | 'skipped'
      - `events` Notification[]
        - `message` string, required
        - `time` string, date-time
        - `type` 'error' | 'warning' | 'info' | 'success', required
      - `url` string, nullable
    - `score` number, nullable — The relevance of the resource to the query
    - `folder_id` string, nullable — Provider folder ID this resource belongs to
    - `parent_folder_id` string, nullable — Parent folder ID for policy inheritance
  - `answer` string, nullable — The answer to the query, if the request was set to answer.
  - `score` number, nullable — The average score of the query feedback, if any.

## Other responses

- `422` — Validation Error

---

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