The Reverend
01/23/2025, 2:20 PM9c1fa660-32d3-439b-b2f7-1e36e7161150Vapi
01/23/2025, 2:22 PMassistant.model.tools.server.secret parameter to set your API key. This secret will be sent as a header called x-vapi-secret.
Here's a general guide on how you can set this up:
1. Access the VAPI interface where you configure your tools.
2. Locate the section where you can set the server secret.
3. Enter your API key as the value for the assistant.model.tools.server.secret.
4. Save your configuration.
If you've already done this and it's not working, please ensure that the tool you're using is correctly configured to include headers when making requests. If the tool is a custom tool, you might need to review its documentation or configuration settings to ensure it's capable of including headers.
If you continue to face issues, please ask support for more info on this, as they can provide more detailed assistance and troubleshooting specific to your setup.Vapi
01/23/2025, 2:22 PMShubham Bajaj
01/24/2025, 9:59 AMThe Reverend
01/25/2025, 12:09 AMShubham Bajaj
01/25/2025, 8:47 PMThe Reverend
01/25/2025, 9:10 PMMarcos Polanco
01/29/2025, 5:02 AMzyf
02/02/2025, 12:29 AMShubham Bajaj
02/03/2025, 5:26 PMAndrew
02/04/2025, 3:16 PMShubham Bajaj
02/06/2025, 8:10 AMDoxy
02/09/2025, 10:08 PMcurl --location --request PATCH 'https://api.vapi.ai/tool/{toolId}' \
--header 'Authorization: Bearer {token}' \
--header 'Content-Type: application/json' \
--data '{
"function": {
...
},
"server": {
"url": "https://URL",
"timeoutSeconds": 30,
"headers": {
"x-api-key": "my-api-key-here"
}
},
"async": true
}'
The API response indicates that the headers were accepted, the header also appears in the corresponding GET request on the same tool, however the downstream call does not attach the header to the requestChiranjeet Mishra
02/10/2025, 6:06 AMShubham Bajaj
02/10/2025, 9:09 AMDoxy
02/10/2025, 9:30 AMChiranjeet Mishra
02/10/2025, 9:31 AMDoxy
02/10/2025, 9:32 AMDoxy
02/10/2025, 9:33 AMDoxy
02/10/2025, 9:49 AMDoxy
02/10/2025, 9:58 AMSahil
02/10/2025, 10:37 AMSahil
02/10/2025, 10:37 AMDoxy
02/10/2025, 10:39 AMDoxy
02/10/2025, 10:40 AMDoxy
02/10/2025, 10:40 AMChiranjeet Mishra
02/10/2025, 10:41 AMNoah Vandal
02/11/2025, 2:03 AMChiranjeet Mishra
02/12/2025, 11:26 AMclarkkent
02/14/2025, 12:34 PMclarkkent
02/14/2025, 12:47 PMcurl -X PATCH https://api.vapi.ai/tool/toolcallId \
-H "Authorization: Bearer vapiapikey" \
-H "Content-Type: application/json" \
-d '{
"function": {
"name": "toolcallname",
"description": "some description",
"parameters": {
"type": "object",
"properties": {}
}
},
"server": {
"url": "webhookurl",
"timeoutSeconds": 30,
"headers": {
"x-vapi-secret": "Bearer API_KEY"
}
},
"async": false
}'The Reverend
02/14/2025, 2:50 PMChiranjeet Mishra
02/14/2025, 3:22 PMff
02/26/2025, 1:35 PMChiranjeet Mishra
03/02/2025, 2:23 PM