---
title: "Preview an agent"
method: POST
path: "/api/v1/public/agents/{agent_id}/preview"
tags: ["public"]
---

# Preview an agent

`POST /api/v1/public/agents/{agent_id}/preview`

## 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/v1/public/agents/{agent_id}/preview`
- Auth: none declared. Required headers: `Idempotency-Key`

Start a test-only browser voice session for an agent. No customer lead is called.

## Path parameters

- `agent_id` string, required

## Headers

- `Idempotency-Key` string, required

## Request body

- PublicAgentPreviewRequest
  - `useCaseId` string, nullable

## 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-21** `2a1adc380310`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/outcallerai/apis/outcallerai-api/changes/api/v1/public/agents/:agent_id/preview/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)
