> 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/formula-linked-definitions/apis-related-to-formula-linked/export-selected-formulas-into-a-file.md).

# Export selected formulas into a file

**`GET /api/v1/formulas/{formulaId}/export/file`**

Exports a formula and its dependencies as a downloadable ZIP file.

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

**Permission:** `Permissions.FORMULAS_FORMULA_READ`

***

## Request

### Path Parameters

| Parameter   | Type   | Required | Description                          |
| ----------- | ------ | -------- | ------------------------------------ |
| `formulaId` | string | Yes      | Database ID of the formula to export |

***

## Response

### Success Response

**Status:** `200 OK`

Returns a binary ZIP file containing the formula data.

**Content-Type:** `application/zip`

**Content-Disposition:** `attachment; filename=theme_<timestamp>`

### Error Responses

| Status                      | Description               |
| --------------------------- | ------------------------- |
| `401 Unauthorized`          | Missing or invalid token  |
| `403 Forbidden`             | Insufficient permissions  |
| `500 Internal Server Error` | Unexpected server failure |
