Blekk
05/29/2025, 12:29 PMVapi Support Bot
05/29/2025, 12:31 PMjson
{
"type": "object",
"properties": {
"name": { "type": "string" },
"email": { "type": "string" },
"phone": { "type": "string" }
},
"required": ["name", "email", "phone"]
}
Enter this as your request body schema (not nested under a "body" property), and it should resolve the validation error.
Source:
- [Custom Tools Documentation](https://docs.vapi.ai/tools/custom-tools)Vapi Support Bot
05/29/2025, 12:31 PMjson
{
"type": "object",
"properties": {
"name": { "type": "string" },
"email": { "type": "string" },
"phone": { "type": "string" }
},
"required": ["name", "email", "phone"]
}
Enter this as your request body schema (not nested under a "body" property), and it should resolve the validation error.
Source:
- [Custom Tools Documentation](https://docs.vapi.ai/tools/custom-tools)Vapi Support Bot
05/29/2025, 12:31 PMjson
{
"type": "object",
"properties": {
"name": { "type": "string" },
"email": { "type": "string" },
"phone": { "type": "string" }
},
"required": ["name", "email", "phone"]
}
Enter this as your request body schema (not nested under a "body" property), and it should resolve the validation error.
Source:
- [Custom Tools Documentation](https://docs.vapi.ai/tools/custom-tools)Vapi Support Bot
05/29/2025, 12:31 PMjson
{
"type": "object",
"properties": {
"name": { "type": "string" },
"email": { "type": "string" },
"phone": { "type": "string" }
}
}
**Do not nest these under a "body" property**—just use the structure above. This should resolve the validation error you’re seeing.
See the [Vapi custom tools guide](https://docs.vapi.ai/tools/custom-tools) for more details.
Source:
- [Custom Tools | Vapi Documentation](https://docs.vapi.ai/tools/custom-tools)Vapi Support Bot
05/29/2025, 12:31 PMjson
{
"type": "object",
"properties": {
"name": { "type": "string" },
"email": { "type": "string" },
"phone": { "type": "string" }
}
}
**Do not nest these under a "body" property**—just use the structure above. This should resolve the validation error you’re seeing.
See the [Vapi custom tools guide](https://docs.vapi.ai/tools/custom-tools) for more details.
Source:
- [Custom Tools | Vapi Documentation](https://docs.vapi.ai/tools/custom-tools)Vapi Support Bot
05/29/2025, 12:31 PMjson
{
"type": "object",
"properties": {
"name": { "type": "string" },
"email": { "type": "string" },
"phone": { "type": "string" }
}
}
**Do not nest these under a "body" property**—just use the structure above. This should resolve the validation error you’re seeing.
See the [Vapi custom tools guide](https://docs.vapi.ai/tools/custom-tools) for more details.
Source:
- [Custom Tools | Vapi Documentation](https://docs.vapi.ai/tools/custom-tools)Vapi Support Bot
05/29/2025, 12:32 PMjson
"parameters": {
"type": "object",
"properties": {
"name": { "type": "string" },
"email": { "type": "string" },
"phone": { "type": "string" }
}
}
If your API expects a "body" property, then "body" itself should be an object with its own "properties".
Could you clarify if your API endpoint expects the data inside a "body" property, or should "name", "email", and "phone" be at the root of the JSON payload?
This will help me provide the exact schema you need.
For more details, see the [Vapi Custom Tools documentation](https://docs.vapi.ai/tools/custom-tools#understanding-the-tool-structure).
Source:
- [Vapi Custom Tools documentation](https://docs.vapi.ai/tools/custom-tools#understanding-the-tool-structure)Vapi Support Bot
05/29/2025, 12:32 PMjson
"parameters": {
"type": "object",
"properties": {
"name": { "type": "string" },
"email": { "type": "string" },
"phone": { "type": "string" }
}
}
If your API expects a "body" property, then "body" itself should be an object with its own "properties".
Could you clarify if your API endpoint expects the data inside a "body" property, or should "name", "email", and "phone" be at the root of the JSON payload?
This will help me provide the exact schema you need.
For more details, see the [Vapi Custom Tools documentation](https://docs.vapi.ai/tools/custom-tools#understanding-the-tool-structure).
Source:
- [Vapi Custom Tools documentation](https://docs.vapi.ai/tools/custom-tools#understanding-the-tool-structure)Vapi Support Bot
05/29/2025, 12:32 PMjson
{
"type": "object",
"properties": {
"name": { "type": "string" },
"email": { "type": "string" },
"phone": { "type": "string" }
},
"required": ["name", "email", "phone"]
}
Make sure you are not nesting these fields under a body property unless your API specifically requires it. This should resolve the "expected 'object'" error and let you send the correct data structure to your endpoint.
Source:
- [Custom Tools Documentation](https://docs.vapi.ai/tools/custom-tools)Vapi Support Bot
05/29/2025, 12:32 PMjson
"parameters": {
"type": "object",
"properties": {
"name": { "type": "string" },
"email": { "type": "string" },
"phone": { "type": "string" }
}
}
If your API expects a "body" property, then "body" itself should be an object with its own "properties".
Could you clarify if your API endpoint expects the data inside a "body" property, or should "name", "email", and "phone" be at the root of the JSON payload?
This will help me provide the exact schema you need.
For more details, see the [Vapi Custom Tools documentation](https://docs.vapi.ai/tools/custom-tools#understanding-the-tool-structure).
Source:
- [Vapi Custom Tools documentation](https://docs.vapi.ai/tools/custom-tools#understanding-the-tool-structure)Vapi Support Bot
05/29/2025, 12:32 PMjson
{
"type": "object",
"properties": {
"name": { "type": "string" },
"email": { "type": "string" },
"phone": { "type": "string" }
},
"required": ["name", "email", "phone"]
}
Make sure you are not nesting these fields under a body property unless your API specifically requires it. This should resolve the "expected 'object'" error and let you send the correct data structure to your endpoint.
Source:
- [Custom Tools Documentation](https://docs.vapi.ai/tools/custom-tools)Chiranjeet Mishra
05/30/2025, 10:43 AM