---
title: "List Selection Tasks"
method: GET
path: "/api/selection-tasks"
tags: ["selection-tasks"]
---

# List Selection Tasks

`GET /api/selection-tasks`

## 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/selection-tasks`
- Auth: none declared

List selection tasks with optional filtering.

## Query parameters

- `status` string, nullable: Filter by status: pending, in_progress, completed, cancelled
- `root_path` string, nullable: Filter by codebase root path

## Response `200`

Successful Response

- SelectionTaskResponse[]
  - `id` string, required
  - `page_id` string, nullable
  - `block_id` string, nullable
  - `selection_type` string, required
  - `selection_data` object, required
  - `selection_display` string, required
  - `prompt` string, required
  - `status` string, required
  - `notes` string[], required
  - `created_at` string, date-time, nullable
  - `started_at` string, date-time, nullable
  - `completed_at` string, date-time, nullable
  - `completed_summary` string, nullable
  - `result_page_id` string, nullable
  - `root_path` string, nullable
  - `source` SelectionSource: Source location of a selection task.
    - `page_id` string, nullable
    - `page_title` string, nullable
    - `block_id` string, nullable
    - `block_title` string, nullable

## 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)
