Recent searches


No recent searches

Can I download call recordings?



Edited Jan 11, 2024


7

7

7 comments

I'm able to right-click on the call in Zendesk and "Save audio as..."

1


Hello, Can You provide detailed curl How can I download recorded mp3 voice?

I have ticketId, commenid

Thanks

Pawel

0


image avatar

Eric Nelson

Zendesk Developer Advocacy

Hey Pawel,
 
When you pull the comment via a curl request you'll see the recording_url property. You can then do a curl request to that url to get the recording. 
 
curl --request GET 'https://example.zendesk.com/api/v2/channels/voice/calls/example/twilio/voicemail/recording' \

--output example.mp3
 
You'll need to include an auth header the same way you would for any other api request. 

Hope this helps,

0


When using API to download the call recordings, what's the best way to filter the tickets with recordings attached?

 

0


image avatar

Tipene Hughes

Zendesk Developer Advocacy

Hey Gideon,
 
You’d need to iterate through the results from the Ticket Audits endpoint to determine which tickets have VoiceComment events present. You could then extract the recording_url from the data object for future use. Here’s a basic example of how this could look using Javascript, assuming the audits array being mapped over is the response from a request to the Ticket Audits endpoint:

 
// Array to store recording URLs
const recordings = [];

// Iterating over audit response
audits.map((ticket) => {
ticket.events.map((event) => {
// Save recording_url to recordings array if ticket event is a voice comment
event.type === "VoiceComment" ? recordings.push(event.data.recording_url) : null;
});
});


console.log(recordings);
 
I hope this helps! Feel free to reach out with any questions.

Tipene

0


Is there a way to download call record from multiple tickets using API?

0


Do you think it is possible to use a trigger to call a webhook whenever a call recording is attached to a comment? That way we could automatically fetch new recordings for transcription as soon as they are created.

0


Please sign in to leave a comment.