jack-lynq.ai
06/04/2025, 5:08 PMVapi Support Bot
06/04/2025, 5:10 PMbash
curl -X POST https://api.vapi.ai/file \
-H "Authorization: Bearer <token>" \
-H "Content-Type: multipart/form-data" \
-F file=@<file1>
This will upload your file and return a file ID. However, the documentation does not specify how to directly associate this file with a knowledge base or update an assistant's access via API, so further steps may require dashboard actions or additional API endpoints not covered here.
Sources:
- [Vapi API Reference: Upload File](https://docs.vapi.ai/api-reference/files/create)
- [Vapi API Reference: List Knowledge Bases](https://docs.vapi.ai/api-reference/knowledge-bases/list)
- [Vapi API Reference: Get Knowledge Base](https://docs.vapi.ai/api-reference/knowledge-bases/get)
- [Vapi API Reference: Create Assistant](https://docs.vapi.ai/api-reference/assistants/create-assistant)Kings_big💫
06/05/2025, 6:37 AMjack-lynq.ai
06/05/2025, 12:03 PM