> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vertracloud.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Download Application

> Downloads the application files as a ZIP file by its ID.

<ParamField path="id" type="string" required>
  The application ID to download. If the application belongs to a workspace, include the workspace ID in the format `appId-workspaceId`.
</ParamField>

### Response

The response is a binary ZIP file containing the application files.

* **Content-Type**: `application/zip`
* **Content-Disposition**: `attachment; filename="{id}.zip"`
* **Content-Length**: O tamanho do arquivo ZIP em bytes.

### Error Responses

<ResponseField name="code" type="string">
  The error code indicating the reason for the failure. Possible values:

  * `UNAUTHORIZED`: The user is not authenticated or does not have sufficient permissions.
  * `APP_NOT_FOUND`: The specified application does not exist.
  * `FORBIDDEN`: The user does not have permission to access the application.
  * `DOWNLOAD_FAILED`: The application files could not be downloaded.
</ResponseField>

<ResponseField name="message" type="string">
  A descriptive message providing additional details about the error.
</ResponseField>

<ResponseExample>
  ```json Error Response (404) theme={null}
  {
    "code": "APP_NOT_FOUND"
  }
  ```

  ```json Error Response (403) theme={null}
  {
    "code": "FORBIDDEN"
  }
  ```

  ```json Error Response (400) theme={null}
  {
    "code": "DOWNLOAD_FAILED"
  }
  ```
</ResponseExample>
