List tasks

Tasks in a project with status, assignees and due date.

GET https://cotlet.dev/api/v1/hubstaff/projects/{project_id}/tasks

read

Lists the tasks of one project with summary, status and the members assigned to each. Filter by status to see what is still open.

Parameters

Parameters: list_tasks
NameTypeDescription
project_id integer required integer Project ID from list_projects.
status string string active or completed. Default: both.
limit integer integer 1 to 100. Default: 50.
cursor string string Next page cursor from the previous call.

Request

cURL
curl https://cotlet.dev/api/v1/hubstaff/projects/1/tasks \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("hubstaff", "list_tasks", {"project_id":1})
Node.js
const result = await cotlet.call('hubstaff', 'list_tasks', {"project_id":1});
CLI
cotlet call hubstaff list_tasks --data '{"project_id":1}'

Example response

JSON

{
  "tasks": [
    {
      "task_id": 551020,
      "summary": "Homepage design",
      "status": "active",
      "assignee_ids": [
        3011
      ],
      "due_at": null
    },
    {
      "task_id": 551021,
      "summary": "Checkout flow",
      "status": "completed",
      "assignee_ids": [
        3012
      ],
      "due_at": null
    }
  ],
  "next_cursor": null
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.