Skip to main content
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 URL
  • dailyToken: temporary participant token
  • sessionId: Butter call/session ID (call_...)
This is the customer-facing session start flow used by the agent preview UI.
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:
  1. Create an SDP offer from your client.
  2. Send the offer to the preview API.
  3. Apply the returned SDP answer in your client.
  4. Continue ICE candidate exchange until connected.
This docs section intentionally stays at flow level. It does not expose low-level transport internals.