Legacy Dev Forum Posts

 View Only

Sign Up

API to pull all conversations per user id

  • 1.  API to pull all conversations per user id

    Posted 06-05-2025 19:26

    seanoo | 2024-10-23 10:58:35 UTC | #1

    Hi,

    Is there an api that can show me all the active email conversations assigned to a userid including any drafts they might have composed.

    This user would work across multiple queues. So is there an api to find all open conversations per user? Or do I have to query each queue and work out the email participants.

    Basically I'm looking to find any conversation or draft that would appear in their interactions page when they login to Genesys Cloud.

    Thanks Sean


    jacobshaw | 2024-10-24 19:36:59 UTC | #2

    Hi @seanoo You can use a conversation details query to get the conversations by user id. With a request body similar to this:

    {
      "interval": "2024-10-22T00:00:00Z/2024-10-24T00:00:00Z",
      "segmentFilters": [
        {
          "predicates": [
            {
              "dimension": "mediaType",
              "type": "dimension",
              "value": "email"
            },
            {
              "type": "dimension",
              "dimension": "userId",
              "value": "<user-id>"
            }
          ]
        }
      ]
    }

    https://developer.genesys.cloud/devapps/api-explorer?requestConfig=eyJvcGVyYXRpb25JZCI6InBvc3RBbmFseXRpY3NDb252ZXJzYXRpb25zRGV0YWlsc1F1ZXJ5IiwiYm9keSI6eyJpbnRlcnZhbCI6IjIwMjQtMTAtMjJUMDA6MDA6MDBaLzIwMjQtMTAtMjRUMDA6MDA6MDBaIiwic2VnbWVudEZpbHRlcnMiOlt7InByZWRpY2F0ZXMiOlt7ImRpbWVuc2lvbiI6Im1lZGlhVHlwZSIsInR5cGUiOiJkaW1lbnNpb24iLCJ2YWx1ZSI6ImVtYWlsIn0seyJ0eXBlIjoiZGltZW5zaW9uIiwiZGltZW5zaW9uIjoidXNlcklkIiwidmFsdWUiOiI8dXNlci1pZD4ifV19XX0sImhlYWRlcnMiOltdfQ==#post-api-v2-analytics-conversations-details-query


    seanoo | 2024-11-15 16:27:26 UTC | #3

    Thank you. That worked


    system | 2024-12-16 16:27:52 UTC | #4

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