---
title: "List log queries"
method: GET
path: "/logs/queries"
tags: ["Logs"]
---

# List log queries

`GET /logs/queries`

## Request

- Base URL: `https://api.sazabi.com/v1`
- URL: `https://api.sazabi.com/v1/logs/queries`
- Auth: none declared

List the project's stored log queries, newest first: every `logs.ask` question that ran a query and every spec run with `logs.executeQuery`. Runs of an earlier query by its `queryId` are not listed; each names the query it ran as `parentId` and is read with `logs.queries.get`. Items carry no spec; read one with `logs.queries.get`.

## Query parameters

- `projectId` string, uuid: Project whose queries to list. Auto-filled from CLI and SDK context when omitted.
- `cursor` string, uuid: Cursor from a previous response's nextCursor to fetch the next page.
- `limit` integer: Maximum number of queries to return per page (1-100).

## Response `200`

OK

- object
  - `queries` object[], required
    - `queryId` string, uuid, required: `queryId` of a `logs.ask` answer or a `logs.executeQuery` run in the project.
    - `question` string, required: The question as stored, with emails and key-like tokens redacted; for a spec, its plain-words reading.
    - `interpretedAs` string, nullable, required: How the question was read. Null for a spec.
    - `window` object, required: The absolute times the query read. `logs.executeQuery` with this `queryId` and no `window` reads them again.
      - `from` string, date-time, required
      - `to` string, date-time, required
    - `parentId` string, uuid, nullable, required: For a run of an earlier query, that query's `queryId`; null for a question or a spec run directly.
    - `resultsKind` string, nullable, required: The kind of results it returned (`rows`, `value`, `distinct`, `table`, `messages`, `series`, `search`). Null when it returned none.
    - `createdAt` string, date-time, required: When the query was asked or run.
  - `nextCursor` string, uuid, nullable, required: Pass as cursor to fetch older queries. Null on the last page.

## Changes

- **2026-10-13** `3dd07e679d4f`: 2 breaking
  - removed the required property `queries/items/source` from the response with the `200` status
  - removed the required property `queries/items/status` from the response with the `200` status
- **2026-10-10** `14b670dff679`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/sazabi/apis/sazabi-public-api/changes/logs/queries/get.md)

---

[API](https://skmtc.dev/sazabi/apis/sazabi-public-api.md) - [All operations](https://skmtc.dev/sazabi/apis/sazabi-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sazabi/apis/sazabi-public-api/revisions/965b6230cf45?raw)
