---
title: "Create Workspace Agent Draft Test Voice Session"
method: POST
path: "/api/workspaces/{workspace_id}/agents/test-voice-session"
---

# Create Workspace Agent Draft Test Voice Session

`POST /api/workspaces/{workspace_id}/agents/test-voice-session`

## Request

- Base URL: `https://api.outcallerai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.outcallerai.com/api/workspaces/{workspace_id}/agents/test-voice-session`
- Auth: none declared

## Path parameters

- `workspace_id` string, required

## Request body

- AgentDraftTestVoiceSessionRequest
  - `name` string, required
  - `gender` 'MALE' | 'FEMALE'
  - `role` string, nullable
  - `voiceId` string[]
  - `voiceUrl` string, nullable
  - `primaryLanguage` string, nullable
  - `useCaseId` string, nullable
  - `temperature` number, nullable
  - `agentTalksFirst` boolean, nullable
  - `interruptable` boolean, nullable
  - `vadEnabled` boolean, nullable
  - `minimumTurnDuration` integer, nullable
  - `turnEndpointDelay` integer, nullable
  - `minimumInterruptionDuration` integer, nullable
  - `provider` 'ultravox' | 'gemini' | 'selfhost'

## Response `200`

Successful Response

- AgentTestVoiceSessionResponse
  - `join_url` string, required
  - `session_id` string, required
  - `call_id` string, required
  - `provider` string, required
  - `agent_name` string, nullable
  - `org_name` string, nullable
  - `ws_url` string, nullable

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-28** `57f067366487`: 1 info
  - added the new optional request property `role`
- **2026-09-11** `7777acfe5047`: 1 info
  - added the new `selfhost` enum value to the request property `provider`
- **2026-08-25** `c38469b3aab0`: 1 info
  - added the new optional request property `primaryLanguage`
- **2026-07-31** `7c9aff2501f3`: 1 warning, 1 info
  - removed the request property `campaignId`
  - added the new optional request property `useCaseId`

[Operation history](https://skmtc.dev/outcallerai/apis/outcallerai-api/changes/api/workspaces/:workspace_id/agents/test-voice-session/post.md)

---

[API](https://skmtc.dev/outcallerai/apis/outcallerai-api.md) - [All operations](https://skmtc.dev/outcallerai/apis/outcallerai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/outcallerai/apis/outcallerai-api/revisions/40736cf433b4?raw)
