Ali M
01/12/2025, 10:53 PMVapi
01/12/2025, 10:55 PMbash
curl --request POST \
--url https://api.vapi.ai/your-webhook-endpoint \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'CF-Access-Client-Id: YOUR_SERVICE_TOKEN_ID' \
--header 'CF-Access-Client-Secret: YOUR_CLIENT_SECRET' \
--data '{
"data": "your_payload"
}'
Make sure to replace YOUR_ACCESS_TOKEN
, YOUR_SERVICE_TOKEN_ID
, YOUR_CLIENT_SECRET
, and your_payload
with your actual access token, service token ID, client secret, and the payload you want to send.
If you've set everything up correctly and are still experiencing issues, it's possible there may be a configuration error or an issue with how the headers are being passed through VAPI. In that case, please double-check your setup within VAPI to ensure that the headers are correctly configured.
If you continue to face difficulties, please ask support for more info on this, as they may need to look into your specific setup to provide a more tailored solution.Vapi
01/12/2025, 10:55 PMAli M
01/12/2025, 11:44 PMVapi
01/12/2025, 11:44 PMjson
{
"headers": {
"CF-Access-Client-Id": "your_service_token_id",
"CF-Access-Client-Secret": "your_client_secret"
}
}
Replace your_service_token_id
and your_client_secret
with your actual Cloudflare service token ID and client secret. When you configure your tool call in VAPI, ensure that these headers are included in the request being sent to your n8n instance.
If you're unsure where to add these in the VAPI interface or if the tool you're using doesn't seem to support custom headers, please ask support for more info on this, and they can guide you through the process.Ali M
01/12/2025, 11:55 PMVapi
01/12/2025, 11:56 PMShubham Bajaj
01/13/2025, 12:01 PMAli M
01/13/2025, 7:34 PMShubham Bajaj
01/14/2025, 9:12 PM