eastern-cyan
eastern-cyan3h ago

Error 400 in create Call

I’m trying to start a call via the Vapi API, and I’m getting this error: "Couldn’t get tool for hook. toolId a4e835ca-b846-4b23-b748-c1c7a1ed4e39 does not exist." However, the assistant I’m trying to call has no tools assigned to it. My orgID: 61d09b13-129f-4353-9eb3-0e7ee89eb6b8 Assistant ID: 378bbdc9-e255-46ca-b6b9-a6ce06c18961
1 Reply
Vapi Support Bot
To fix the error, update your assistant's hooks to remove the reference to the missing tool.
Replace the problematic hook with a simple "say" action like this:
{
"hooks": [{
"on": "call.ending",
"do": [{
"type": "say",
"exact": "Thank you for calling. Have a great day!"
}]
}]
}
{
"hooks": [{
"on": "call.ending",
"do": [{
"type": "say",
"exact": "Thank you for calling. Have a great day!"
}]
}]
}
Update your assistant using the PATCH API, and the error should be resolved.
For more details, see the Assistant Hooks documentation. Source: - Assistant Hooks documentation
⤵️ Mention @Vapi Support Bot for follow-ups 🐥

Did you find this page helpful?