> For the complete documentation index, see [llms.txt](https://dev.guardian.hedera.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.guardian.hedera.com/guardian/standard-registry/policies/tools/tools-apis/returns-tools-and-its-artifacts-in-zip-format.md).

# Returns Tools and its artifacts in zip format

**`GET /api/v1/tools/{id}/export/file`**

Returns a zip file containing the published tool and all associated artifacts such as schemas and VCs.

**Authentication:** Bearer token required (`Authorization: Bearer <token>`)

**Permission:** `Permissions.TOOLS_TOOL_READ`

***

## Request

### Path Parameters

| Parameter | Type   | Required | Description                |
| --------- | ------ | -------- | -------------------------- |
| `id`      | string | Yes      | Tool ID (MongoDB ObjectId) |

***

## Response

### Success Response

**Status:** `200 OK`

Returns a binary ZIP file.

**Response Headers:**

| Header                | Value                                   |
| --------------------- | --------------------------------------- |
| `Content-Type`        | `application/zip`                       |
| `Content-Disposition` | `attachment; filename=tool_<timestamp>` |

### Error Responses

| Status                      | Description                |
| --------------------------- | -------------------------- |
| `401 Unauthorized`          | Missing or invalid token   |
| `403 Forbidden`             | Insufficient permissions   |
| `422 Unprocessable Entity`  | `id` is missing or invalid |
| `500 Internal Server Error` | Unexpected server failure  |
