---
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`

## Path parameters

- `workspace_id` string, required

## Request body

- AgentDraftTestVoiceSessionRequest
  - `name` string, required
  - `gender` 'MALE' | 'FEMALE'
  - `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'

## 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-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`

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

---

[API](https://skmtc.dev/outcallerai/apis/fastapi.md) · [All operations](https://skmtc.dev/outcallerai/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/outcallerai/fastapi/revisions/6155db644bab/schema)
