Genesys Cloud - Main

 View Only

Sign Up

Expand all | Collapse all

Export Recordings to S3 based on queueid

  • 1.  Export Recordings to S3 based on queueid

    Posted yesterday
    Edited by Shubham Bhosale yesterday

    I am using below curl for exporting recordings to S3 but when I mention queueid filter then not a single recording is pushed, but when queueid filter is removed then all recordings from all queues are pushed.
    How can I push recordings filtered by queueid.

    curl -X POST 'https://api.aps1.pure.cloud/api/v2/recording/jobs' \
      -H 'Authorization: Bearer *******************' \
      -H 'Content-Type: application/json' \
      --data-raw $'{"action":"EXPORT","actionDate":"2025-12-04T11:52:00.000Z","integrationId":"testid123","includeScreenRecordings":false,"conversationQuery":{"order":"asc","orderBy":"conversationStart","interval":"2025-08-31T18:30:00.000Z/2025-09-02T18:30:00.000Z","evaluationFilters":[{"type":"and","clauses":[{"type":"and","predicates":[{"type":"dimension","dimension":"queueId","operator":"matches","value":"1234567890"}]}]}]}}'



    I took reference from below while creating API application.
    Genesys Cloud Developer Center



    #API/Integrations

    ------------------------------
    Shubham Bhosale
    ------------------------------



  • 2.  RE: Export Recordings to S3 based on queueid

    Posted yesterday

    Hello Shubham,

    It looks like you have the queueID dimension under the evaluationsFilter, but it should be a segmentFilter



    ------------------------------
    Sam Jillard
    Online Community Manager/Moderator
    Genesys - Employees
    ------------------------------



  • 3.  RE: Export Recordings to S3 based on queueid

    Posted 18 hours ago
    Edited by Shubham Bhosale 18 hours ago

    Hello @Samuel Jillard,
    I tried this but it didn't worked.



    ------------------------------
    Shubham Bhosale
    ------------------------------



  • 4.  RE: Export Recordings to S3 based on queueid

    Posted 18 hours ago

    It should work if you set the query like this
    curl -X POST 'https://api.aps1.pure.cloud/api/v2/recording/jobs' \
      -H 'Authorization: Bearer <REDACTED>' \
      -H 'Content-Type: application/json' \
      --data-raw '{
        "action": "EXPORT",
        "actionDate": "2025-12-04T11:52:00.000Z",
        "integrationId": "testid123",
        "includeScreenRecordings": false,
        "conversationQuery": {
          "order": "asc",
          "orderBy": "conversationStart",
          "interval": "2025-08-31T18:30:00.000Z/2025-09-02T18:30:00.000Z",
          "segmentFilters": [
            {
              "type": "and",
              "clauses": [
                {
                  "type": "and",
                  "predicates": [
                    { "type": "dimension", "dimension": "queueId", "operator": "matches", "value": "1234567890" }
                  ]
                }
              ]
            }
          ]
        }
      }'



    ------------------------------
    Sam Jillard
    Online Community Manager/Moderator
    Genesys - Employees
    ------------------------------



  • 5.  RE: Export Recordings to S3 based on queueid

    Posted 18 hours ago

    Tried it, got below as response 

    {
      "id": "a78....",
      "state": "PENDING",
      "recordingJobsQuery": {
        "action": "EXPORT",
        "actionDate": "2025-12-05T09:55:00Z",
        "integrationId": "70dea...",
        "includeRecordingsWithSensitiveData": false,
        "includeScreenRecordings": true
      },
      "dateCreated": "2025-12-05T09:30:00.170Z",
      "totalConversations": 0,
      "totalRecordings": 0,
      "totalSkippedRecordings": 0,
      "totalFailedRecordings": 0,
      "totalProcessedRecordings": 0,
      "percentProgress": 0,
      "selfUri": "/api/v2/recording/jobs/a7...",
      "user": {
        "id": "",
        "selfUri": "/api/v2/users/eea..."
      }
    }

    totalConversations and totalRecordings are 0, even though I have around 5k conversations with recordings



    ------------------------------
    Shubham Bhosale
    ------------------------------



  • 6.  RE: Export Recordings to S3 based on queueid

    Posted 17 hours ago

    Can you provide the updated query you used.  It doesn't seem to be finding any matching interactions in the conversation query part of the request.



    ------------------------------
    Sam Jillard
    Online Community Manager/Moderator
    Genesys - Employees
    ------------------------------



  • 7.  RE: Export Recordings to S3 based on queueid

    Posted 17 hours ago

    Hello, 
    below provided is the request body i m using
    {
      "action": "EXPORT",

     "integrationId": "testid123",
      "conversationQuery": {
        "order": "asc",
        "orderBy": "conversationStart",

     "interval": "2025-08-31T18:30:00.000Z/2025-09-02T18:30:00.000Z",
        "segmentFilters": [
          {
            "type": "and",
            "clauses": [
              {
                "type": "and",
                "predicates": [
                  {
                    "type": "dimension",
                    "dimension": "queueId",
                    "operator": "matches",
                    "value": "1234567890"
                  }
                ]
              }
            ]
          }
        ]
      },
      "actionDate": "2025-12-05T11:30:00.000Z",
      "includeScreenRecordings": false
    }



    ------------------------------
    Shubham Bhosale
    ------------------------------



  • 8.  RE: Export Recordings to S3 based on queueid

    Posted 17 hours ago

    are you updating the QueueID to an actual queue etc



    ------------------------------
    Sam Jillard
    Online Community Manager/Moderator
    Genesys - Employees
    ------------------------------



  • 9.  RE: Export Recordings to S3 based on queueid

    Posted 17 hours ago

    Yes, i am updating the queueid



    ------------------------------
    Shubham Bhosale
    ------------------------------



  • 10.  RE: Export Recordings to S3 based on queueid

    Posted 16 hours ago

    Can you use the same criteria using https://developer.genesys.cloud/devapps/api-explorer#post-api-v2-analytics-conversations-details-query just to see if it finds any matching interactions?

    It could be that there are no matching interactions for your query



    ------------------------------
    Sam Jillard
    Online Community Manager/Moderator
    Genesys - Employees
    ------------------------------



  • 11.  RE: Export Recordings to S3 based on queueid

    Posted yesterday

    Olá Shubham, tudo bem?

    A exportação de gravações via Recording Jobs API realmente não permite filtrar por queueId.
    Essa é uma limitação conhecida do endpoint POST /api/v2/recording/jobs, que só aceita filtros dentro de conversationQuery ou evaluationFilters, mas não processa queueId como filtro válido para gravações.

    Você precisará antes, pegar os conversationID e submeter ao endpoint para criar uma batch e baixar as gravações quando estiverem disponíveis. Segue o link que ilustra essa sua necessidade: Download Recordings

    Eu também precisei, no passado, baixar gravações específicas e foi nessa URL que me trouxe a solução.



    ------------------------------
    Fernando Sotto dos Santos
    Consultor Grupo Casas Bahia
    ------------------------------



  • 12.  RE: Export Recordings to S3 based on queueid

    Posted 18 hours ago

    Hello, 
    I want to export recordings to S3 but based on Queueid, do we have any other Genesys API or method apart from this ?

    Thanks in advance.



    ------------------------------
    Shubham Bhosale
    ------------------------------