---
title: "Get a vault by id"
method: GET
path: "/api/vaults/{id}"
tags: ["Vaults"]
---

# Get a vault by id

`GET /api/vaults/{id}`

## Request

- Base URL: `https://api.engram.page`
- URL: `https://api.engram.page/api/vaults/{id}`
- Auth: HTTP bearer

Returns the vault with the given UUID along with its current note and attachment counts, or 404 if it does not exist or belong to the user. Opening a vault also emits a `vault_opened` analytics event.

## Path parameters

- `id` string, required

## Response `200`

Vault

- VaultResponse
  - `vault` Vault, required
    - `attachment_count` integer
    - `created_at` string, date-time, nullable
    - `deleted_at` string, date-time, nullable
    - `encrypted` boolean: Always true — vaults are encrypted at rest.
    - `id` string, uuid, required
    - `is_default` boolean
    - `name` string, required
    - `note_count` integer
    - `populated` boolean: True once the vault holds a note other than the seeded welcome note (the moment the `vault_populated` event fires).
    - `purge_at` string, date-time, nullable: When a soft-deleted vault is hard-purged (deleted_at + 30d).
    - `slug` string, nullable

## Other responses

- `404`: No such vault

---

[API](https://skmtc.dev/engram/apis/engram-api.md) · [All operations](https://skmtc.dev/engram/apis/engram-api/llms.txt) · [OpenAPI document](https://skmtc.dev/engram/apis/engram-api/revisions/8c4c2eec29dc?raw)
