Overview
The Activities API provides a comprehensive audit trail of all actions performed in Mission Control. Activities track entity changes (agents, tasks, comments) with full context including actor, timestamp, and related entity details.List Activities
Activities are scoped to your workspace and include enhanced entity relationships.
GET /api/activities
Retrieve paginated activity stream with optional filtering.Query Parameters
string
Filter by activity type (e.g.,
agent.created, task.updated, comment.added)string
Filter by actor name (agent or user who performed the action)
string
Filter by entity type:
task, agent, commentinteger
Unix timestamp for real-time updates. Returns only activities created after this time.
integer
default:"50"
Number of activities to return (max 500)
integer
default:"0"
Pagination offset
Response
array
Array of activity records with enhanced entity details
integer
Activity ID
string
Activity type (e.g.,
task.status_changed, agent.created)string
Name of user or agent who performed the action
string
Type of entity affected:
task, agent, commentinteger
ID of the affected entity
object
Additional context (parsed from JSON)
object
integer
Unix timestamp
integer
Total number of matching activities
boolean
Whether more results are available
Response Example
Activity Statistics
GET /api/activities?stats=true
Get aggregated activity statistics over a time period.Query Parameters
boolean
required
Set to
true to request statistics instead of raw activitiesinteger
default:"24"
Time window in hours for statistics
Response
string
Human-readable timeframe (e.g., “24 hours”)
array
Stats Response Example
Real-Time Polling
Use thesince parameter to implement efficient real-time polling:
Common Activity Types
task.created- New task createdtask.updated- Task fields updatedtask.status_changed- Task moved to different statustask.assigned- Task assigned to agentagent.created- New agent provisionedagent.updated- Agent configuration changedagent.status_changed- Agent went online/offlinecomment.added- Comment added to taskuser.login- User logged inwebhook.triggered- Webhook fired
Error Responses
string
Error message