Make CAll - Schema data function not working
# support
s
Hi, ive added the following code when calling my AI call from VAPI: ], "type" => "outboundPhoneCall", "structuredDataSchema" => [ "type" => "object", "properties" => [ "ConfirmedDPA" => [ "type" => "boolean" ], "field2" => [ "type" => "number" ] ], "required" => ["ConfirmedDPA", "field2"] ] ]; Its not working and I keep getting the following when running my php code: {"message":["property structuredDataSchema should not exist"],"error":"Bad Request","statusCode":400}
v
@soc86 It seems like there might be an issue with the way you're structuring your API call to VAPI. The error message indicates that the
structuredDataSchema
property should not exist in the payload you're sending. To help you better, I would need to see the full context of your API call. However, based on the information provided, it looks like you're trying to include a schema definition in your API call, which might not be supported by VAPI in the way you're attempting to use it. VAPI typically expects specific parameters for making calls, and if
structuredDataSchema
is not one of the expected parameters, the API will return a 400 Bad Request error. Please double-check the VAPI documentation to ensure you're including the correct parameters in your API call. If
structuredDataSchema
is a custom parameter that you need for your application logic, you might need to pass it in a different way, possibly as part of a JSON payload in a parameter that VAPI accepts for additional data. If you continue to experience issues, please provide more details about the API call you're making, including the full request if possible, and I'll be happy to assist you further. If the issue persists, you may need to reach out to VAPI support for more specific guidance on the API usage.
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
s
send me the complete JSON data.
2 Views