Activity
Activity tracks TA engagement across your Glow instance — sessions, logins, emulations, and per-profile usage summaries. It gives program coordinators visibility into who is actively training and who may need follow-up.
![]()
What is Activity?
Activity provides two views of TA engagement:
- Summary view (
POST /system/activity) — Aggregate counts (sessions, active profiles, logins, emulations) plus a per-profile breakdown showing each TA’s session count, login count, grants, problems, and total activity. - Session history (
POST /system/sessions) — Paginated table of individual sessions with details like token usage, run counts, chat counts, attempt counts, and cost.
This is the go-to resource when you need to answer questions like:
- Which TAs have logged in this week?
- How many training sessions have been completed this semester?
- Are there any sessions with problems that need to be resolved?
Quick Start
CLI
Calls below use
$GLOW_INSTANCE_URL+$GLOW_TOKEN— see Authentication to export them once.
# Get activity summary with engagement counts
glow system activity
# Get activity for a specific date range
glow system activity --body '{"date_from": "2025-01-01", "date_to": "2025-06-30"}'
# Search session history (paginated)
glow system sessions --body '{"page": 1, "page_size": 25, "sort_order": "desc"}'
# Export all activity data as a ZIP
glow system exportAPI
# Get activity summary
curl -X POST $GLOW_INSTANCE_URL/system/activity \
-H "Authorization: Bearer $GLOW_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"date_from": "2025-01-01",
"date_to": "2025-06-30",
"department_ids": ["dept-cs"]
}'
# Search session history
curl -X POST $GLOW_INSTANCE_URL/system/sessions \
-H "Authorization: Bearer $GLOW_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"page": 1,
"page_size": 20,
"sort_order": "desc",
"active": true
}'Filtering
| Filter | Field | Description |
|---|---|---|
| Date range | date_from, date_to | Scope activity to a time window |
| Departments | department_ids | Filter by academic department |
| Roles | roles | Filter by TA role type |
| Active sessions | active (search only) | Show only active or inactive sessions |
| Pagination | page, page_size (search only) | Control page size and offset |
Understanding the Summary Response
The ActivityResponse from POST /system/activity includes:
sessions_count— Total number of training sessions in the filtered window.active_profiles_count— Number of TAs who have been active.logins_count— Total login events.emulations_count— Total emulation events (admin viewing as a TA).profile_summary— Array ofProfileSummaryItemwith per-TA breakdowns:profile_id,profile_namesessions_count,logins_count,grants_count,problems_count,activity_count
resources— Profile metadata keyed by ID for hydration.analytics— Filter facets for rendering dropdowns (departments, roles, date range boundaries).
Understanding the Session History Response
The ListActivityResponse from POST /system/sessions returns paginated session rows:
Each SessionListItem includes:
session_id,profile_id,profile_namesession_created_at,session_updated_atactive— whether the session is currently activegroup_count,run_count— AI generation activitychat_count,attempt_count,message_count— training activitytotal_tokens,total_cost— resource consumptionproblem_count— issues flagged during the session
Resolving Problems
If a session surfaces a problem (e.g., a FERPA concern or inappropriate AI response), you can resolve it:
curl -X POST $GLOW_INSTANCE_URL/activity/resolve \
-H "Authorization: Bearer $GLOW_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"problem_id": "problem-uuid",
"resolved": true
}'The response confirms problem_id, resolved status, and updated_at timestamp.
Refreshing and Exporting
# Refresh activity materialized views
glow system refresh
# Export all activity data as a denormalized ZIP
glow system exportCommon Operations
| Task | CLI | API Endpoint |
|---|---|---|
| Activity summary | glow system activity | POST /system/activity |
| Session history | glow system sessions | POST /system/sessions |
| Resolve a problem | — | POST /activity/resolve |
| Export data | glow system export | POST /system/export |
| Refresh caches | — | POST /system/refresh |
Related
- Activity API Reference
- Activity CLI Reference
- Session Guide — detailed view of a single session
- Dashboard Guide — admin analytics hub