Smart Agent Teams
EndpointsAgents

Get Org Chart

Get the reporting tree of non-terminated agents. Returns the root nodes, each with nested `reports`. Agents without a manager, or whose manager is terminated, are roots. Every agent carries the same month-to-date stats as the agent list.

GET
/api/companies/{company_id}/org

Get the reporting tree of non-terminated agents.

Returns the root nodes, each with nested reports. Agents without a manager, or whose manager is terminated, are roots. Every agent carries the same month-to-date stats as the agent list.

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

company_id*Company Id
Formatuuid

Response Body

Successful Response

application/json
  1. response
[index: integer]?
curl -X GET "https://example.com/api/companies/497f6eca-6276-4993-bfeb-53cbbbba6f08/org"
[  {    "agent": {      "adapter": "string",      "avatar_seed": 0,      "capabilities": [        null      ],      "company_id": "b2e6a1c3-1a5e-44ae-a8fd-81f76fd715cf",      "created_at": "2019-08-24T14:15:22Z",      "heartbeat_cron": "string",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "instructions": "string",      "last_activity": "2019-08-24T14:15:22Z",      "monthly_budget_cents": 0,      "name": "string",      "open_tasks": 0,      "reports_to_id": "9a08cb01-6bdc-412f-ad45-35a6f5d74f8e",      "role": "string",      "spend_mtd_cents": 0,      "status": "string",      "title": "string"    },    "reports": []  }]