---
title: "Show an executed query"
method: GET
path: "/vis/v2/orgs/{orgId}/queries/{id}"
tags: ["Query"]
---

# Show an executed query

`GET /vis/v2/orgs/{orgId}/queries/{id}`

## Request

- Base URL: `https://api.flexera.com`
- URL: `https://api.flexera.com/vis/v2/orgs/{orgId}/queries/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/flexera/apis/it-visibility-api/docs/vis/v2/orgs/:orgId/queries/:id/get.ts> (a function with typed inputs; its response is checked against the schema)

Show details of an executed query.

## Path parameters

- `orgId` integer, required: The unique identifier for the organization
- `id` string, required: The unique query identifier

## Response `200`

OK response.

- QueryData
  - `completedAt` string, date-time: The date and time that the query completed.
  - `createdAt` string, date-time: The date and time that the query was submitted.
  - `error` string: Provides information about a query error.
  - `id` string: The unique query identifier
  - `status` string, required: The status of the execution. Possible values are QUEUED, RUNNING, SUCCEEDED, FAILED.

## Other responses

- `400`: bad_request: Bad Request response.
- `401`: unauthorized: Unauthorized response.
- `403`: forbidden: Forbidden response.
- `404`: not_found: Not Found response.
- `429`: too_many_requests: Too Many Requests response.
- `500`: internal_error: Internal Server Error response.
- `502`: bad_gateway: Bad Gateway response.

## Changes

- **2026-11-06** `cf08a0af5097`: 11 info
  - the security scope `vis:data_fusion:show||common:org:own` was added to the endpoint's security scheme `JWTAuth_header_Authorization`
  - the security scope `vis:data_fusion:update||common:org:own` was added to the endpoint's security scheme `JWTAuth_header_Authorization`
  - the security scope `vis:device:delete||common:org:own` was added to the endpoint's security scheme `JWTAuth_header_Authorization`
  - the security scope `vis:file_evidence:download||common:org:own` was added to the endpoint's security scheme `JWTAuth_header_Authorization`
  - …7 more

[Operation history](https://skmtc.dev/flexera/apis/it-visibility-api/changes/vis/v2/orgs/:orgId/queries/:id/get.md)

---

[API](https://skmtc.dev/flexera/apis/it-visibility-api.md) - [All operations](https://skmtc.dev/flexera/apis/it-visibility-api/llms.txt) - [OpenAPI document](https://skmtc.dev/flexera/apis/it-visibility-api/revisions/cf08a0af5097?raw)
