---
title: "# Export Threat Pack"
method: GET
path: "/v1/threat-library/threats/{ThreatId}/export"
tags: ["Threats"]
---

# # Export Threat Pack

`GET /v1/threat-library/threats/{ThreatId}/export`

## Request

- Base URL: `https://api.picussecurity.com`
- URL: `https://api.picussecurity.com/v1/threat-library/threats/{ThreatId}/export`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/picussecurity/apis/picus-rest-api/docs/v1/threat-library/threats/:ThreatId/export/get.ts> (a function with typed inputs; its response is checked against the schema)

Exports a custom threat as an encrypted zip file containing the threat definition
and any associated files. The response is a binary file download.

## Path parameters

- `ThreatId` integer, required

## Response `200`

A file download response

- integer[]

## Other responses

- `422`: validationErrorSwagger is represents the erroneous cases
- `default`: genericErrorSwagger is represents the erroneous cases

---

[API](https://skmtc.dev/picussecurity/apis/picus-rest-api.md) - [All operations](https://skmtc.dev/picussecurity/apis/picus-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/picussecurity/apis/picus-rest-api/revisions/319e45a98304?raw)
