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

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

---

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