Smart Agent Teams
EndpointsGoals

List Goals

List the company's goals, oldest first, with task progress. `tasks_total` counts the goal's linked tasks that are not `cancelled`; `tasks_done` counts those that are `done`. Goals are returned flat; nest them with `parent_id`.

GET
/api/companies/{company_id}/goals

List the company's goals, oldest first, with task progress.

tasks_total counts the goal's linked tasks that are not cancelled; tasks_done counts those that are done. Goals are returned flat; nest them with parent_id.

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/goals"
[  {    "created_at": "2019-08-24T14:15:22Z",    "description": "string",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "owner_agent_id": "5219977a-7944-4486-9ee6-547d2b1c19ff",    "parent_id": "1c6ca187-e61f-4301-8dcb-0e9749e89eef",    "status": "string",    "target_date": "2019-08-24T14:15:22Z",    "tasks_done": 0,    "tasks_total": 0,    "title": "string"  }]