Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Regarding the retrieval of operator status times

    Posted yesterday

    Is there an API that can retrieve operator status times (login time, idle time, break time, etc.) by queue?


    #PlatformAPI

    ------------------------------
    Takayuki Suzuki
    NA
    ------------------------------


  • 2.  RE: Regarding the retrieval of operator status times

    Posted 4 hours ago

    Hi Takayuki,

    presence statuses are linked to users, so you cannot filter by queue in case users have more than one queue assigned. So I do not think there's a straightforward way to go about this.

    You can get the current snapshot of who's joined with: GET /api/v2/users/{userId}/queues?joined=true

    For historical data you'd need to look into the audit api https://developer.genesys.cloud/devapps/api-explorer-standalone#post-api-v2-audits-query with filters:

    {
      "interval": "2025-12-17T00:00:00.000+01:00/2025-12-17T23:59:59.999+01:00",
      "serviceName": "ContactCenter",
      "filters": [
        {
          "property": "EntityType",
          "value": "Queue"
        },
        {
          "property": "Action",
          "value": "MemberUpdate"
        },
        {
          "property": "EntityId",
          "value": "12345678-1234-1234-1234-12345678"
        }
      ],
      "pageNumber": 1,
      "pageSize": 50,
      "sort": [
        {
          "name": "Timestamp",
          "sortOrder": "desc"
        }
      ]
    }

    And then stitch it together with status data with for example https://developer.genesys.cloud/devapps/api-explorer-standalone#post-api-v2-analytics-users-aggregates-query



    ------------------------------
    Jeroen van der Sandt
    ------------------------------