Console: activity
Copy as MarkdownThese routes are on the console, port 3375. They take an API token as Authorization: Bearer ndt_...; see API tokens.
What people did on devices: the activity agents report.
List the activity summaries agents reported, newest first.
At most 500 summaries, those received last. An account limited to some devices gets only theirs. Errors other than the sign-in and permission checks are {"error": "..."}.
Needs audit.view. neodesk activity list calls it.
| Parameter | In | Type | What it is |
|---|---|---|---|
from |
query | string | Only what lies after this: a date (2026-11-23) or a date and time, with or without a zone (none is UTC) |
to |
query | string | Only what lies before this; a date alone counts to the end of that day |
200: Done (application/json)
| Field | Type | Required | What it is |
|---|---|---|---|
summaries |
array of object | yes | |
summaries[].device_id |
string | ||
summaries[].hostname |
string | The device's note, else its hostname, else its ID | |
summaries[].idle_seconds |
integer or null | ||
summaries[].session_count |
integer or null | ||
summaries[].total_active_seconds |
integer or null | ||
summaries[].detail_count |
integer | How many sessions the device reported after this summary and before the next | |
summaries[].reported_at |
string (date-time) | ||
summaries[].received_at |
string (date-time) | ||
total |
integer | yes |
| Error | When |
|---|---|
| 400 | from or to is not a time (Invalid from, Invalid to) |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |
Show one device's activity.
The device's app sessions in the window, newest first, and the summaries it reported in it. Errors other than the sign-in check are {"error": "..."}.
Needs audit.view. neodesk activity device calls it.
| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
id |
path | string | yes | The device ID |
from |
query | string | Only what lies after this: a date (2026-11-23) or a date and time, with or without a zone (none is UTC) | |
to |
query | string | Only what lies before this; a date alone counts to the end of that day | |
limit |
query | integer | How many sessions; default 100, at least 1, at most 500 |
200: Done (application/json)
| Field | Type | What it is |
|---|---|---|
device_id |
string | |
hostname |
string | |
session_count |
integer | How many sessions the answer holds |
sessions |
array of object | |
sessions[].app_name |
string | |
sessions[].category |
string or null | |
sessions[].created_at |
string (date-time) | |
sessions[].device_id |
string | |
sessions[].duration_seconds |
integer | |
sessions[].ended_at |
string (date-time) | |
sessions[].id |
integer | |
sessions[].started_at |
string (date-time) | |
sessions[].window_title |
string | |
summaries |
array of object | |
summaries[].device_id |
string | |
summaries[].idle_seconds |
integer or null | |
summaries[].session_count |
integer or null | |
summaries[].total_active_seconds |
integer or null | |
summaries[].reported_at |
string (date-time) | |
summaries[].received_at |
string (date-time) |
| Error | When |
|---|---|
| 400 | from, to or limit is not valid |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account lacks audit.view, or the device is outside its scope or unknown |
Show the programs a device used most.
The apps of the device's sessions in the window, with the time spent in each, the most used first. Errors other than the sign-in check are {"error": "..."}.
Needs audit.view. neodesk activity top calls it.
| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
id |
path | string | yes | The device ID |
from |
query | string | Only what lies after this: a date (2026-11-23) or a date and time, with or without a zone (none is UTC) | |
to |
query | string | Only what lies before this; a date alone counts to the end of that day | |
limit |
query | integer | How many apps; default 10, at least 1, at most 500 |
200: Done (application/json)
| Field | Type |
|---|---|
device_id |
string |
top_apps |
array of object |
top_apps[].app_name |
string |
top_apps[].category |
string or null |
top_apps[].session_count |
integer |
top_apps[].total_seconds |
integer |
| Error | When |
|---|---|
| 400 | from, to or limit is not valid |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account lacks audit.view, or the device is outside its scope |