agent-swarm.devagent-swarm.dev

Agents

CRUD operations for agent profiles — create, configure, update, and manage swarm agents

GET/api/agent-history

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Query Parameters

agentId?string
Length1 <= length

Response Body

application/json

application/json

curl -X GET "http://localhost:3013/api/agent-history"
{
  "events": [
    {
      "id": "string",
      "agentId": "string",
      "event": "deleted",
      "actorRef": "string",
      "reason": "string",
      "snapshot": {
        "property1": null,
        "property2": null
      },
      "createdAt": "string"
    }
  ]
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
GET/api/agents

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Query Parameters

include?string
Value in"tasks"
q?string
Length1 <= length <= 200
limit?integer
Range1 <= value <= 500
fields?string
Value in"full" | "slim"

Response Body

application/json

curl -X GET "http://localhost:3013/api/agents"
{
  "agents": [
    {
      "id": "string",
      "name": "string",
      "isLead": false,
      "status": "idle",
      "runtimePoolId": "string",
      "runtimeProvisionAttempts": 0,
      "runtimeProvisionRetryAt": "string",
      "description": "string",
      "role": "string",
      "capabilities": [],
      "claudeMd": "string",
      "soulMd": "string",
      "identityMd": "string",
      "setupScript": "string",
      "toolsMd": "string",
      "heartbeatMd": "string",
      "maxTasks": 1,
      "emptyPollCount": 0,
      "lastActivityAt": "2019-08-24T14:15:22Z",
      "provider": "claude",
      "harnessProvider": "claude",
      "credentialMissing": [
        "string"
      ],
      "credStatus": {
        "ready": true,
        "missing": [],
        "satisfiedBy": "env",
        "hint": null,
        "liveTest": null,
        "latestModel": null,
        "reportedAt": 0,
        "reportKind": "boot",
        "bedrock": null,
        "opencodeGo": null,
        "piModelIds": [
          "string"
        ],
        "acp": null
      },
      "avatar": {
        "type": "lucide",
        "icon": "string",
        "color": "string"
      },
      "slackIcon": {
        "type": "emoji",
        "emoji": "string"
      },
      "createdAt": "2019-08-24T14:15:22Z",
      "lastUpdatedAt": "2019-08-24T14:15:22Z",
      "tasks": [],
      "capacity": {
        "current": 0,
        "max": 0,
        "available": 0
      },
      "claudeTransport": "cli",
      "onDemand": true
    }
  ]
}
POST/api/agents

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "http://localhost:3013/api/agents" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{
  "id": "string",
  "name": "string",
  "isLead": false,
  "status": "idle",
  "runtimePoolId": "string",
  "runtimeProvisionAttempts": 0,
  "runtimeProvisionRetryAt": "string",
  "description": "string",
  "role": "string",
  "capabilities": [],
  "claudeMd": "string",
  "soulMd": "string",
  "identityMd": "string",
  "setupScript": "string",
  "toolsMd": "string",
  "heartbeatMd": "string",
  "maxTasks": 1,
  "emptyPollCount": 0,
  "lastActivityAt": "2019-08-24T14:15:22Z",
  "provider": "claude",
  "harnessProvider": "claude",
  "credentialMissing": [
    "string"
  ],
  "credStatus": {
    "ready": true,
    "missing": [],
    "satisfiedBy": "env",
    "hint": null,
    "liveTest": null,
    "latestModel": null,
    "reportedAt": 0,
    "reportKind": "boot",
    "bedrock": null,
    "opencodeGo": null,
    "piModelIds": [
      "string"
    ],
    "acp": null
  },
  "avatar": {
    "type": "lucide",
    "icon": "string",
    "color": "string"
  },
  "slackIcon": {
    "type": "emoji",
    "emoji": "string"
  },
  "createdAt": "2019-08-24T14:15:22Z",
  "lastUpdatedAt": "2019-08-24T14:15:22Z",
  "enabledCapabilities": [
    "core"
  ],
  "deliveryMode": "poll",
  "pollRequired": true
}
{
  "id": "string",
  "name": "string",
  "isLead": false,
  "status": "idle",
  "runtimePoolId": "string",
  "runtimeProvisionAttempts": 0,
  "runtimeProvisionRetryAt": "string",
  "description": "string",
  "role": "string",
  "capabilities": [],
  "claudeMd": "string",
  "soulMd": "string",
  "identityMd": "string",
  "setupScript": "string",
  "toolsMd": "string",
  "heartbeatMd": "string",
  "maxTasks": 1,
  "emptyPollCount": 0,
  "lastActivityAt": "2019-08-24T14:15:22Z",
  "provider": "claude",
  "harnessProvider": "claude",
  "credentialMissing": [
    "string"
  ],
  "credStatus": {
    "ready": true,
    "missing": [],
    "satisfiedBy": "env",
    "hint": null,
    "liveTest": null,
    "latestModel": null,
    "reportedAt": 0,
    "reportKind": "boot",
    "bedrock": null,
    "opencodeGo": null,
    "piModelIds": [
      "string"
    ],
    "acp": null
  },
  "avatar": {
    "type": "lucide",
    "icon": "string",
    "color": "string"
  },
  "slackIcon": {
    "type": "emoji",
    "emoji": "string"
  },
  "createdAt": "2019-08-24T14:15:22Z",
  "lastUpdatedAt": "2019-08-24T14:15:22Z",
  "enabledCapabilities": [
    "core"
  ],
  "deliveryMode": "poll",
  "pollRequired": true
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
GET/api/agents/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string

Query Parameters

include?string
Value in"tasks"

Response Body

application/json

application/json

curl -X GET "http://localhost:3013/api/agents/string"
{
  "id": "string",
  "name": "string",
  "isLead": false,
  "status": "idle",
  "runtimePoolId": "string",
  "runtimeProvisionAttempts": 0,
  "runtimeProvisionRetryAt": "string",
  "description": "string",
  "role": "string",
  "capabilities": [],
  "claudeMd": "string",
  "soulMd": "string",
  "identityMd": "string",
  "setupScript": "string",
  "toolsMd": "string",
  "heartbeatMd": "string",
  "maxTasks": 1,
  "emptyPollCount": 0,
  "lastActivityAt": "2019-08-24T14:15:22Z",
  "provider": "claude",
  "harnessProvider": "claude",
  "credentialMissing": [
    "string"
  ],
  "credStatus": {
    "ready": true,
    "missing": [],
    "satisfiedBy": "env",
    "hint": null,
    "liveTest": null,
    "latestModel": null,
    "reportedAt": 0,
    "reportKind": "boot",
    "bedrock": null,
    "opencodeGo": null,
    "piModelIds": [
      "string"
    ],
    "acp": null
  },
  "avatar": {
    "type": "lucide",
    "icon": "string",
    "color": "string"
  },
  "slackIcon": {
    "type": "emoji",
    "emoji": "string"
  },
  "createdAt": "2019-08-24T14:15:22Z",
  "lastUpdatedAt": "2019-08-24T14:15:22Z",
  "tasks": [],
  "capacity": {
    "current": 0,
    "max": 0,
    "available": 0
  },
  "claudeTransport": "cli",
  "onDemand": true
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
PUT/api/agents/{id}/activity

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string

Response Body

curl -X PUT "http://localhost:3013/api/agents/string/activity"
Empty
GET/api/agents/{id}/credential-status

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string

Response Body

application/json

application/json

curl -X GET "http://localhost:3013/api/agents/string/credential-status"
{
  "agentId": "string",
  "name": "string",
  "status": "idle",
  "missing": [
    "string"
  ],
  "provider": "claude",
  "harnessProvider": "claude",
  "credStatus": {
    "ready": true,
    "missing": [],
    "satisfiedBy": "env",
    "hint": null,
    "liveTest": null,
    "latestModel": null,
    "reportedAt": 0,
    "reportKind": "boot",
    "bedrock": null,
    "opencodeGo": null,
    "piModelIds": [
      "string"
    ],
    "acp": null
  },
  "lastCheckedAt": "string"
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
PUT/api/agents/{id}/credential-status

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string

Header Parameters

X-Runtime-Instance-ID?string

Identifies the concrete runtime instance (worker process) making the call, as generated at its boot. Required to report credential readiness when multi-runtime mode (MULTI_RUNTIME_ENABLED) is on; ignored otherwise.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X PUT "http://localhost:3013/api/agents/string/credential-status" \  -H "Content-Type: application/json" \  -d '{}'
{
  "id": "string",
  "name": "string",
  "isLead": false,
  "status": "idle",
  "runtimePoolId": "string",
  "runtimeProvisionAttempts": 0,
  "runtimeProvisionRetryAt": "string",
  "description": "string",
  "role": "string",
  "capabilities": [],
  "claudeMd": "string",
  "soulMd": "string",
  "identityMd": "string",
  "setupScript": "string",
  "toolsMd": "string",
  "heartbeatMd": "string",
  "maxTasks": 1,
  "emptyPollCount": 0,
  "lastActivityAt": "2019-08-24T14:15:22Z",
  "provider": "claude",
  "harnessProvider": "claude",
  "credentialMissing": [
    "string"
  ],
  "credStatus": {
    "ready": true,
    "missing": [],
    "satisfiedBy": "env",
    "hint": null,
    "liveTest": null,
    "latestModel": null,
    "reportedAt": 0,
    "reportKind": "boot",
    "bedrock": null,
    "opencodeGo": null,
    "piModelIds": [
      "string"
    ],
    "acp": null
  },
  "avatar": {
    "type": "lucide",
    "icon": "string",
    "color": "string"
  },
  "slackIcon": {
    "type": "emoji",
    "emoji": "string"
  },
  "createdAt": "2019-08-24T14:15:22Z",
  "lastUpdatedAt": "2019-08-24T14:15:22Z",
  "capacity": {
    "current": 0,
    "max": 0,
    "available": 0
  }
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
POST/api/agents/{id}/delete

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string
Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "http://localhost:3013/api/agents/string/delete" \  -H "Content-Type: application/json" \  -d '{    "reason": "string"  }'
{
  "event": {
    "id": "string",
    "agentId": "string",
    "event": "deleted",
    "actorRef": "string",
    "reason": "string",
    "snapshot": {
      "property1": null,
      "property2": null
    },
    "createdAt": "string"
  }
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "code": "string",
  "blockers": [
    {
      "code": "string",
      "message": "string"
    }
  ]
}
PATCH/api/agents/{id}/harness-provider

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X PATCH "http://localhost:3013/api/agents/string/harness-provider" \  -H "Content-Type: application/json" \  -d '{    "harness_provider": "claude"  }'
{
  "id": "string",
  "name": "string",
  "isLead": false,
  "status": "idle",
  "runtimePoolId": "string",
  "runtimeProvisionAttempts": 0,
  "runtimeProvisionRetryAt": "string",
  "description": "string",
  "role": "string",
  "capabilities": [],
  "claudeMd": "string",
  "soulMd": "string",
  "identityMd": "string",
  "setupScript": "string",
  "toolsMd": "string",
  "heartbeatMd": "string",
  "maxTasks": 1,
  "emptyPollCount": 0,
  "lastActivityAt": "2019-08-24T14:15:22Z",
  "provider": "claude",
  "harnessProvider": "claude",
  "credentialMissing": [
    "string"
  ],
  "credStatus": {
    "ready": true,
    "missing": [],
    "satisfiedBy": "env",
    "hint": null,
    "liveTest": null,
    "latestModel": null,
    "reportedAt": 0,
    "reportKind": "boot",
    "bedrock": null,
    "opencodeGo": null,
    "piModelIds": [
      "string"
    ],
    "acp": null
  },
  "avatar": {
    "type": "lucide",
    "icon": "string",
    "color": "string"
  },
  "slackIcon": {
    "type": "emoji",
    "emoji": "string"
  },
  "createdAt": "2019-08-24T14:15:22Z",
  "lastUpdatedAt": "2019-08-24T14:15:22Z",
  "capacity": {
    "current": 0,
    "max": 0,
    "available": 0
  }
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
PUT/api/agents/{id}/name

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X PUT "http://localhost:3013/api/agents/string/name" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{
  "id": "string",
  "name": "string",
  "isLead": false,
  "status": "idle",
  "runtimePoolId": "string",
  "runtimeProvisionAttempts": 0,
  "runtimeProvisionRetryAt": "string",
  "description": "string",
  "role": "string",
  "capabilities": [],
  "claudeMd": "string",
  "soulMd": "string",
  "identityMd": "string",
  "setupScript": "string",
  "toolsMd": "string",
  "heartbeatMd": "string",
  "maxTasks": 1,
  "emptyPollCount": 0,
  "lastActivityAt": "2019-08-24T14:15:22Z",
  "provider": "claude",
  "harnessProvider": "claude",
  "credentialMissing": [
    "string"
  ],
  "credStatus": {
    "ready": true,
    "missing": [],
    "satisfiedBy": "env",
    "hint": null,
    "liveTest": null,
    "latestModel": null,
    "reportedAt": 0,
    "reportKind": "boot",
    "bedrock": null,
    "opencodeGo": null,
    "piModelIds": [
      "string"
    ],
    "acp": null
  },
  "avatar": {
    "type": "lucide",
    "icon": "string",
    "color": "string"
  },
  "slackIcon": {
    "type": "emoji",
    "emoji": "string"
  },
  "createdAt": "2019-08-24T14:15:22Z",
  "lastUpdatedAt": "2019-08-24T14:15:22Z",
  "capacity": {
    "current": 0,
    "max": 0,
    "available": 0
  }
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
PUT/api/agents/{id}/profile

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X PUT "http://localhost:3013/api/agents/string/profile" \  -H "Content-Type: application/json" \  -d '{}'
{
  "id": "string",
  "name": "string",
  "isLead": false,
  "status": "idle",
  "runtimePoolId": "string",
  "runtimeProvisionAttempts": 0,
  "runtimeProvisionRetryAt": "string",
  "description": "string",
  "role": "string",
  "capabilities": [],
  "claudeMd": "string",
  "soulMd": "string",
  "identityMd": "string",
  "setupScript": "string",
  "toolsMd": "string",
  "heartbeatMd": "string",
  "maxTasks": 1,
  "emptyPollCount": 0,
  "lastActivityAt": "2019-08-24T14:15:22Z",
  "provider": "claude",
  "harnessProvider": "claude",
  "credentialMissing": [
    "string"
  ],
  "credStatus": {
    "ready": true,
    "missing": [],
    "satisfiedBy": "env",
    "hint": null,
    "liveTest": null,
    "latestModel": null,
    "reportedAt": 0,
    "reportKind": "boot",
    "bedrock": null,
    "opencodeGo": null,
    "piModelIds": [
      "string"
    ],
    "acp": null
  },
  "avatar": {
    "type": "lucide",
    "icon": "string",
    "color": "string"
  },
  "slackIcon": {
    "type": "emoji",
    "emoji": "string"
  },
  "createdAt": "2019-08-24T14:15:22Z",
  "lastUpdatedAt": "2019-08-24T14:15:22Z",
  "capacity": {
    "current": 0,
    "max": 0,
    "available": 0
  }
}
{
  "error": "string",
  "profileSyncRejection": {
    "field": "soulMd",
    "diskSize": 0,
    "dbSize": 0,
    "budget": 0,
    "delta": 0,
    "reason": "string"
  }
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
GET/api/agents/{id}/profile-check

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string

Query Parameters

profile*string
Length1 <= length

Response Body

application/json

application/json

curl -X GET "http://localhost:3013/api/agents/string/profile-check?profile=string"
{
  "agentId": "string",
  "ok": true,
  "profiles": [
    {
      "name": "string",
      "ok": true,
      "checks": [
        {
          "check": "harness",
          "state": "pass",
          "detail": "string"
        }
      ]
    }
  ]
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
POST/api/agents/{id}/restore

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string
Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "http://localhost:3013/api/agents/string/restore" \  -H "Content-Type: application/json" \  -d '{    "reason": "string"  }'
{
  "agent": {
    "id": "string",
    "name": "string",
    "isLead": false,
    "status": "idle",
    "runtimePoolId": "string",
    "runtimeProvisionAttempts": 0,
    "runtimeProvisionRetryAt": "string",
    "description": "string",
    "role": "string",
    "capabilities": [],
    "claudeMd": "string",
    "soulMd": "string",
    "identityMd": "string",
    "setupScript": "string",
    "toolsMd": "string",
    "heartbeatMd": "string",
    "maxTasks": 1,
    "emptyPollCount": 0,
    "lastActivityAt": "2019-08-24T14:15:22Z",
    "provider": "claude",
    "harnessProvider": "claude",
    "credentialMissing": [
      "string"
    ],
    "credStatus": {
      "ready": true,
      "missing": [],
      "satisfiedBy": "env",
      "hint": null,
      "liveTest": null,
      "latestModel": null,
      "reportedAt": 0,
      "reportKind": "boot",
      "bedrock": null,
      "opencodeGo": null,
      "piModelIds": [
        "string"
      ],
      "acp": null
    },
    "avatar": {
      "type": "lucide",
      "icon": "string",
      "color": "string"
    },
    "slackIcon": {
      "type": "emoji",
      "emoji": "string"
    },
    "createdAt": "2019-08-24T14:15:22Z",
    "lastUpdatedAt": "2019-08-24T14:15:22Z"
  },
  "event": {
    "id": "string",
    "agentId": "string",
    "event": "deleted",
    "actorRef": "string",
    "reason": "string",
    "snapshot": {
      "property1": null,
      "property2": null
    },
    "createdAt": "string"
  }
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "code": "string",
  "blockers": [
    {
      "code": "string",
      "message": "string"
    }
  ]
}
GET/api/agents/{id}/runtime

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string

Query Parameters

repoId?string

Response Body

application/json

application/json

curl -X GET "http://localhost:3013/api/agents/string/runtime"
{
  "claude": {
    "transport": "cli",
    "effectiveTransport": "cli",
    "inheritedTransport": "cli",
    "bridgeEffective": true
  }
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
PATCH/api/agents/{id}/runtime

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string

Query Parameters

repoId?string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X PATCH "http://localhost:3013/api/agents/string/runtime" \  -H "Content-Type: application/json" \  -d '{    "harness_provider": "claude"  }'
{
  "id": "string",
  "name": "string",
  "isLead": false,
  "status": "idle",
  "runtimePoolId": "string",
  "runtimeProvisionAttempts": 0,
  "runtimeProvisionRetryAt": "string",
  "description": "string",
  "role": "string",
  "capabilities": [],
  "claudeMd": "string",
  "soulMd": "string",
  "identityMd": "string",
  "setupScript": "string",
  "toolsMd": "string",
  "heartbeatMd": "string",
  "maxTasks": 1,
  "emptyPollCount": 0,
  "lastActivityAt": "2019-08-24T14:15:22Z",
  "provider": "claude",
  "harnessProvider": "claude",
  "credentialMissing": [
    "string"
  ],
  "credStatus": {
    "ready": true,
    "missing": [],
    "satisfiedBy": "env",
    "hint": null,
    "liveTest": null,
    "latestModel": null,
    "reportedAt": 0,
    "reportKind": "boot",
    "bedrock": null,
    "opencodeGo": null,
    "piModelIds": [
      "string"
    ],
    "acp": null
  },
  "avatar": {
    "type": "lucide",
    "icon": "string",
    "color": "string"
  },
  "slackIcon": {
    "type": "emoji",
    "emoji": "string"
  },
  "createdAt": "2019-08-24T14:15:22Z",
  "lastUpdatedAt": "2019-08-24T14:15:22Z",
  "capacity": {
    "current": 0,
    "max": 0,
    "available": 0
  },
  "profileCheck": {
    "agentId": "string",
    "ok": true,
    "profiles": [
      {
        "name": "string",
        "ok": true,
        "checks": [
          {
            "check": "harness",
            "state": "pass",
            "detail": "string"
          }
        ]
      }
    ]
  }
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
GET/api/agents/{id}/runtime-instances

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string

Response Body

application/json

application/json

curl -X GET "http://localhost:3013/api/agents/string/runtime-instances"
{
  "runtimeInstances": [
    {
      "id": "string",
      "agentId": "string",
      "status": "active",
      "poolId": "string",
      "controllerId": "string",
      "externalHandle": {
        "property1": null,
        "property2": null
      },
      "provisionAttempts": 0,
      "provisionError": "string",
      "provisionRequestedAt": "string",
      "draining": true,
      "idleSince": "string",
      "leaseExpiresAt": "string",
      "taskId": "string",
      "workspaceSlot": 0,
      "reportedSlots": 0,
      "credentialReady": true,
      "lastSeenAt": "2019-08-24T14:15:22Z",
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z",
      "isLive": true
    }
  ],
  "staleThresholdMinutes": 0
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
GET/api/agents/{id}/setup-script

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string

Response Body

application/json

application/json

curl -X GET "http://localhost:3013/api/agents/string/setup-script"
{
  "setupScript": "string",
  "globalSetupScript": "string"
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
GET/api/agents/{id}/task-activity

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string

Query Parameters

days?integer
Range1 <= value <= 730

Response Body

application/json

application/json

curl -X GET "http://localhost:3013/api/agents/string/task-activity"
{
  "days": [
    {
      "date": "string",
      "count": 0
    }
  ]
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
GET/api/agents/credential-status

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Query Parameters

status?string
Value in"idle" | "busy" | "offline" | "waiting_for_credentials"

Response Body

application/json

curl -X GET "http://localhost:3013/api/agents/credential-status"
{
  "agents": [
    {
      "agentId": "string",
      "name": "string",
      "status": "idle",
      "missing": [
        "string"
      ],
      "provider": "claude",
      "harnessProvider": "claude",
      "credStatus": {
        "ready": true,
        "missing": [],
        "satisfiedBy": "env",
        "hint": null,
        "liveTest": null,
        "latestModel": null,
        "reportedAt": 0,
        "reportKind": "boot",
        "bedrock": null,
        "opencodeGo": null,
        "piModelIds": [
          "string"
        ],
        "acp": null
      },
      "lastCheckedAt": "string"
    }
  ]
}