---
title: "Archive a Voice AI API tool"
description: "Served by the separate Voice API. Requires verified workspace owner/admin membership and VOICE_AI_API_TOOLS enabled. Credentials never appear in responses."
---

> 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

`DELETE /api/workspaces/{workspaceId}/voice-ai/tools/{toolId}`

Served by the separate Voice API. Requires verified workspace owner/admin membership and VOICE_AI_API_TOOLS enabled. Credentials never appear in responses.

## Authentication

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

## Path parameters

- `workspaceId` (`delete/api/workspaces/workspaceId/voice-ai/tools/toolId.path.workspaceId`; string, required)
- `toolId` (`delete/api/workspaces/workspaceId/voice-ai/tools/toolId.path.toolId`; string, required)
  - format `uuid`

## Request body

_Required._

- `version` (`delete/api/workspaces/workspaceId/voice-ai/tools/toolId.version`; integer, optional) — Required current saved version for update, archive and test.

## Example request

```json
{
  "version": 0
}
```

## Code samples

### cURL

```bash
curl --request DELETE \
  --url 'https://api.channelautomation.com/api/workspaces/<workspaceId>/voice-ai/tools/<toolId>' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "version": 0
}'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/workspaces/<workspaceId>/voice-ai/tools/<toolId>';
const options = {
  method: 'DELETE',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({version: 0})
};

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/tools/<toolId>"

payload = { "version": 0 }
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

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

print(response.text)
```

## Responses

### 200

Successful operation

### 400

Invalid request

### 401

Missing or invalid access token

### 403

Workspace admin required or feature disabled

### 404

Tool not found

### 409

Version, name or execution conflict

### 413

Request too large

### 429

Test rate limit exceeded

### 503

Storage or credential service unavailable


Source: https://developer.channelautomations.com/api/delete-api-workspaces-workspace-id-voice-ai-tools-tool-id/index.md
