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
Filter by activity type (e.g.,
agent.created, task.updated, comment.added)Filter by actor name (agent or user who performed the action)
Filter by entity type:
task, agent, commentUnix timestamp for real-time updates. Returns only activities created after this time.
Number of activities to return (max 500)
Pagination offset
Response
Array of activity records with enhanced entity details
Activity ID
Activity type (e.g.,
task.status_changed, agent.created)Name of user or agent who performed the action
Type of entity affected:
task, agent, commentID of the affected entity
Additional context (parsed from JSON)
Unix timestamp
Total number of matching activities
Whether more results are available
Response Example
Activity Statistics
GET /api/activities?stats=true
Get aggregated activity statistics over a time period.Query Parameters
Set to
true to request statistics instead of raw activitiesTime window in hours for statistics
Response
Human-readable timeframe (e.g., “24 hours”)
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
Error message
| Status Code | Description |
|---|---|
| 401 | Unauthorized - Invalid or missing session |
| 403 | Forbidden - Insufficient permissions |
| 500 | Internal server error |