Voice / Call Controls
Play an audio file into the call
Play an audio file into the call. The response includes a playback_id you can use to correlate playback lifecycle webhooks.
post/api/v1/voice/calls/{call_id}/play
Request
- Base URL: https://api.frejun.ai
- URL: https://api.frejun.ai/api/v1/voice/calls/{call_id}/play
- Auth: API key in header x-api-key
Path parameters
call_idstring required
Request body
Example request
{
"loop": 1,
"media_url": "https://example.com/audio/greeting.wav",
"on_dtmf": "stop"
}Response
Successful Response
Example response
{
"request_id": "req_9f8e7d6c5b4a3f2e1d0c9b8a"
}Changes
No recorded changes to this operation across all 1 revision of this API.