---
title: "Patch shared keys without modifying any agent script"
description: "Requires workspace owner, admin or manager. No page-load initialization. Creation requires capability version 1 from voice_service, ingest_worker and trigger."
---

> 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 › Voice AI

`PUT /api/workspaces/{workspaceId}/voice-ai/settings/shared`

Requires workspace owner, admin or manager. No page-load initialization. Creation requires capability version 1 from voice_service, ingest_worker and trigger.

## Authentication

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

## Path parameters

- `workspaceId` (`put/api/workspaces/workspaceId/voice-ai/settings/shared.path.workspaceId`; string, required)

## Request body

_Required._

- `base_revision` (`put/api/workspaces/workspaceId/voice-ai/settings/shared.base_revision`; integer, optional)
  - min 0
- `apiKey` (`put/api/workspaces/workspaceId/voice-ai/settings/shared.apiKey`; string, optional)
- `enabled` (`put/api/workspaces/workspaceId/voice-ai/settings/shared.enabled`; boolean, optional)
- `inbound_enabled` (`put/api/workspaces/workspaceId/voice-ai/settings/shared.inbound_enabled`; boolean, optional)
- `outbound_enabled` (`put/api/workspaces/workspaceId/voice-ai/settings/shared.outbound_enabled`; boolean, optional)
- `max_concurrent_calls` (`put/api/workspaces/workspaceId/voice-ai/settings/shared.max_concurrent_calls`; integer, optional)
  - min 1; max 100
- `outbound_share_percent` (`put/api/workspaces/workspaceId/voice-ai/settings/shared.outbound_share_percent`; integer, optional) — Outbound share of total workspace capacity. At least one inbound slot remains when the total is two or more.
  - min 10; max 100; default `70`
- `inbound_hours` (`put/api/workspaces/workspaceId/voice-ai/settings/shared.inbound_hours`; object, optional) — Team hours and team_ring_seconds (10 through 60)
- `turn_detection_mode` (`put/api/workspaces/workspaceId/voice-ai/settings/shared.turn_detection_mode`; string, optional)
  - one of `"server_vad"`, `"semantic_vad"`

## Example request

```json
{
  "base_revision": 0,
  "apiKey": "string",
  "enabled": true,
  "inbound_enabled": true,
  "outbound_enabled": true,
  "max_concurrent_calls": 1,
  "outbound_share_percent": 70,
  "inbound_hours": {},
  "turn_detection_mode": "server_vad"
}
```

## Code samples

### cURL

```bash
curl --request PUT \
  --url 'https://api.channelautomation.com/api/workspaces/<workspaceId>/voice-ai/settings/shared' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "base_revision": 0,
  "apiKey": "string",
  "enabled": true,
  "inbound_enabled": true,
  "outbound_enabled": true,
  "max_concurrent_calls": 1,
  "outbound_share_percent": 70,
  "inbound_hours": {},
  "turn_detection_mode": "server_vad"
}
'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/workspaces/<workspaceId>/voice-ai/settings/shared';
const options = {
  method: 'PUT',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({
    base_revision: 0,
    apiKey: 'string',
    enabled: true,
    inbound_enabled: true,
    outbound_enabled: true,
    max_concurrent_calls: 1,
    outbound_share_percent: 70,
    inbound_hours: {},
    turn_detection_mode: 'server_vad'
  })
};

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/settings/shared"

payload = {
    "base_revision": 0,
    "apiKey": "string",
    "enabled": True,
    "inbound_enabled": True,
    "outbound_enabled": True,
    "max_concurrent_calls": 1,
    "outbound_share_percent": 70,
    "inbound_hours": {},
    "turn_detection_mode": "server_vad"
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

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

print(response.text)
```

## Responses

### 200

Successful response with masked settings

#### Example

```json
{
  "success": true,
  "agent": {},
  "legacy": true,
  "uses_builtin": true,
  "agents": [
    {}
  ],
  "config": {}
}
```

- `success` (`put/api/workspaces/workspaceId/voice-ai/settings/shared.response.200.success`; boolean, optional)
- `agent` (`put/api/workspaces/workspaceId/voice-ai/settings/shared.response.200.agent`; object, optional) — Profile metadata and name without voice_config or credentials
- `legacy` (`put/api/workspaces/workspaceId/voice-ai/settings/shared.response.200.legacy`; boolean, optional) — True until profiles have been explicitly created
- `uses_builtin` (`put/api/workspaces/workspaceId/voice-ai/settings/shared.response.200.uses_builtin`; boolean, optional) — True when an OpenAI voice_ai block or profiles exist; controls the built-in fleet and tour
- `agents` (`put/api/workspaces/workspaceId/voice-ai/settings/shared.response.200.agents`; array<object>, optional) — Without profiles the latest legacy voice row is returned. A built-in config without a pointer returns a legacy entry with null agent_id that opens workspace settings without initialization.
- `config` (`put/api/workspaces/workspaceId/voice-ai/settings/shared.response.200.config`; object, optional) — Normalized settings with credential configured booleans

### 400

Invalid request or unavailable agent

### 401

Authentication required

### 403

Workspace admin or manager required

### 404

Agent not found

### 409

Stale revision

### 500

Service error

### 503

Migration or consumer capabilities unavailable


Source: https://developer.channelautomations.com/api/put-api-workspaces-workspace-id-voice-ai-settings-shared/index.md
