Can I download call recordings?

Return to top

5 Comments

  • Scott C.

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

    0
  • Pawel Gorski

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

    I have ticketId, commenid

    Thanks

    Pawel

    0
  • 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
  • Gideon

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

     

    0
  • 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

Please sign in to leave a comment.

Powered by Zendesk