When to use api request tool vs custom tool?
# support
g
Hi there, Just trying to understand any reasons for implementing a custom tool call, as opposed to just creating an endpoint and using the api request tool? Are there any benefits to using one over the other? I'm guessing the api request might be quicker as it'll save an extra request/less latency?
v
Use the API Request tool when you need to make a simple HTTP call to an external API directly from your workflow—it's quick to set up and ideal for straightforward integrations. For example:
Copy code
json
{
  "type": "apiRequest",
  "method": "POST",
  "url": "https://api.example.com/data"
}
If you need advanced logic, custom server-side processing, or richer user feedback, consider a Custom Tool instead. [Learn more](https://docs.vapi.ai/tools/custom-tools) Source: - [Custom Tools](https://docs.vapi.ai/tools/custom-tools)
c
It is somewhat better to use the API request tool since it is fetching a result from another source. Let us know if you need help with your implementation.
2 Views