Legacy Dev Forum Posts

 View Only

Sign Up

  • 1.  User Presence Start Time

    Posted 06-05-2025 18:05

    grimdj | 2016-12-07 13:45:18 UTC | #1

    Is there a way to get a Start Time of a users System Presence? I had originally used the routing Status and Start Time to track the users, but the Presence offers a more detailed description of the users current activity. The Start Time of the routing status resets anytime there is a state change, and I am looking for something similar for the presence. I saw that there is a created date and modified date associated with the presence, but this is always returned as null. Is there any way to get the time of a state change for the user presence?

    Thanks for your help.


    tim.smith | 2016-12-07 22:24:53 UTC | #2

    You'll want to use POST /api/v2/analytics/users/details/query. To get a user's presence activity for a day, the body of your query would look something like this:

    {
      "interval": "2016-12-07T07:00:00.000Z/2016-12-08T19:00:00.000Z",
      "userFilters": [
        {
          "type": "or",
          "predicates": [
            {
              "type": "dimension",
              "dimension": "userId",
              "operator": "matches",
              "value": "9ed7d9f6-0c59-4360-ac54-40dd35eb9c2f"
            }
          ]
        }
      ]
    }

    system | 2017-08-28 19:29:19 UTC | #3


    This post was migrated from the old Developer Forum.

    ref: 705