Samet Şimşek
04/13/2025, 4:24 PMVapi Support Bot
04/13/2025, 4:26 PM/messages
endpoint from a server may not be fully supported or documented yet. The text chat endpoints for testing assistants are still under development, as mentioned in a [Discord thread](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1339978679119249469).
However, there are several alternative approaches for server-to-server communication with your assistant:
1. **Server URLs**: You can set up [Server URLs](https://docs.vapi.ai/server-url) that enable your application to receive data and communicate with Vapi during conversations.
2. **Control URL for Message Injection**: According to a [Discord thread](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1339634926248525935), you can request a "control URL" when creating a room, which can be used to inject messages (system/user) into the conversation from your backend.
3. **OpenAI Chat Completions Integration**: As noted in the [changelog](https://docs.vapi.ai/changelog/2024/12/11), you can integrate your Assistant with OpenAI's chat completions by specifying messages
and an assistantId
.
Regarding pricing, I found that:
- Usage and costs can be tracked on an assistant basis
- There's an API available for [querying usage](https://api.vapi.ai/api#/Analytics/AnalyticsController_query), grouped by assistant
- An end-of-call report webhook might include the cost of the call
Is there anything else you'd like to know about these server-to-server communication options?
Sources:
- [Discord thread about text chat endpoints](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1339978679119249469)Vapi Support Bot
04/13/2025, 4:26 PMKings_big💫
04/14/2025, 8:31 AMKings_big💫
04/14/2025, 8:33 AMSamet Şimşek
04/14/2025, 9:13 AMKings_big💫
04/14/2025, 9:16 AMKings_big💫
04/14/2025, 9:19 AMSamet Şimşek
04/15/2025, 1:29 AMKings_big💫
04/15/2025, 6:33 AM