Agents

List Agents

The eight agents with their settings, last activity and today's activity count.

API key access

Needs the agents:read scope with an API key (ro_pat_...). A signed-in session uses the caller's role.
GET/api/v1/agents
AuthorizationBearer <token>

Access token from /api/v1/auth/login, or an API key (ro_pat_..., RO-176) from /api/v1/workspaces/current/api-keys: the key implies its workspace and needs the route's scope. MCP connectors (/api/v1/mcp only) may use an OAuth access token (ro_oat_..., RO-284).

In: header

Header Parameters

X-Workspace-Id?string | null

Id of the workspace to act on (must be a member).

Response Body

curl -X GET "http://localhost:8000/api/v1/agents" \  -H "X-Workspace-Id: string"
{
  "items": [
    {
      "key": "prospector",
      "name": "string",
      "stage": "string",
      "description": "string",
      "available": true,
      "state": "coming_soon",
      "enabled": true,
      "paused": true,
      "paused_at": "2019-08-24T14:15:22Z",
      "autonomy": "suggest",
      "max_autonomy": "suggest",
      "auto_requires": "string",
      "customer_facing": true,
      "autonomy_effect": "string",
      "triggers": [
        "string"
      ],
      "schedulable": true,
      "schedule": {},
      "next_run_at": "2019-08-24T14:15:22Z",
      "pause_effect": "string",
      "settings_href": "string",
      "last_activity": {},
      "runs_today": 0,
      "updated_at": "2019-08-24T14:15:22Z"
    }
  ],
  "timezone": "string"
}