Legacy Dev Forum Posts

 View Only

Sign Up

Recording api returns inconsistent results

  • 1.  Recording api returns inconsistent results

    Posted 06-05-2025 18:14

    guruward | 2019-03-14 14:29:17 UTC | #1

    import {ApiClient, RecordingApi, AnalyticsApi} from 'purecloud-platform-client-v2';

    .....

    apiInstance.getConversationRecordings(conversation.id, { maxWaitMs: 5000, formatId: 'MP3' });

    not returning any recordings if you run it a second time it will.

    Even in Developer tools I experience weird behavior. /api/v2/conversations/{conversationId}/recordings

    run it first time get a 404 , run it a second time get a 200 but no body , run it a 3rd time get 200 plus the body with the recording.

    We don't attempt to pull the recording for at least 10 minutes after the call. so Im pretty sure the recording is transcoded.


    tim.smith | 2019-03-14 14:36:45 UTC | #2

    The expected behavior is that the response will be 202 for the first request and all further requests until the recordings have finished transcoding. Once the recording is ready for download, the API will begin returning 200 with a response body.

    Please open a case with PureCloud Care for these issues:

    • You are getting a 404 from this API when there are recordings. This should not ever return a 404 if the conversation ID is valid; it should be an empty array if there are no recordings.
    • You're getting a 200 with no body. This should be a 202.

    tim.smith | 2019-03-14 14:37:44 UTC | #3

    guruward, post:1, topic:4780
    We don't attempt to pull the recording for at least 10 minutes after the call. so Im pretty sure the recording is transcoded.

    To clarify this point, recordings are transcoded only when you request them; they are not transcoded at the time of recording.


    guruward | 2019-03-14 18:44:43 UTC | #4

    This conversationid exist

    I call the following analytics api to get the current conversations

    POST

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

    with the body

    {

    "interval": "2019-03-14/2019-03-15"

    }

    Here is the partial result set

    {

    "conversations": [

    {

    "conversationId": "83bf0c92-fafc-4815-9503-9c2ce5881016",


    tim.smith | 2019-03-14 18:45:22 UTC | #5

    Please open a case with PureCloud Care for further investigation.


    system | 2019-04-14 18:45:26 UTC | #6

    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: 4780