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`.
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.
HTTPBearerAuthorizationBearer <token>company_id*Company IduuidSuccessful Response
application/json- 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" }]Create Task Comment POST
Add a comment, question or plan to a task's thread. `task_ref` is the task's UUID or key (e.g. `SAT-12`). `kind` is `comment` (default), `question` or `plan`. A runner passes `run_id` of its running run to post as that run's agent (400 `RUN_NOT_RUNNING` otherwise); without it the caller is the author. Publishes `task.commented`.
Create Goal POST
Create a goal, optionally nested under a parent goal and owned by an agent. `parent_id` and `owner_agent_id` must belong to this company (404 `NOT_FOUND` otherwise). `status` defaults to `active`. Publishes `goal.created`.