---
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' | 'granola' | 'fathom' | 'linear' | 'hubspot' | 'salesforce' | 'coda', 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
    - `folder_ancestors` string[] — Ordered list of provider folder IDs from immediate parent up to (but not including) provider root. Used by resolve_sync_mode to walk the actual folder tree without depending on intermediate policy records. Empty = resource lives at provider root.
  - `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

## Changes

- **2026-05-20** `d7c846c2cd79` — 1 warning
  - added the new `coda` enum value to the `documents/items/source` response property for the response status `200`
- **2026-05-18** `6eb290df2d3b` — 2 warning
  - added the new `hubspot` enum value to the `documents/items/source` response property for the response status `200`
  - added the new `salesforce` enum value to the `documents/items/source` response property for the response status `200`
- **2026-05-07** `dae795df37e2` — 1 info
  - added the optional property `documents/items/folder_ancestors` to the response with the `200` status
- **2026-05-05** `023174b0253c` — 3 warning
  - added the new `fathom` enum value to the `documents/items/source` response property for the response status `200`
  - added the new `granola` enum value to the `documents/items/source` response property for the response status `200`
  - added the new `linear` enum value to the `documents/items/source` response property for the response status `200`

[Change history](https://skmtc.dev/hyperspell/apis/hyperspell-api/changes/evaluate/query/:query_id/get.md)

---

[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/d7c846c2cd79/schema)
