---
title: "List prior queries"
method: GET
path: "/evaluate/queries"
tags: ["Evaluation"]
---

# List prior queries

`GET /evaluate/queries`

Paginate through all prior queries for the app, newest first.

User tokens only see their own queries; admin tokens see every query in the
app and can narrow to a single user with the `user_id` filter.

## Query parameters

- `user_id` string, nullable — Filter queries by the user that issued them.
- `cursor` string, nullable
- `size` integer

## Response `200`

Successful Response

- CursorPageQueryListItem
  - `items` QueryListItem[], required
    - `query_id` string, required — The ID of the query.
    - `user_id` string, nullable — The ID of the user that issued the query, if any.
    - `time` string, date-time, required — When the query was issued.
    - `query` string, required — The query string that was issued.
  - `next_cursor` string, nullable, required

## Other responses

- `422` — Validation Error

---

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