Causes the bot to output audio in the meeting. The audio data should be base64-encoded MP3 format.
Authentication
Requires API key authentication via the Authorization header.
Path Parameters
Bot ID (e.g., bot_xxxxxxxxxxx)
Request Body
Audio content type. Currently only audio/mp3 is supported.
Base64 encoded audio data in MP3 format
Response
Returns a 200 status code when the audio request is successfully created.
Example Request
curl -X POST https://app.attendee.dev/api/v1/bots/bot_weIAju4OXNZkDTpZ/output_audio \
-H "Authorization: Token YOUR_API_KEY_HERE" \
-H "Content-Type: application/json" \
-d '{
"type": "audio/mp3",
"data": "SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4Ljc2LjEwMAAAAAAAAAAAAAAA..."
}'
Error Responses
400 Bad Request
Returned when:
- Invalid audio data format
- Missing required fields
- Bot is not in a valid state to output audio
404 Not Found
Returned when the bot ID does not exist.
The audio will play through the bot’s audio output in the meeting. Make sure the bot has joined the meeting before attempting to output audio.