Stats
Aggregate statistics for swarm activity — task counts, agent utilization, and cost summaries
Authorization
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"
}
]
}Authorization
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"
}
]
}Authorization
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
}
}Authorization
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
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",
"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
},
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"createdBy": "string",
"updatedBy": "string",
"favorite": true
}
]
}Authorization
bearerAuth AuthorizationBearer <token>
API key via Authorization: Bearer <API_KEY>
In: header
Query Parameters
status?string
agentId?string
name?string
Response Body
application/json
curl -X GET "http://localhost:3013/api/services"{
"services": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"agentId": "string",
"name": "string",
"port": 3000,
"description": "string",
"url": "http://example.com",
"healthCheckPath": "/health",
"status": "starting",
"script": "string",
"cwd": "string",
"interpreter": "string",
"args": [
"string"
],
"env": {
"property1": "string",
"property2": "string"
},
"metadata": {},
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z"
}
]
}Authorization
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
}