Ais
05/28/2025, 10:09 PMVapi Support Bot
05/28/2025, 10:11 PMjson
"function": {
"name": "validate_customer",
"parameters": {
"type": "object",
"properties": {
"baseRUT": { "type": "string" },
"inputRUT": { "type": "string" }
}
}
}
Ensure your request body is a proper JSON object, not a string. This should resolve the validation error and allow your server to receive the expected data structure.
Source:
- [Vapi Custom Tools Documentation](https://docs.vapi.ai/tools/custom-tools)mr_washingtonz
05/29/2025, 3:28 AMChiranjeet Mishra
05/29/2025, 9:37 PMChiranjeet Mishra
05/29/2025, 9:38 PMGET to POST
- Keep your request body configuration as is
- The body type should automatically resolve to "object" when you have properties defined
\### Option 2: If this should be a GET request
- Remove the entire Request Body section
- Use URL parameters or headers instead for any data you need to send
- GET requests should not have request bodies
**Step-by-step implementation**:
1\. **For POST request (Option 1)**:
- Change the HTTP Method dropdown from "GET" to "POST"
- Add a Content-Type: application/json header if not already present
- Your existing message property configuration should work correctly
2\. **For GET request (Option 2)**:
- Keep GET method
- Remove the "message" property from the Request Body section
- If you need to send the message, add it as a URL parameter instead