---
title: "Get Folder Agent Tasks"
method: GET
path: "/api/tasks/folder/{folder_id}"
tags: ["tasks"]
---

# Get Folder Agent Tasks

`GET /api/tasks/folder/{folder_id}`

## Request

- Base URL: `https://app.ctlsurf.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.ctlsurf.com/api/tasks/folder/{folder_id}`
- Auth: HTTP bearer

Get all agent tasks (ctlsurf_task) in a folder, grouped by page.

## Path parameters

- `folder_id` string, uuid, required

## Query parameters

- `include_done` boolean: Include completed tasks

## Response `200`

Successful Response

- FolderAgentTasks: All agent tasks in a folder, grouped by page.
  - `folder_id` string, uuid, required
  - `folder_name` string, required
  - `pages` PageTasks[], required
    - `page_id` string, uuid, required
    - `page_title` string, required
    - `tasks` AgentTaskItem[], required
      - `id` string, required
      - `text` string, required
      - `done` boolean
      - `notes` string[]
      - `skill_id` string, nullable
      - `block_id` string, uuid, required
      - `block_title` string, nullable
  - `total_pending` integer, required
  - `total_done` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/ctlsurf/apis/notebook-control-plane.md) · [All operations](https://skmtc.dev/ctlsurf/apis/notebook-control-plane/llms.txt) · [OpenAPI document](https://skmtc.dev/ctlsurf/apis/notebook-control-plane/revisions/ddfbbe20d5ce?raw)
