---
title: "Save Voice AI final funnel stage mapping"
description: "Stores workspace-specific mappings from CRM lead-status or appointment status/result values to standard Voice AI final funnel stages."
---

> 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 › Analytics

`PUT /api/analytics/voice-ai-raw-dashboard/funnel-stage-mapping`

Stores workspace-specific mappings from CRM lead-status or appointment status/result values to standard Voice AI final funnel stages.

## Authentication

Requires one of the following:

- `BearerAuth`, http, header `Authorization`, format `JWT`
- `ApiKeyAuth`, apiKey, in header, header `X-API-Key`, format `API_KEY`

## Request body

_Required._

- `workspace_id` (`put/api/analytics/voice-ai-raw-dashboard/funnel-stage-mapping.workspace_id`; string, optional)
- `mapping` (`put/api/analytics/voice-ai-raw-dashboard/funnel-stage-mapping.mapping`; object, optional)

## Example request

```json
{
  "workspace_id": "string",
  "mapping": {}
}
```

## Code samples

### cURL

```bash
curl --request PUT \
  --url https://api.channelautomation.com/api/analytics/voice-ai-raw-dashboard/funnel-stage-mapping \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "workspace_id": "string",
  "mapping": {}
}
'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/analytics/voice-ai-raw-dashboard/funnel-stage-mapping';
const options = {
  method: 'PUT',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({workspace_id: 'string', mapping: {}})
};

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/analytics/voice-ai-raw-dashboard/funnel-stage-mapping"

payload = {
    "workspace_id": "string",
    "mapping": {}
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

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

print(response.text)
```

## Responses

### 200

Saved stage mapping.

### 400

Missing workspace ID.

### 500

Internal server error

#### Example

```json
{
  "error": "Internal server error",
  "details": "string",
  "success": false
}
```

- `error` (`put/api/analytics/voice-ai-raw-dashboard/funnel-stage-mapping.response.500.error`; string, optional)
  - example `"Internal server error"`
- `details` (`put/api/analytics/voice-ai-raw-dashboard/funnel-stage-mapping.response.500.details`; string, optional)
- `success` (`put/api/analytics/voice-ai-raw-dashboard/funnel-stage-mapping.response.500.success`; boolean, optional)
  - example `false`


Source: https://developer.channelautomations.com/api/put-api-analytics-voice-ai-raw-dashboard-funnel-stage-mapping/index.md
