Legacy Dev Forum Posts

 View Only

Sign Up

Token expiring immediately when downloading a conversation

  • 1.  Token expiring immediately when downloading a conversation

    Posted 06-05-2025 18:14

    ankitsuhail | 2018-11-01 17:02:52 UTC | #1

    Hello,

    I need some help in getting the conversation downloaded using the API

    While Automating the call download process API I came around certain issues in the workflow. I am using the following steps to download calls.

    1. Authentication: calls the API and gets the authentication token.
    2. Conversation id's: I used the following parameters value while requesting (Screenshot 1)

    /api/v2/analytics/conversations/details/query

    1. Batch Request: JSON object (batchDownloadRequestList) is filled with an array of conversation ids (Screenshot 2), we got earlier.

    /api/v2/recording/batchrequests This post returns a job id.

    1. Batch Details: Above generated job id is used with the get request to fetch the download URL's (Screenshot 3)

    /api/v2/recording/batchrequests/{jobId}

    1. Download file: This is the step where the issue arises. While using the above-generated urls it gives the following error (Screenshot 4)

    Yesterday I executed the process for date 2018-10-25T00:00:00/2018-10-30T23:59:59 and we got 22 calls from which 14 calls were downloaded, the same process was repeated today for the same date range and again I got 22 calls but today no calls were downloaded. The Above error is coming for every URL generated.

    Hoping to get a solution.

    Thanks


    Becky_Powell | 2018-11-01 21:15:10 UTC | #2

    Hi there Ankit,

    Can you let me know how much time transpired between receiving the URL and then trying to download the file?

    I ask because each download URL includes a security token (separate from your PureCloud auth token) that expires 60 minutes after it is generated.

    -Becky


    ankitsuhail | 2018-11-02 02:57:47 UTC | #3

    Hi Becky

    I am trying to download the files almost immediately after generating the URL.

    -Ankit


    tim.smith | 2018-11-02 13:53:04 UTC | #4

    Please open a case with PureCloud Care to investigate this. I don't see anything you're doing that seems incorrect. Looks like the recording or download services may be misbehaving.


    system | 2018-12-03 13:53:05 UTC | #5

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 3879