---
title: "Get named query by ID"
method: GET
path: "/inventory/api/v3/query/{query_id}"
tags: ["named_query"]
---

# Get named query by ID

`GET /inventory/api/v3/query/{query_id}`

Retrieving list of named queries by specified filters and tags filters

## Path parameters

- `query_id` string, required

## Response `200`

OK

- GithubComOpengovernOpengovernancePkgInventoryApiNamedQueryItemV2
  - `description` string
  - `id` string — Query Id
  - `integration_types` string[] — Provider
  - `query` GithubComOpengovernOpengovernancePkgInventoryApiQuery
    - `Global` boolean
    - `createdAt` string
    - `engine` string
    - `id` string
    - `listOfTables` string[]
    - `parameters` GithubComOpengovernOpengovernancePkgInventoryApiQueryParameter[]
      - `key` string
      - `required` boolean
    - `primaryTable` string
    - `queryToExecute` string
    - `updatedAt` string
  - `tags` object — Tags
  - `title` string — Title

---

[API](https://skmtc.net/opengovern/apis/opengovernance-service-api.md) · [All operations](https://skmtc.net/opengovern/apis/opengovernance-service-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/opengovern/opengovernance-service-api/versions/ab05295c4094/schema)
