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

# List Tasks

`GET /tasks`

List all tasks.

## Query parameters

- `agent_id` string, nullable — Optional agent filter. When provided, we authorize it via direct OpenFGA Check and avoid ListObjects(agent) to prevent false 403s from transient/partial list results.
- `namespace_id` string, nullable
- `agent_name` string, nullable
- `branch_id` string, nullable
- `status` TaskStatus[]
- `created_after` string, date-time, nullable
- `created_before` string, date-time, nullable
- `include_total` boolean
- `limit` integer
- `page_number` integer
- `order_by` string, nullable
- `order_direction` string
- `relationships` TaskRelationships[]

## Response `200`

Successful Response

- TaskResponse[]
  - `agents` Agent[], nullable
    - `agent_input_type` 'text' | 'json'
    - `created_at` string, date-time, required — The timestamp when the agent was created
    - `description` string, required — The description of the action.
    - `id` string, required — The unique identifier of the agent.
    - `name` string, required — The agent name (unique within namespace).
    - `namespace_id` string, required — The namespace ID this agent belongs to.
    - `registered_at` string, date-time, nullable — The timestamp when the agent was last registered
    - `registration_metadata` object, nullable — The metadata for the agent's registration.
    - `status` 'ACTIVE' | 'DELETED' — Agent status - runtime statuses (Ready/Failed/Unhealthy) now live on Deployment.
    - `status_reason` string, nullable — The reason for the status of the action.
    - `updated_at` string, date-time, required — The timestamp when the agent was last updated
  - `created_at` string, date-time, nullable
  - `created_version_id` string, nullable
  - `current_version_id` string, nullable
  - `filesystem_id` string, required
  - `id` string, required
  - `name` string, nullable
  - `namespace_id` string, required
  - `params` object, nullable
  - `status` 'IDLE' | 'CANCELED' | 'COMPLETED' | 'FAILED' | 'RUNNING' | 'TERMINATED' | 'TIMED_OUT' | 'DELETED'
  - `status_reason` string, nullable
  - `task_metadata` object, nullable
  - `updated_at` string, date-time, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/terminaluse/apis/sb0-api.md) · [All operations](https://skmtc.net/terminaluse/apis/sb0-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/terminaluse/sb0-api/revisions/f24a474dc415/schema)
