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:
| Part | What it is |
|---|---|
2026-11-17T00:00:00 | When 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:00 | When the window ends, in the same format. The end time isn’t included. The window can be up to 1 day long. |
| Parameter | Required | What it is |
|---|---|---|
statuses | No | The 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" }
]
}
]
}
| Field | What it is |
|---|---|
data | One for each live agent. Live agents with no matching status aren’t in the list. |
user_id | The live agent’s user ID – use it to reply to a ticket as them. |
name | Their first and last name |
matches | Each time they had one of the statuses, in order |
from, to | When 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:
status | Shown in Proto as |
|---|---|
online | Online |
away | Away |
offshift | Offline |
offline | Signed Out |
Errors
| You get | What it means |
|---|---|
400 | A 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.