---
title: "Download query results"
method: GET
path: "/vis/v2/orgs/{orgId}/queries/{id}/download"
tags: ["Query"]
---

# Download query results

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

## Request

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

Download the specified query results.

## Path parameters

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

## Query parameters

- `skipToken` string: An opaque token to be provided when requesting a subsequent page after receiving a partial response. Partial responses will include a "nextPage" attribute in their response body, which contains the URL of the next page including the appropriate skipToken.
- `maxResults` integer: The maximum number of rows to return for uncompressed CSV downloads. The maxResults parameter cannot be used with outputCompression=gzip. If both parameters are specified in the same request, the API will return a 400 Bad Request error.

## Response `200`

OK response.

## 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`: 12 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`
  - …8 more

[Operation history](https://skmtc.dev/flexera/apis/it-visibility-api/changes/vis/v2/orgs/:orgId/queries/:id/download/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)
