---
title: "List the workspace's tasks [read]"
method: GET
path: "/tasks"
tags: ["tasks"]
---

# List the workspace's tasks \[read\]

`GET /tasks`

## Request

- Base URL: `https://api.agentsky.dev/v1`
- URL: `https://api.agentsky.dev/v1/tasks`
- Auth: HTTP bearer

Most recent activity first. Helper and handoff sessions are counted inside their task and never listed on their own.

## Query parameters

- `attention` 'needs_you' | 'working' | 'done' | 'idle': What the caller should do about the task. `needs_you`: a request addressed to the caller is open. `working`: a session in the task is running or starting, or the task is waiting on somebody else. `done`: a result arrived since the caller last marked the task seen. `idle`: nothing new.

## Response `200`

OK

- object
  - `tasks` TaskSummary[], required
    - `id` string, required: sess_… — the root session's id
    - `title` string, nullable, required
    - `attention` 'needs_you' | 'working' | 'done' | 'idle', required: What the caller should do about the task. `needs_you`: a request addressed to the caller is open. `working`: a session in the task is running or starting, or the task is waiting on somebody else. `done`: a result arrived since the caller last marked the task seen. `idle`: nothing new.
    - `status_line` string, nullable, required: One line, at most 140 characters, on where it stands: the oldest question waiting on the caller, else the start of the latest thing an agent said. Null when no agent has said anything.
    - `open_request_count` integer, required: Open requests addressed to the caller
    - `session_count` integer, required: The root session plus its helper and handoff sessions
    - `sessions` object[], required: Every session in the task, root first, each with its own share of the state: its own open requests, its own run and its own latest result, measured against the task's seen mark.
      - `id` string, required: sess_…
      - `role` 'primary' | 'helper' | 'handoff', required
      - `attention` 'needs_you' | 'working' | 'done' | 'idle', required: What the caller should do about the task. `needs_you`: a request addressed to the caller is open. `working`: a session in the task is running or starting, or the task is waiting on somebody else. `done`: a result arrived since the caller last marked the task seen. `idle`: nothing new.
      - `status_line` string, nullable, required: One line, at most 140 characters, on where it stands: the oldest question waiting on the caller, else the start of the latest thing an agent said. Null when no agent has said anything.
    - `agent_id` string, nullable, required: The root session's agent (agent_…)
    - `agent_type` string, required
    - `llm` string, required
    - `archived` boolean, required
    - `last_activity_at` string, date-time, required
    - `created_at` string, date-time, required

## Other responses

- `default`: Error — { error: { code, message } }

## Changes

- **2026-11-02** `e5e8f0229a99`: 1 info
  - added the optional property `error/request_id` to the response with the `default` status

[Operation history](https://skmtc.dev/agentsky/apis/agentsky-developer-api/changes/tasks/get.md)

---

[API](https://skmtc.dev/agentsky/apis/agentsky-developer-api.md) - [All operations](https://skmtc.dev/agentsky/apis/agentsky-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentsky/apis/agentsky-developer-api/revisions/8280a065ef6a?raw)
