Stats
Aggregate statistics for swarm activity — task counts, agent utilization, and cost summaries
GET
/api/concurrent-contextAuthorization
bearerAuth AuthorizationBearer <token>
API key via Authorization: Bearer <API_KEY>
In: header
Response Body
application/json
curl -X GET "http://localhost:3013/api/concurrent-context"{
"processingInboxMessages": [
{
"id": "string",
"content": "string",
"source": "string",
"slackChannelId": "string",
"slackThreadTs": "string",
"createdAt": "string"
}
],
"recentTaskDelegations": [
{
"id": "string",
"task": "string",
"agentId": "string",
"agentName": "string",
"creatorAgentId": "string",
"status": "string",
"createdAt": "string"
}
],
"activeSwarmTasks": [
{
"id": "string",
"task": "string",
"agentId": "string",
"agentName": "string",
"status": "string",
"createdAt": "string",
"progress": "string"
}
]
}GET
/api/logsAuthorization
bearerAuth AuthorizationBearer <token>
API key via Authorization: Bearer <API_KEY>
In: header
Query Parameters
limit?integer
Range
1 <= valueagentId?string
Response Body
application/json
curl -X GET "http://localhost:3013/api/logs"{
"logs": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"eventType": "agent_joined",
"agentId": "string",
"taskId": "string",
"oldValue": "string",
"newValue": "string",
"metadata": "string",
"createdAt": "2019-08-24T14:15:22Z"
}
]
}GET
/api/metricsAuthorization
bearerAuth AuthorizationBearer <token>
API key via Authorization: Bearer <API_KEY>
In: header
Response Body
application/json
curl -X GET "http://localhost:3013/api/metrics"{
"tasks": {
"total": 0,
"by_status": {
"property1": 0,
"property2": 0
}
},
"agents": {
"total": 0,
"by_status": {
"property1": 0,
"property2": 0
}
},
"workflows": {
"total": 0,
"enabled": 0
},
"pages": {
"total": 0
},
"sessions": {
"active": 0
},
"skills": {
"total": 0
},
"retention": {
"sessionLogs": {
"at": "string",
"rowsDeleted": 0,
"batches": 0,
"durationMs": 0,
"dryRun": true,
"cumulativeRowsDeleted": 0,
"outcome": "converged",
"drained": true,
"backlogRemaining": 0,
"batchSize": 0,
"slowestStatementMs": 0,
"lastError": "string",
"lastErrorAt": "string",
"lastSuccessAt": "string"
},
"agentLog": {
"at": "string",
"rowsDeleted": 0,
"batches": 0,
"durationMs": 0,
"dryRun": true,
"cumulativeRowsDeleted": 0,
"outcome": "converged",
"drained": true,
"backlogRemaining": 0,
"batchSize": 0,
"slowestStatementMs": 0,
"lastError": "string",
"lastErrorAt": "string",
"lastSuccessAt": "string"
},
"events": {
"at": "string",
"rowsDeleted": 0,
"batches": 0,
"durationMs": 0,
"dryRun": true,
"cumulativeRowsDeleted": 0,
"outcome": "converged",
"drained": true,
"backlogRemaining": 0,
"batchSize": 0,
"slowestStatementMs": 0,
"lastError": "string",
"lastErrorAt": "string",
"lastSuccessAt": "string"
},
"contextVersions": {
"at": "string",
"rowsDeleted": 0,
"batches": 0,
"durationMs": 0,
"dryRun": true,
"cumulativeRowsDeleted": 0,
"outcome": "converged",
"drained": true,
"backlogRemaining": 0,
"batchSize": 0,
"slowestStatementMs": 0,
"lastError": "string",
"lastErrorAt": "string",
"lastSuccessAt": "string"
}
}
}GET
/api/scheduled-tasksAuthorization
bearerAuth AuthorizationBearer <token>
API key via Authorization: Bearer <API_KEY>
In: header
Query Parameters
enabled?string
Value in
"true" | "false"name?string
scheduleType?string
Value in
"recurring" | "one_time"hideCompleted?string
Value in
"true" | "false"targetType?string
Value in
"agent-task" | "workflow" | "script"workflowId?string
Format
uuidscriptName?string
fields?string
Value in
"full" | "slim"Response Body
application/json
curl -X GET "http://localhost:3013/api/scheduled-tasks"{
"scheduledTasks": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"key": "string",
"name": "string",
"description": "string",
"cronExpression": "string",
"intervalMs": 0,
"taskTemplate": "string",
"taskType": "string",
"tags": [],
"priority": 50,
"targetAgentId": "string",
"enabled": true,
"lastRunAt": "2019-08-24T14:15:22Z",
"nextRunAt": "2019-08-24T14:15:22Z",
"createdByAgentId": "string",
"parentTaskId": "string",
"requestedDelayMs": 0,
"requestedRunAt": "2019-08-24T14:15:22Z",
"timezone": "UTC",
"consecutiveErrors": 0,
"lastErrorAt": "2019-08-24T14:15:22Z",
"lastErrorMessage": "string",
"model": "string",
"modelTier": "smol",
"scheduleType": "recurring",
"targetType": "agent-task",
"workflowId": "43c4fa9b-0cbc-4b57-a121-9d7d46a3eaa4",
"scriptName": "string",
"scriptArgs": {
"property1": null,
"property2": null
},
"params": {
"property1": null,
"property2": null
},
"requiredParams": [
"string"
],
"requires": [
"slack"
],
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"createdBy": "string",
"updatedBy": "string",
"favorite": true
}
]
}GET
/api/statsAuthorization
bearerAuth AuthorizationBearer <token>
API key via Authorization: Bearer <API_KEY>
In: header
Response Body
application/json
curl -X GET "http://localhost:3013/api/stats"{
"agents": {
"total": 0,
"idle": 0,
"busy": 0,
"offline": 0
},
"tasks": {
"total": 0,
"unassigned": 0,
"offered": 0,
"reviewing": 0,
"pending": 0,
"in_progress": 0,
"paused": 0,
"completed": 0,
"failed": 0
},
"steeringEnabled": true,
"multiRuntimeEnabled": true,
"devMode": true
}