> ## 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 Snapshot

> Downloads the ZIP file of a specific snapshot for a given application or database.

<ParamField path="id" type="string" required>
  The ID of the application or database.
</ParamField>

<ParamField path="snapshot_id" type="string" required>
  The ID of the snapshot to download.
</ParamField>

<ParamField query="scope" type="string" required>
  The resource type. Possible values: `applications`, `databases`.
</ParamField>

### Response

<ResponseField name="response" type="file">
  The ZIP file containing the application or database snapshot, returned as a binary download with `Content-Disposition: attachment`.
</ResponseField>

### Error Responses

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

  * `UNAUTHORIZED`: The user is not authenticated.
  * `USER_NOT_FOUND`: The authenticated user was not found.
  * `ACCESS_DENIED`: The snapshot does not belong to the authenticated user.
  * `SNAPSHOT_NOT_FOUND`: The specified snapshot does not exist.
  * `INTERNAL_SERVER_ERROR`: An unexpected server error occurred.
</ResponseField>

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

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

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