John George
04/30/2025, 3:37 AMVapi Support Bot
04/30/2025, 3:39 AMserver object configuration to avoid sending sensitive credentials in the request body:
javascript
curl -X PATCH 'https://api.vapi.ai/assistant/{assistant_id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"server": {
"url": "https://your-server-url.com",
"secret": "your-secret-key",
"headers": {
"custom-header": "header-value"
}
}
}'
This approach uses custom headers for authentication instead of including credentials in the body.
Sources:
- [Discord conversation about custom headers](https://discord.com/channels/1211482211119796234/1341692740454584331)
- [Vapi changelog](https://docs.vapi.ai/changelog/2024/10/13)John George
04/30/2025, 3:32 PMJohn George
04/30/2025, 3:33 PMVapi Support Bot
04/30/2025, 3:34 PMserver object configuration to avoid sending sensitive credentials in request bodies:
javascript
"server": {
"url": "https://your-server-url.com",
"secret": "your-secret-key",
"headers": {
"custom-header": "header-value"
}
}
This approach uses custom headers for authentication instead of including credentials in the body.
Source:
- [Discord conversation about security concerns](https://discord.com/channels/1211482211119796234/1336716627915309116)John George
04/30/2025, 3:36 PMJohn George
04/30/2025, 3:40 PMShubham Bajaj
04/30/2025, 3:47 PMJohn George
04/30/2025, 3:47 PMJohn George
04/30/2025, 3:48 PMJohn George
04/30/2025, 3:48 PMShubham Bajaj
04/30/2025, 3:49 PMShubham Bajaj
04/30/2025, 3:50 PMJohn George
04/30/2025, 3:50 PMJohn George
04/30/2025, 3:50 PMJohn George
04/30/2025, 3:50 PMJohn George
04/30/2025, 3:51 PMJohn George
04/30/2025, 3:51 PMShubham Bajaj
04/30/2025, 3:52 PMJohn George
04/30/2025, 3:52 PMJohn George
04/30/2025, 3:52 PMShubham Bajaj
04/30/2025, 3:54 PMShubham Bajaj
04/30/2025, 4:22 PMupdate spoke with @John George about this and will inform the team.