---
title: "Look up customer context for a voice preview"
description: "Served by the standalone Voice API. Requires a Bearer session for a workspace owner/admin/manager when VOICE_AI_TELEPHONY_TURN_CONTROL_V2 is enabled. Legacy flag-off access is preserved. Existing route-specific validation still applies."
---

> 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/lookup-customer`

Served by the standalone Voice API. Requires a Bearer session for a workspace owner/admin/manager when VOICE_AI_TELEPHONY_TURN_CONTROL_V2 is enabled. Legacy flag-off access is preserved. Existing route-specific validation still applies.

## Authentication

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

## Path parameters

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

## Request body

- `phone` (`post/api/workspaces/workspaceId/voice-ai/lookup-customer.phone`; string, optional) — Customer phone.
- `email` (`post/api/workspaces/workspaceId/voice-ai/lookup-customer.email`; string, optional) — Customer email.
- `lookup_mode` (`post/api/workspaces/workspaceId/voice-ai/lookup-customer.lookup_mode`; string, optional) — Existing configured lookup mode.
- `query` (`post/api/workspaces/workspaceId/voice-ai/lookup-customer.query`; object, optional) — Lookup query overrides.
- `body` (`post/api/workspaces/workspaceId/voice-ai/lookup-customer.body`; object, optional) — Lookup request body overrides.

## Example request

```json
{
  "phone": "string",
  "email": "string",
  "lookup_mode": "string",
  "query": {},
  "body": {}
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://api.channelautomation.com/api/workspaces/<workspaceId>/voice-ai/lookup-customer' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "phone": "string",
  "email": "string",
  "lookup_mode": "string",
  "query": {},
  "body": {}
}
'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/workspaces/<workspaceId>/voice-ai/lookup-customer';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({phone: 'string', email: 'string', lookup_mode: 'string', query: {}, body: {}})
};

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/lookup-customer"

payload = {
    "phone": "string",
    "email": "string",
    "lookup_mode": "string",
    "query": {},
    "body": {}
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

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

print(response.text)
```

## Responses

### 200

Successful operation

### 400

Invalid call or preview parameters

### 401

Missing or invalid session

### 403

Workspace owner/admin/manager required

### 404

Requested resource not found

### 409

Call is not in a state permitting this operation

### 500

Operation failed

### 503

Access verification or service unavailable


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