---
title: "Create Workspace Agent Draft Test Chat"
method: POST
path: "/api/workspaces/{workspace_id}/agents/test-chat"
---

# Create Workspace Agent Draft Test Chat

`POST /api/workspaces/{workspace_id}/agents/test-chat`

## 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-chat`
- Auth: none declared

## Path parameters

- `workspace_id` string, required

## Request body

- AgentDraftTestChatRequest
  - `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
  - `message` string, required
  - `history` AgentTestChatTurn[]
    - `role` 'user' | 'assistant', required
    - `content` string, required

## Response `200`

Successful Response

- AgentTestChatResponse
  - `reply` string, required
  - `agent_name` string, nullable

## Other responses

- `422`: Validation Error

## Changes

- **2026-11-17** `9ba10fd246a5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/outcallerai/apis/outcallerai-api/changes/api/workspaces/:workspace_id/agents/test-chat/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/9ba10fd246a5?raw)
