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

# Pronunciation Vaults

> Shared pronunciation dictionaries that define how your Genies pronounce specific words and names.

Pronunciation Vaults are shared libraries of word-to-phonetic mappings. Regular users can read public vaults; creating, updating, and deleting vaults is restricted to admins.

***

## Actions

### `all`

Returns all pronunciation vaults. Regular users only see public vaults. Admins see all vaults and can filter by accent.

**Parameters**

| Field    | Type   | Required | Description                        |
| -------- | ------ | -------- | ---------------------------------- |
| `accent` | string | No       | Admin only — filter by accent code |

**Response**

```json theme={null}
{
  "vaults": [
    {
      "id": "vault-uuid",
      "name": "General American English",
      "description": "Standard US English pronunciation guide",
      "accent": "en-US",
      "pairs": [
        { "word": "HelpGenie", "pronunciation": "help JEE-nee" }
      ],
      "is_public": true,
      "created_at": "2024-01-01T00:00:00Z",
      "updated_at": "2024-01-01T00:00:00Z"
    }
  ],
  "count": 3
}
```

***

### `get`

Returns a single pronunciation vault by ID. Returns `NOT_FOUND` for non-public vaults accessed by regular users.

**Parameters**

| Field | Type   | Required | Description                       |
| ----- | ------ | -------- | --------------------------------- |
| `id`  | string | Yes      | Vault UUID (passed as request ID) |

**Response**

```json theme={null}
{
  "vault": {
    "id": "vault-uuid",
    "name": "General American English",
    "description": "Standard US English pronunciation guide",
    "accent": "en-US",
    "pairs": [ /* pronunciation pairs */ ],
    "is_public": true,
    "created_at": "2024-01-01T00:00:00Z",
    "updated_at": "2024-01-01T00:00:00Z"
  }
}
```

***

### `create`

Creates a new pronunciation vault. **Admin only.**

**Parameters**

| Field         | Type    | Required | Description                                                      |
| ------------- | ------- | -------- | ---------------------------------------------------------------- |
| `name`        | string  | Yes      | Vault name                                                       |
| `description` | string  | No       | Optional description                                             |
| `accent`      | string  | No       | Accent code (e.g. `"en-US"`, `"en-GB"`)                          |
| `pairs`       | array   | No       | Pronunciation pairs — array of `{ word, pronunciation }` objects |
| `is_public`   | boolean | No       | Whether the vault is visible to all users, defaults to `true`    |

**Response** — `201`

```json theme={null}
{
  "vault": {
    "id": "vault-uuid",
    "name": "General American English",
    "pairs": [],
    "is_public": true,
    "created_at": "2024-01-01T00:00:00Z"
  }
}
```

***

### `update`

Updates a pronunciation vault. **Admin only.** Partial updates supported — only supplied fields are changed.

**Parameters**

| Field         | Type    | Required | Description                           |
| ------------- | ------- | -------- | ------------------------------------- |
| `id`          | string  | Yes      | Vault UUID (passed as request ID)     |
| `name`        | string  | No       | Updated name                          |
| `description` | string  | No       | Updated description                   |
| `accent`      | string  | No       | Updated accent code                   |
| `pairs`       | array   | No       | Replacement pronunciation pairs array |
| `is_public`   | boolean | No       | Updated visibility                    |

**Response**

```json theme={null}
{
  "vault": { /* updated vault */ }
}
```

***

### `delete`

Permanently deletes a pronunciation vault. **Admin only.** Irreversible.

**Parameters**

| Field | Type   | Required | Description                       |
| ----- | ------ | -------- | --------------------------------- |
| `id`  | string | Yes      | Vault UUID (passed as request ID) |

**Response**

```json theme={null}
{ "success": true, "message": "Vault deleted successfully" }
```

***

## Error codes

| Code               | Meaning                       |
| ------------------ | ----------------------------- |
| `VALIDATION_ERROR` | Missing required parameter    |
| `NOT_FOUND`        | Vault not found or not public |
| `FORBIDDEN`        | Admin access required         |
| `INTERNAL_ERROR`   | Unexpected server error       |
