agent_id: ID of the agent to dispatch.history: Optional list of prior conversation turnschat_thread_id: Optional chat thread IDquery_source: Required source of the voice call request (e.g., 'web')chat_thread_id used for this call.curl --location -g --request POST 'https:///response-service/api/v2/agents//voice-chat' \
--header 'Ocp-Apim-Subscription-Key: ' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"chat_thread_id": 1,
"history": [
{
"bot": "Hi there!",
"user": "Hello"
}
],
"query_source": "web"
}'{
"data": {
"chat_thread_id": 123,
"livekit_url": "wss://your-livekit-server.com",
"participant_token": "your-participant-token"
},
"message": "Successfully dispatched agent and generated participant token",
"success": true
}