AiTitus :)
03/21/2025, 5:30 PMSahil
03/21/2025, 10:08 PMjson
curl --location 'https://api.vapi.ai/chat' \
--header 'Authorization: Bearer private-key' \
--data '{
"messages": [
{
"role": "assistant",
"content": "Thank you for calling XYZ. How may I help you today?"
},
{
"content": "Hey Hi, actually I had a mole in my bathroom",
"role": "user"
}
],
"assistantId": "e5f78c81-69d0-44fc-a59c-21076d3649d1"
}
Instead of assistantID, use the assistant parameter and pass the complete assistant configuration.AiTitus :)
03/21/2025, 10:10 PM