---
title: "Validate Runs Query"
method: POST
path: "/api/v1/runs/query/validate"
tags: ["run"]
---

# Validate Runs Query

`POST /api/v1/runs/query/validate`

Validate runs query syntax, returns errors for broken queries.

## Request body

- BodyParamsForRunsQuerySchema — Query params for runs query endpoint.
  - `id` string[], nullable
  - `trace` string, uuid, nullable
  - `parent_run` string, uuid, nullable
  - `run_type` 'tool' | 'chain' | 'llm' | 'retriever' | 'embedding' | 'prompt' | 'parser' — Enum for run types.
  - `session` string[], nullable
  - `reference_example` string[], nullable
  - `execution_order` integer, nullable
  - `start_time` string, date-time, nullable
  - `end_time` string, date-time, nullable
  - `error` boolean, nullable
  - `query` string, nullable
  - `filter` string, nullable
  - `trace_filter` string, nullable
  - `tree_filter` string, nullable
  - `is_root` boolean, nullable
  - `data_source_type` 'current' | 'historical' | 'lite' | 'root_lite' | 'runs_feedbacks_rmt_wide' — Enum for run data source types.
  - `skip_pagination` boolean, nullable
  - `search_filter` string, nullable
  - `use_experimental_search` boolean
  - `cursor` string, nullable
  - `limit` integer
  - `select` RunSelect[]
  - `order` 'asc' | 'desc' — Enum for run start date order.
  - `skip_prev_cursor` boolean

## Response `200`

Successful Response

- RunsQueryValidationResponse — Response for POST /runs/query/validate.
  - `valid` boolean, required
  - `errors` RunsQueryValidationError[]
    - `field` string, required
    - `message` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/langchain-ai/apis/langsmith.md) · [All operations](https://skmtc.net/langchain-ai/apis/langsmith/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/langchain-ai/langsmith/versions/a0acb3a6a101/schema)
