---
title: "Download a zipped file of all results of query"
method: GET
path: "/api/v1/files/{query_id}/zip"
tags: ["Files"]
---

# Download a zipped file of all results of query

`GET /api/v1/files/{query_id}/zip`

## Request

- Base URL: `https://sandbox.particlehealth.com`
- URL: `https://sandbox.particlehealth.com/api/v1/files/{query_id}/zip`
- Auth: API key in header `Authorization`

Download a zip file

## Path parameters

- `query_id` string, required

## Response `200`

Zip file to download

## Other responses

- `202`: Zip file not ready yet
- `204`: No files to zip and download
- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not Found
- `406`: Not Acceptable
- `412`: Precondition Failed
- `500`: Internal Server Error

## Changes

- **2026-11-03** `b59a5413a488`: 6 info
  - added the optional property `error_code` to the response with the `400` status
  - added the optional property `error_code` to the response with the `401` status
  - added the optional property `error_code` to the response with the `404` status
  - added the optional property `error_code` to the response with the `406` status
  - …2 more

[Operation history](https://skmtc.dev/particlehealth/apis/particle-health-api/changes/api/v1/files/:query_id/zip/get.md)

---

[API](https://skmtc.dev/particlehealth/apis/particle-health-api.md) - [All operations](https://skmtc.dev/particlehealth/apis/particle-health-api/llms.txt) - [OpenAPI document](https://skmtc.dev/particlehealth/apis/particle-health-api/revisions/b59a5413a488?raw)
