---
title: "Start an optional Allison Live voice session"
---

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

`POST /api/openai/live/session`

## Authentication

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

## Request body

_Required._

- `workspaceId` (`post/api/openai/live/session.workspaceId`; string, required)
- `sdp` (`post/api/openai/live/session.sdp`; string, required)
  - maxLength 65536
- `instructions` (`post/api/openai/live/session.instructions`; string, optional)
- `voice` (`post/api/openai/live/session.voice`; string, optional)
- `tools` (`post/api/openai/live/session.tools`; array<object>, optional)

## Example request

```json
{
  "workspaceId": "string",
  "sdp": "string",
  "instructions": "string",
  "voice": "string",
  "tools": [
    {}
  ]
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url https://api.channelautomation.com/api/openai/live/session \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "workspaceId": "string",
  "sdp": "string",
  "instructions": "string",
  "voice": "string",
  "tools": [
    {}
  ]
}
'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/openai/live/session';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({
    workspaceId: 'string',
    sdp: 'string',
    instructions: 'string',
    voice: 'string',
    tools: [{}]
  })
};

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/openai/live/session"

payload = {
    "workspaceId": "string",
    "sdp": "string",
    "instructions": "string",
    "voice": "string",
    "tools": [{}]
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

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

print(response.text)
```

## Responses

### 200

Live session ID and SDP answer

### 400

Invalid startup configuration

### 401

Authentication required

### 403

Workspace membership required

### 429

Provider capacity reached

### 500

Session setup unavailable


Source: https://developer.channelautomations.com/api/post-api-openai-live-session/index.md
