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

# Download Vault Entry

> Get download URL for vault entry

## Overview

Retrieves download information for a vault entry, including the download URL and initialization vector for decryption.

## Path Parameters

<ParamField path="entryId" type="integer" required>
  ID of the vault entry
</ParamField>

## Response

<ResponseField name="entries" type="array">
  Array of download entries

  <Expandable title="Entry properties">
    <ResponseField name="id" type="integer">
      Entry ID
    </ResponseField>

    <ResponseField name="name" type="string">
      Filename
    </ResponseField>

    <ResponseField name="download_url" type="string">
      URL to download the encrypted file
    </ResponseField>

    <ResponseField name="iv" type="string">
      Initialization vector for decryption
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="status" type="string">
  Request status (`success`)
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET https://app.drime.cloud/api/v1/vault/entries/download/111346 \
    -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch('https://app.drime.cloud/api/v1/vault/entries/download/111346', {
    headers: {
      'Authorization': 'Bearer YOUR_ACCESS_TOKEN'
    }
  });

  const { entries } = await response.json();
  const { download_url, iv } = entries[0];

  // Download and decrypt the file client-side
  // using the iv and your vault password
  ```

  ```python Python theme={null}
  import requests

  response = requests.get(
      'https://app.drime.cloud/api/v1/vault/entries/download/111346',
      headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'}
  )

  entry = response.json()['entries'][0]
  print(f"Download URL: {entry['download_url']}")
  print(f"IV for decryption: {entry['iv']}")
  ```
</RequestExample>

<ResponseExample>
  ```json 200 - Success theme={null}
  {
    "entries": [
      {
        "id": 111346,
        "name": "IMG_5039.heic",
        "type": "file",
        "relativePath": "IMG_5039.heic",
        "download_url": "https://app.drime.cloud/api/v1/file-entries/download/MTExMzQ2fHBhZA",
        "iv": "WgMf4hizsWEJi3Wm"
      }
    ],
    "status": "success",
    "seo": null
  }
  ```
</ResponseExample>

<Note>
  The downloaded file is encrypted. Use the `iv` and your vault password to decrypt it client-side.
</Note>
