API Tool
# support
v
Suggestion: Double-check that the "Color" property in your API tool's schema is set with the correct default value and that the property name matches exactly in both the schema and the test payload. For example, your property definition should look like:
Copy code
json
{
  "color": {
    "type": "string",
    "default": "Red",
    "description": "Color selection"
  }
}
If the default value is set correctly in the schema but not appearing in the test interface, try re-saving the tool configuration or refreshing the page, as the documentation indicates defaults should be reflected if configured properly ([see documentation](https://docs.vapi.ai/api-reference/tools/create?explorer=true)). Source: - [Vapi API Reference: Create Tool](https://docs.vapi.ai/api-reference/tools/create?explorer=true)
l
"body": { "type": "object", "required": [ "Color", "Name" ], "properties": { "Name": { "description": "", "type": "string", "default": "Luke" }, "Color": { "description": "", "type": "string", "default": "Red" } } },
j
Hey, I see what you mean about the default values not showing up in the API tool. Sometimes the issue is that the testing UI doesn’t auto-populate default from the schema—it only validates required fields. One thing to check is if your tool respects default or if it needs explicit test inputs. Can you confirm which version of VAPI you’re on? @Luke
l
That is from the Web UI, is that not the most up to date version? @James Christopher
Or is there a way to see the version?
@User any suggestions or help?
c
Hi @Luke, Could you confirm whether this is happening on a call as well? It might be a UI bug. Please let me know if the issue persists on the calls as well. If the issue is just on the frontend, please provide me with the entire tool configuration JSON (you can find it by clicking the "Code " button).