---
title: "Validate Queries"
method: POST
path: "/api/v2/Queries/validate"
tags: ["Queries"]
---

# Validate Queries

`POST /api/v2/Queries/validate`

Validate an LQL query by specifying parameters in the request body by invoking the following endpoint:

  > `POST https://YourAccount.lacework.net/api/v2/Queries/validate`

## Headers

- `Authorization` string, required
- `Content-Type` string, required

## Request body

- object
  - `queryText` string, required — When sending a request, provide a human-readable text syntax for specifying selection, filtering, and manipulation of data.

## Response `200`

No Error

- object
  - `data` object
    - `evaluatorId` string — Optional identifier of the evaluator where the policy is run. This field is only for CloudTrail queries and policies.
    - `queryText` string — When sending a request, provide a human-readable text syntax for specifying selection, filtering, and manipulation of data.
    - `queryId` string — Identifier of the query
    - `resultSchema` object[]
      - `name` string — Name of the result column
      - `dataType` string — LQL type of the result column

## Other responses

- `4XX` — Client Error
- `5XX` — Internal Server Error

---

[API](https://skmtc.net/lacework/apis/forticnapp-api-2-0-documentation.md) · [All operations](https://skmtc.net/lacework/apis/forticnapp-api-2-0-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lacework/forticnapp-api-2-0-documentation/revisions/7015f76895f2/schema)
