> For a complete page index, fetch https://docs.synthflow.ai/llms.txt. For full documentation content, fetch https://docs.synthflow.ai/llms-full.txt.

## Fallback Voice Provider Support

We have updated our Public API to support fallback voice configurations. These changes allow you to specify a secondary voice provider and model to be used in case the primary synthesizer fails.

**API Changes**

The assistants API has been updated to include fallback voice fields within the `agent` object for `GET`, `POST`, and `PUT` requests.

| Field               | Type     | Description                                                                    |
| ------------------- | -------- | ------------------------------------------------------------------------------ |
| `fallback_voice_id` | `string` | The ID of the fallback voice.                                                  |
| `fallback_provider` | `string` | The provider for the fallback voice (e.g., `elevenlabs`, `deepgram`, `azure`). |
| `fallback_model`    | `string` | The model to be used by the fallback provider.                                 |

**Example usage:**

```json
{
  "name": "My Assistant",
  "agent": {
    "prompt": "You are a helpful assistant.",
    "voice_id": "primary_voice_id",
    "provider": "elevenlabs",
    "fallback_voice_id": "fallback_voice_id",
    "fallback_provider": "deepgram",
    "fallback_model": "aura-asteria-en"
  }
}
```

**Updated endpoints:**

| Endpoint                                                                                | Title           |
| --------------------------------------------------------------------------------------- | --------------- |
| [**GET /assistants**](/api-reference/platform-api/agents/list-assistant)                | List agents     |
| [**GET /assistants/\{model\_id}**](/api-reference/platform-api/agents/get-assistant)    | Get an agent    |
| [**POST /assistants**](/api-reference/platform-api/agents/create-assistant)             | Create an agent |
| [**PUT /assistants/\{model\_id}**](/api-reference/platform-api/agents/update-assistant) | Update an agent |