Thanks a mill for the help @Vignxt Flow . Please find the code snippet below
# API endpoint
url = "https://api.vapi.ai/structured-output"
# JSON payload for structured output schema
payload = {
"name": "Questions",
"schema": {
"type": "array",
"items": {
"type": "object",
"properties": {
"question": {"type": "string"},
"expected_answer": {"type": "string"},
"answer": {"type": "string"}
}
}
}
}