Error 400 in create Call
# support
r
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
v
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:
Copy code
json
{
  "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](https://docs.vapi.ai/assistants/assistant-hooks). Source: - [Assistant Hooks documentation](https://docs.vapi.ai/assistants/assistant-hooks)
c
Hi OcultDay69, It looks like your assistant's configuration is referencing a tool with ID
a4e835ca-b846-4b23-b748-c1c7a1ed4e39
that no longer exists or was never assigned properly. This can cause the error you're seeing when starting a call. Even if the assistant doesn’t have visible tools assigned, a hook might still be attempting to use a nonexistent tool. To resolve this issue, you can: 1. Update your Assistant Hooks: Modify your assistant's hooks to remove the reference to the missing tool. You can use a simple "say" action as a placeholder:
Copy code
json
   {
     "hooks": [{
       "on": "call.ending",
       "do": [{
         "type": "say",
         "exact": "Thank you for calling. Have a great day!"
       }]
     }]
   }
2. Use the PATCH API: Apply the updated configuration using the PATCH API to ensure there are no invalid tool references. For more guidance, you can refer to the [Assistant Hooks documentation](https://docs.vapi.ai/assistants/assistant-hooks). This should help clear up the issue.