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

# Get Vault

> Get vault metadata and encryption info

## Overview

Retrieves the user's vault information including encryption metadata. The vault is an encrypted storage area for sensitive files.

## Response

<ResponseField name="vault" type="object">
  Vault metadata

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

    <ResponseField name="user_id" type="integer">
      Owner user ID
    </ResponseField>

    <ResponseField name="salt" type="string">
      Encryption salt (base64 encoded)
    </ResponseField>

    <ResponseField name="check" type="string">
      Encryption check value (base64 encoded)
    </ResponseField>

    <ResponseField name="iv" type="string">
      Initialization vector
    </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 \
    -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
  ```

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

  const { vault } = await response.json();
  console.log('Vault ID:', vault.id);
  ```

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

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

  vault = response.json()['vault']
  print(f"Vault ID: {vault['id']}")
  ```
</RequestExample>

<ResponseExample>
  ```json 200 - Success theme={null}
  {
    "vault": {
      "id": 993,
      "user_id": 15843,
      "salt": "aqtS3SdP/4pgWlGsDewDMw==",
      "check": "YYx1WHsVEwqROOwEzgnXU7fkoyCTVASPkVpVkg==",
      "iv": "VE/FW/XvPwQ2fTB5",
      "created_at": "2025-12-18T16:09:13.000000Z",
      "updated_at": "2025-12-18T16:09:13.000000Z"
    },
    "status": "success",
    "seo": null
  }
  ```
</ResponseExample>

<Note>
  The vault uses client-side encryption. The `salt` and `iv` are used to derive the encryption key from the user's password.
</Note>
