LUMIN AI
12/18/2025, 12:41 AMLUMIN AI
12/18/2025, 12:43 AMVapi Support Bot
12/18/2025, 12:44 AMShmiggy
12/18/2025, 12:45 AMLUMIN AI
12/18/2025, 12:48 AMLUMIN AI
12/18/2025, 12:15 PMVapi Support Bot
12/18/2025, 12:17 PMcurl command (replace placeholders as needed):
bash
curl --location 'https://api.vapi.ai/tool' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--data '{
"type": "code",
"name": "get_customer",
"description": "Retrieves customer information by their ID",
"code": "const { customerId } = args;\nconst { API_KEY } = env;\n\nconst response = await fetch(`https://api.example.com/customers/${customerId}`, {headers: { \"Authorization\": `Bearer ${API_KEY}` }});\n\nreturn await response.json();",
"parameters": {
"type": "object",
"properties": {
"customerId": {
"type": "string",
"description": "The unique customer identifier"
}
},
"required": ["customerId"]
}
}'
This allows you to add Code Tools to your assistants until the dashboard issue is resolved.
For more details, see the [official documentation](https://docs.vapi.ai/tools/code-tool).
Source:
- [Vapi Code Tool Documentation](https://docs.vapi.ai/tools/code-tool)Chiranjeet Mishra
12/19/2025, 9:33 PM