Request Body API Tool Error

To fix the "body.type: Invalid literal value, expected 'object'" error, define your request body schema like this:

{
  "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:

⤵️ Mention @Vapi Support Bot for follow-ups 🐥

Was this page helpful?