---
title: "List All Queries"
method: GET
path: "/api/v2/Queries"
tags: ["Queries"]
---

# List All Queries

`GET /api/v2/Queries`

List all registered LQL queries in your FortiCNAPP instance by invoking the following endpoint:

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

## Headers

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

## Response `200`

No Error (List of Queries)

- object
  - `data` QueriesResponseSchema[]
    - `queryText` string, required — When sending a request, provide a human-readable text syntax for specifying selection, filtering, and manipulation of data.
    - `queryId` string, required — Identifier of the query that executes while running the policy.
    - `evaluatorId` string — Optional identifier of the evaluator where the query is run. This field is only for `CloudTrail` queries and policies.
    - `owner` string — User that created the query
    - `lastUpdateTime` string — Timestamp in the form yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
    - `lastUpdateUser` string — User that last affected the state of this query
    - `resultSchema` object[] — A list of schemas that match your query.
      - `name` string — Name of the result column
      - `dataType` string — LQL type of the result column
      - `description` string — Description of the data that this column holds.

## Other responses

- `204` — No Data
- `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)
