Preview & Voice Selection
Preview Agent Session
Start a live preview session to test an agent before assigning a phone number.
POST
Use preview mode to test an agent directly from the dashboard (or your own client) without placing a PSTN call.
What this endpoint does
POST /api/start/{agent_id} creates a temporary preview session and returns connection details:
dailyRoom: temporary room URLdailyToken: temporary participant tokensessionId: Butter call/session ID (call_...)
string
required
Agent ID to preview (format:
agent_...).boolean
When
true, requests creation of a room for this preview session.object
Optional room configuration passed through to the preview room provider.
object
Optional token configuration for the preview participant.
object
Optional custom payload forwarded to the preview bot runtime.
Response
string
Preview room URL.
string
Preview participant token.
string
Preview session call ID (
call_...).Offer/Answer testing flow (custom WebRTC clients)
If you are building a custom WebRTC test client, Butter preview also supports an offer/answer exchange:- Create an SDP offer from your client.
- Send the offer to the preview API.
- Apply the returned SDP answer in your client.
- Continue ICE candidate exchange until connected.
This docs section intentionally stays at flow level. It does not expose low-level transport internals.