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

# Preselected voices

> Platform-curated voice options available to all users when setting up a genie

Preselected voices are the platform-level voice options shown to users during genie setup. Regular users can browse all active voices; creating, updating, and deleting entries is restricted to admins.

***

## Actions

### `all`

Returns all preselected voices, ordered by `sort_order`. Regular users see only active voices (`is_active: true`). Admins see all voices regardless of active status.

**Response**

```json theme={null}
{
  "voices": [
    {
      "id": "voice-uuid",
      "voice_id": "external-voice-id",
      "label": "Rachel",
      "description": "Warm, professional female voice",
      "gender": "female",
      "sort_order": 0,
      "is_active": true,
      "created_at": "2024-01-01T00:00:00Z",
      "updated_at": "2024-01-01T00:00:00Z"
    }
  ],
  "count": 12
}
```

```typescript Request theme={null}
const response = await ApiService.invoke({
  resource: "preselected-voices",
  action: "all",
});
```

```bash cURL theme={null}
curl -X POST https://api.helpgenie.ai/v1/preselected-voices \
  -H "Authorization: Bearer hg_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "resource": "preselected-voices",
    "action": "all"
  }'
```

***

### `create`

Adds a new preselected voice to the platform library. **Admin only.**

**voice\_id** `string` *required*

Platform voice identifier to add to the curated list.

**label** `string` *required*

Display name shown to users.

**description** `string`

Optional description of the voice character or style.

**gender** `string` *required*

Must be `"male"` or `"female"`.

**sort\_order** `number` (default: 0)

Display order position.

**is\_active** `boolean` (default: true)

Whether the voice is visible to regular users.

**Response** — `201`

```json theme={null}
{
  "voice": {
    "id": "voice-uuid",
    "voice_id": "external-voice-id",
    "label": "Rachel",
    "description": "Warm, professional female voice",
    "gender": "female",
    "sort_order": 0,
    "is_active": true,
    "created_at": "2024-01-01T00:00:00Z",
    "updated_at": null
  }
}
```

```typescript Request theme={null}
const response = await ApiService.invoke({
  resource: "preselected-voices",
  action: "create",
  data: {
    voice_id: "external-voice-id",
    label: "Rachel",
    description: "Warm, professional female voice",
    gender: "female",
    sort_order: 1,
    is_active: true,
  },
});
```

```bash cURL theme={null}
curl -X POST https://api.helpgenie.ai/v1/preselected-voices \
  -H "Authorization: Bearer hg_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "resource": "preselected-voices",
    "action": "create",
    "data": {
      "voice_id": "external-voice-id",
      "label": "Rachel",
      "description": "Warm, professional female voice",
      "gender": "female",
      "sort_order": 1,
      "is_active": true
    }
  }'
```

***

### `update`

Updates a preselected voice entry. **Admin only.** Only the fields you supply are changed.

Pass the voice UUID as the request `id`. All data fields below are optional.

**label** `string`

Updated display name.

**description** `string`

Updated description.

**gender** `string`

Updated gender. Must be `"male"` or `"female"`.

**sort\_order** `number`

Updated display order position.

**is\_active** `boolean`

Toggle visibility for regular users.

**Response**

```json theme={null}
{
  "voice": { /* updated preselected voice object */ }
}
```

```typescript Request theme={null}
const response = await ApiService.invoke({
  resource: "preselected-voices",
  action: "update",
  id: "voice-uuid",
  data: {
    label: "Rachel (Updated)",
    is_active: false,
  },
});
```

```bash cURL theme={null}
curl -X POST https://api.helpgenie.ai/v1/preselected-voices \
  -H "Authorization: Bearer hg_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "resource": "preselected-voices",
    "action": "update",
    "id": "voice-uuid",
    "data": {
      "label": "Rachel (Updated)",
      "is_active": false
    }
  }'
```

***

### `delete`

Permanently removes a preselected voice from the platform library. **Admin only.** Irreversible.

**Parameters**

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

**Response**

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

```typescript Request theme={null}
const response = await ApiService.invoke({
  resource: "preselected-voices",
  action: "delete",
  id: "voice-uuid",
});
```

```bash cURL theme={null}
curl -X POST https://api.helpgenie.ai/v1/preselected-voices \
  -H "Authorization: Bearer hg_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "resource": "preselected-voices",
    "action": "delete",
    "id": "voice-uuid"
  }'
```

***

## Voice object fields

| Field | Type | Description |
| - | - | - |
| `id` | string | Unique preselected voice identifier |
| `voice_id` | string | External voice identifier |
| `label` | string | Display name shown to users |
| `description` | string \| null | Optional description |
| `gender` | `"male"` \| `"female"` | Voice gender |
| `sort_order` | number | Display order position |
| `is_active` | boolean | Whether the voice is visible to regular users |
| `created_at` | string \| null | ISO 8601 creation timestamp |
| `updated_at` | string \| null | ISO 8601 last-updated timestamp |

***

## Error codes

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


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.