Skip to content
Docs

External API

List users by status

List when each live agent was online, away or offline during a time window.

Lists when each live agent was Online, Away, Offline or Signed Out during a time window – for example, to check attendance against your rota or pay hours worked. It’s the same data as the live agent activity in Analytics. Nothing changes in Proto. Not sure how to send a request? See Make your first request.

Request

Send a GET request to:

https://v3-api.proto.cx/api/platform/v1/users/YOUR_TEAMSPACE_ID/2026-11-17T00:00:00/2026-11-18T00:00:00/users-by-status?statuses=online,away

In the address, replace anything starting with YOUR_ with your own, and set the window and statuses you want:

PartWhat it is
2026-11-17T00:00:00When the window starts, in UTC, as YYYY-MM-DDTHH:MM:SS or a date as YYYY-MM-DD. Don’t add Z or a time zone. The start time is included.
2026-11-18T00:00:00When the window ends, in the same format. The end time isn’t included. The window can be up to 1 day long.
ParameterRequiredWhat it is
statusesNoThe statuses to include, separated by commas, such as online,away. Defaults to all four – see Statuses.

Response

Proto replies 200 OK with the live agents who had one of the statuses during the window:

{
  "data": [
    {
      "user_id": "01J0USERABCDEF1234567890AB",
      "name": "Jane Doe",
      "matches": [
        { "status": "online", "from": "2026-11-17T08:00:00+00:00", "to": "2026-11-17T12:30:00+00:00" },
        { "status": "away", "from": "2026-11-17T12:30:00+00:00", "to": "2026-11-17T13:00:00+00:00" }
      ]
    }
  ]
}
FieldWhat it is
dataOne for each live agent. Live agents with no matching status aren’t in the list.
user_idThe live agent’s user ID – use it to reply to a ticket as them.
nameTheir first and last name
matchesEach time they had one of the statuses, in order
from, toWhen the status started and ended, in UTC. Times are cut to fit the window. A status that’s still going ends now.

Statuses

The names in the API aren’t all the same as the ones in Proto:

statusShown in Proto as
onlineOnline
awayAway
offshiftOffline
offlineSigned Out

Errors

You getWhat it means
400A time is in the wrong format, the start isn’t before the end, the window is longer than 1 day, a status isn’t one of the four or 500 or more live agents match. The message says which. For too many live agents, try a shorter window or fewer statuses.

For errors any request can return, see If something goes wrong.

Stuck? Ask Advisor in the Proto dashboard, or contact us.

© Proto