jonjon
07/15/2025, 5:35 PMChiranjeet Mishra
07/16/2025, 11:47 PMChiranjeet Mishra
07/17/2025, 2:30 PMX- headers in your <Dial><Sip> URL, reference them in your assistant’s firstMessage using {{variableName}}, and ensure Twilio isn't stripping headers..kingdevil
08/18/2025, 3:57 PMChiranjeet Mishra
10/11/2025, 8:57 PMX- headers, let us knowkingdevil
10/13/2025, 7:59 AMkingdevil
06/04/2026, 2:20 PMChiranjeet Mishra
06/04/2026, 9:33 PM{
"headers": {
"X-Tenant-Id": "acme-corp",
"X-Env": "production"
}
}
Results in Vapi sending:
POST /vapi/webhook HTTP/1.1
Host: your-server.com
Content-Type: application/json
X-Tenant-Id: acme-corp
X-Env: production
If you’re updating an existing assistant, you can add headers using a PATCH request:
curl -X PATCH https://api.vapi.ai/assistant/ASSISTANT_ID \
-H "Authorization: Bearer YOUR_VAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"server": {
"url": "https://your-server.com/vapi/webhook",
"headers": {
"X-Tenant-Id": "acme-corp"
}
}
}'
If you’re specifically trying to access SIP X- headers received from your SIP provider inside the assistant, could you share an example of the header you’re sending and where you’re expecting to access it? That will help us determine whether the header is being passed through the SIP ingress path correctly or if additional configuration is needed.
Best, Vapi Supportkingdevil
06/05/2026, 8:05 AMkingdevil
06/05/2026, 11:07 AMChiranjeet Mishra
06/05/2026, 7:08 PMvariableValues in the logs, the main thing is to reference the key exactly as it appears there, including the same casing.
A couple things to keep in mind:
• LiquidJS is case-sensitive.
• If the key contains hyphens, you can’t use normal dot syntax.
Examples:
{{ accountId }}
For keys with hyphens:
{{ variableValues["X-Account-Id"] }}
Using {{ X-Account-Id }} won’t work because Liquid interprets that as subtraction.
I’d also recommend using a fallback so missing headers don’t resolve to an empty string:
Greet {{ callerName | default: "the caller" }} and pull up account {{ accountId }}.kingdevil
06/08/2026, 11:44 AMChiranjeet Mishra
06/09/2026, 5:49 AM//your assistant prompt up here
UCID: {{ucid}}kingdevil
06/09/2026, 11:14 AMkingdevil
06/09/2026, 11:15 AMChiranjeet Mishra
06/09/2026, 7:22 PM