---
title: "Activate built-in Voice AI"
description: "Served by the Voice API. Requires a Bearer session for a workspace owner/admin/manager when VOICE_AI_TELEPHONY_TURN_CONTROL_V2 is enabled. Flag-off workspaces retain the legacy access contract."
---

> Documentation Index
> Fetch the complete documentation index at: https://developer.channelautomations.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Channel Automation API › Workspaces

`POST /api/workspaces/{workspaceId}/voice-ai/activate`

Served by the Voice API. Requires a Bearer session for a workspace owner/admin/manager when VOICE_AI_TELEPHONY_TURN_CONTROL_V2 is enabled. Flag-off workspaces retain the legacy access contract.

## Authentication

- `BearerAuth`, http, header `Authorization`, format `JWT`

## Path parameters

- `workspaceId` (`post/api/workspaces/workspaceId/voice-ai/activate.path.workspaceId`; string, required)

## Request body

- `turn_detection_mode` (`post/api/workspaces/workspaceId/voice-ai/activate.turn_detection_mode`; string, optional)
  - one of `"server_vad"`, `"semantic_vad"`
- `turn_detection_eagerness` (`post/api/workspaces/workspaceId/voice-ai/activate.turn_detection_eagerness`; string, optional)
  - one of `"low"`, `"medium"`, `"high"`, `"auto"`
- `turn_detection_threshold` (`post/api/workspaces/workspaceId/voice-ai/activate.turn_detection_threshold`; number, optional)
  - min 0.35; max 0.85
- `silence_duration_ms` (`post/api/workspaces/workspaceId/voice-ai/activate.silence_duration_ms`; number, optional)
  - min 300; max 1500
- `prefix_padding_ms` (`post/api/workspaces/workspaceId/voice-ai/activate.prefix_padding_ms`; number, optional)
  - min 100; max 1000
- `barge_in_enabled` (`post/api/workspaces/workspaceId/voice-ai/activate.barge_in_enabled`; boolean, optional)

## Example request

```json
{
  "turn_detection_mode": "server_vad",
  "turn_detection_eagerness": "low",
  "turn_detection_threshold": 0.35,
  "silence_duration_ms": 300,
  "prefix_padding_ms": 100,
  "barge_in_enabled": true
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://api.channelautomation.com/api/workspaces/<workspaceId>/voice-ai/activate' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "turn_detection_mode": "server_vad",
  "turn_detection_eagerness": "low",
  "turn_detection_threshold": 0.35,
  "silence_duration_ms": 300,
  "prefix_padding_ms": 100,
  "barge_in_enabled": true
}
'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/workspaces/<workspaceId>/voice-ai/activate';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({
    turn_detection_mode: 'server_vad',
    turn_detection_eagerness: 'low',
    turn_detection_threshold: 0.35,
    silence_duration_ms: 300,
    prefix_padding_ms: 100,
    barge_in_enabled: true
  })
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.channelautomation.com/api/workspaces/<workspaceId>/voice-ai/activate"

payload = {
    "turn_detection_mode": "server_vad",
    "turn_detection_eagerness": "low",
    "turn_detection_threshold": 0.35,
    "silence_duration_ms": 300,
    "prefix_padding_ms": 100,
    "barge_in_enabled": True
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

Voice AI activated with resulting configuration

### 400

Invalid settings or failed activation

### 401

Missing or invalid session

### 403

Workspace owner/admin/manager required

### 500

Unexpected server error

### 503

Feature state or membership unavailable


Source: https://developer.channelautomations.com/api/post-api-workspaces-workspace-id-voice-ai-activate/index.md
