Injecting a Message
# support
r
Apart from the "say" message type, what other message types are there? example json for injecting a message: { "type": "say", "message": "Welcome to Vapi, this message was injected during the call." } #
v
@RC In addition to the "say" message type, VAPI may support various other message types depending on its capabilities and the specific implementation. Common message types in voice APIs often include: - `play`: to play an audio file. - `record`: to record the caller's voice. - `gather`: to collect digits input by the caller. - `redirect`: to redirect the call to another URL or function. - `hangup`: to end the call. However, since I don't have the specific details of all the message types supported by VAPI, please ask support for more info on this to get a comprehensive list of message types and their respective JSON structures.
You can continue this conversation by mentioning me in the message.
s
@RC visit https://api.vapi.ai/api-json# > components > schemas> ClientInboundMessage to check other message types.
r
@Shubham Bajaj thankyou! 🫡
@Shubham Bajaj tried it with the https://api.vapi.ai/calls/{callId} endpoint but got 404 errors. any advice?
s
can you share CURL and response?