Structured Output creation with Python SDK is not working
Here is the simple test structure I am trying to create with python:
from vapi import Vapi
import config
vapi = Vapi(token=config.VAPI_API_KEY)
structured_output = vapi.structured_outputs.structured_output_controller_create(
name="Test Output",
schema={
"type": "object",
"properties": {
"testField": {"type": "string"}
},
"required": ["testField"]
}
)
print(f'Created structured output: {structured_output.id}')
and it gives "Internal Server Error" , StatusCode : 500.
ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
vapi.core.api_error.ApiError: headers: {'date': 'Mon, 29 Sep 2025 14:57:47 GMT', 'content-type': 'application/json; charset=utf-8', 'content-length': '87', 'c
onnection': 'keep-alive', 'cf-ray': '986c55bf8a2ef5e2-AMS', 'x-powered-by': 'Express', 'access-control-allow-origin': '*', 'x-robots-tag': 'noindex', 'etag':
'W/"57-TXCH3wKnwbC2P5/wyKGoUcqqAWw"', 'cf-cache-status': 'DYNAMIC', 'set-cookie': '_cfuvid=7u5s6fJghtFdkunisLJSaSwl97x1PAzlIGRGu6l8hkw-1759157867649-0.0.1.1-6
04800000; path=/; domain=.vapi.ai; HttpOnly; Secure; SameSite=None', 'server': 'cloudflare', 'alt-svc': 'h3=":443"; ma=86400'}, status_code: 500, body: {'statusCode': 500, 'message': 'Internal server error. Contact support@vapi.ai for help.'}
from vapi import Vapi
import config
vapi = Vapi(token=config.VAPI_API_KEY)
structured_output = vapi.structured_outputs.structured_output_controller_create(
name="Test Output",
schema={
"type": "object",
"properties": {
"testField": {"type": "string"}
},
"required": ["testField"]
}
)
print(f'Created structured output: {structured_output.id}')
and it gives "Internal Server Error" , StatusCode : 500.
ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
vapi.core.api_error.ApiError: headers: {'date': 'Mon, 29 Sep 2025 14:57:47 GMT', 'content-type': 'application/json; charset=utf-8', 'content-length': '87', 'c
onnection': 'keep-alive', 'cf-ray': '986c55bf8a2ef5e2-AMS', 'x-powered-by': 'Express', 'access-control-allow-origin': '*', 'x-robots-tag': 'noindex', 'etag':
'W/"57-TXCH3wKnwbC2P5/wyKGoUcqqAWw"', 'cf-cache-status': 'DYNAMIC', 'set-cookie': '_cfuvid=7u5s6fJghtFdkunisLJSaSwl97x1PAzlIGRGu6l8hkw-1759157867649-0.0.1.1-6
04800000; path=/; domain=.vapi.ai; HttpOnly; Secure; SameSite=None', 'server': 'cloudflare', 'alt-svc': 'h3=":443"; ma=86400'}, status_code: 500, body: {'statusCode': 500, 'message': 'Internal server error. Contact support@vapi.ai for help.'}