fredo
08/06/2025, 4:54 PMVapi Support Bot
08/06/2025, 4:57 PMjson
{
"query": "search term",
"pageLimit": "10",
"locationId": "your-location-id"
}
Make sure all required fields are present and match the API's expected format. Test again after updating—this should resolve the 422 error if the body is sent correctly.
Source:
- [Custom Tools Documentation](https://docs.vapi.ai/tools/custom-tools)fredo
08/06/2025, 7:41 PMfredo
08/06/2025, 8:03 PMVapi Support Bot
08/06/2025, 8:05 PMjson
{
"query": "search term",
"pageLimit": "10",
"locationId": "your-location-id"
}
Do not use curly brackets in the headers; only use this format in the Request Body area. This should ensure the body is sent correctly and resolve the 422 error.
[See Custom Tools Documentation](https://docs.vapi.ai/tools/custom-tools)
Source:
- [Custom Tools Documentation](https://docs.vapi.ai/tools/custom-tools)fredo
08/06/2025, 8:14 PMVapi Support Bot
08/06/2025, 8:15 PMAuthorization: Bearer <sub-account-specific-token>
This should grant the correct permissions and resolve the access error.
[See Custom Tools Documentation](https://docs.vapi.ai/tools/custom-tools)
Source:
- [Custom Tools Documentation](https://docs.vapi.ai/tools/custom-tools)fredo
08/06/2025, 8:38 PMVapi Support Bot
08/06/2025, 8:41 PMlocationId you are sending in your request body exactly matches the sub-account (location) for which you generated the API token?
A mismatch here can cause a 403 error even if the token has all scopes.
Let me know!
Source:
- [Custom Tools Documentation](https://docs.vapi.ai/tools/custom-tools)fredo
08/06/2025, 8:57 PMVapi Support Bot
08/06/2025, 8:58 PM