Voice through the API
Your own apps can send voice notes and get spoken replies back. Create an API key first, under Developers, API keys.
- Get a spoken reply: send a message to
POST /api/v1/conversations/messageswithtype: "audio". The response includes anaudioUrlthat works for about an hour. - Send a voice note: on an audio turn, set
messageto the link of an audio file. Codi transcribes it, and the response includes thetranscript. - Streaming replies are text only.
Audio needs the voice add-on and ElevenLabs switched on, with its API key, on Integrations. Voice notes hosted on Infobip, such as WhatsApp audio, also need Infobip. If a voice note can't be fetched or transcribed, the agent replies in text and asks the person to send it again or type it. If the spoken reply can't be made, you get the text reply without an audioUrl.
Need some help? Email support
Something not working? See troubleshooting