Daco
05/28/2025, 5:56 AMVapi Support Bot
05/28/2025, 5:58 AMjson
{
"type": "object",
"properties": {
"content": { "type": "string" }
}
}
This should resolve the validation issue and let you save the tool.
Source:
- [API Request Node Documentation](https://docs.vapi.ai/workflows/nodes/api-request)Vapi Support Bot
05/28/2025, 5:59 AM"body:type: Invalid literal value, expected 'object'"
, ensure your request body is a valid JSON object. For example:
json
{
"content": "your message"
}
Tip: Use the API Request tool for simple API calls; for complex business logic, a function or cloud function may still be preferable.
Sources:
- [API Request documentation](https://docs.vapi.ai/workflows/nodes/api-request)
- [Changelog: API Request Node](https://docs.vapi.ai/changelog/2025/2/1)
- [Custom Tools Guide](https://docs.vapi.ai/tools/custom-tools#understanding-the-tool-structure)Vapi Support Bot
05/28/2025, 10:16 PMVapi Support Bot
05/28/2025, 10:16 PMDaco
05/28/2025, 10:32 PMDaco
05/29/2025, 4:21 AMKyle Brunker
05/29/2025, 4:30 AMDaco
05/29/2025, 7:40 AMMarcos
05/29/2025, 9:40 AMShubham Bajaj
05/29/2025, 9:25 PMShubham Bajaj
05/29/2025, 9:26 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 insteadDaco
05/30/2025, 3:09 AMDaco
05/30/2025, 3:10 AMMarcos
05/30/2025, 8:17 AMMarcos
05/30/2025, 8:17 AMMarcos
05/30/2025, 8:18 AMMarcos
05/30/2025, 8:18 AMSimonding
05/30/2025, 10:06 AMKyle Brunker
05/30/2025, 3:11 PMDaco
06/02/2025, 4:37 AMMarcos
06/02/2025, 9:00 AMKyle Brunker
06/02/2025, 12:08 PMDaco
06/02/2025, 11:38 PMKyle Brunker
06/03/2025, 11:15 AMDaco
06/03/2025, 11:49 PMKyle Brunker
06/04/2025, 9:03 PMKyle Brunker
06/04/2025, 9:04 PMDaco
06/05/2025, 9:22 AMKyle Brunker
06/06/2025, 12:47 AM