Raju
01/29/2025, 1:42 AMAtlas
01/29/2025, 1:42 AMVapi
01/29/2025, 1:44 AMVapi
01/29/2025, 1:45 AMhttp
POST /api/assistant/{assistant_id}/tools
Authorization: Bearer your-api-token
Content-Type: application/json
{
"tool_name": "your_new_tool",
"tool_config": {
// ... configuration details for your tool ...
}
}
Replace {assistant_id}
with the ID of your assistant, your-api-token
with your actual API token, and the JSON payload with the appropriate configuration for your tool.
Please note that the actual endpoint, HTTP method, and request payload can vary based on the VAPI's API design. You should consult the VAPI documentation for the exact details on how to add a tool to an assistant.
If you need further assistance or specific instructions, please let me know, and I can provide more detailed guidance.Vapi
01/29/2025, 1:45 AMShubham Bajaj
01/29/2025, 10:37 AMexample
curl -X PATCH https://api.vapi.ai/assistant/id \
-H "Authorization: Bearer 00a037c8-3c5e-4228-ac46-c855d9b3e201" \
-H "Content-Type: application/json" \
-d '{
"model": {
"provider": "openai",
"model": "gpt-4o",
"toolIds": [
"inert-tool-id-here"
]
}
}'