Start an Agent session
Start a new session with a deployed agent.
Authorizations
Authentication using a Pipecat Cloud API token.
Path Parameters
Name of the agent to start
Body
Whether to create a Daily room for the service instance
true
Optional configuration for the Daily room. Only used when createDailyRoom is true.
See Daily API documentation for supported properties.
Optional configuration for the Daily meeting token. Only used when createDailyRoom is true.
See Daily API documentation for supported properties.
Whether to use the default STUN/TURN ICE servers provided by Pipecat Cloud.
true
Explicitly specify which transport the bot should use.
daily, webrtc, websocket "webrtc"
Arbitrary user data / configuration object to pass to the service instance. Accessible as the first parameter of the bot method or custom entry point. Maximum size: 1 MB for transport: "daily" or "webrtc", 4 KB for "websocket". For transport: "websocket", the body is returned in the response's body field base64-encoded; the service must be deployed with websocket_auth = "token" to use this encoding convenience. See the Starting Sessions docs for details.
Response
Service started successfully
HMAC session token for WebSocket authentication (only when transport is "websocket")
"eyJzaCI6Im15LWFnZW50Lm15LW9yZyIsImV4cCI6MTcxMjgwMDAwMCwibm9uY2UiOiJhYmMxMjMifQ.dGVzdC1zaWduYXR1cmU"
WebSocket URL to connect to (only when transport is "websocket")
"wss://us-west.api.pipecat.daily.co/ws/generic/my-agent.my-org"
Base64-encoded JSON body for the bot (only when transport is "websocket" and the request included a body). Append to wsUrl as a ?body= query parameter when connecting.
"eyJjYWxsZXJfaWQiOiJhYmMxMjMifQ=="
URL of the created Daily room (if createDailyRoom was set to true)
"https://cloud-354b1860310a444ba0f528b6a2f467c4.daily.co/qZbK9nyXCDCmQ0zDDZta"
Token to access the Daily room (if createDailyRoom was set to true)
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
Session ID for the created session
"639f91d8-d511-4677-a83b-bd7564d5d92f"
ICE server configuration (only included when enableDefaultIceServers is true)