---
title: "Download File"
method: GET
path: "/v1/policies/{policy_id}/file"
tags: ["Agent Environment", "policies"]
---

# Download File

`GET /v1/policies/{policy_id}/file`

## Request

- The document declares no server URL.
- Auth: none declared
- TypeScript: <https://skmtc.dev/vijilai/apis/vijil-console-api-combined/docs/v1/policies/:policy_id/file/get.ts> (a function with typed inputs; its response is checked against the schema)

Download the policy's attached file.

Returns the file content with appropriate headers for download.

## Path parameters

- `policy_id` string, uuid, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/vijilai/apis/vijil-console-api-combined.md) - [All operations](https://skmtc.dev/vijilai/apis/vijil-console-api-combined/llms.txt) - [OpenAPI document](https://skmtc.dev/vijilai/apis/vijil-console-api-combined/revisions/a8b2ee2b2d06?raw)
