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

# List Tasks

`GET /tasks`

List tasks. Returns a lean summary per task and omits `params`; fetch GET /tasks/{task_id} for the full record including `params`.

## Query parameters

- `agent_id` string, nullable
- `agent_name` string, nullable
- `status` 'CANCELED' | 'COMPLETED' | 'FAILED' | 'RUNNING' | 'INTERRUPTED' | 'TERMINATED' | 'TIMED_OUT' | 'DELETED'
- `task_metadata` string, nullable — JSON-encoded object used to filter tasks via JSONB containment. Example: {"created_by_user_id": "abc-123"}.
- `limit` integer
- `page_number` integer
- `order_by` string, nullable
- `order_direction` string
- `relationships` TaskRelationships[]

## Response `200`

Successful Response

- TaskSummary[]
  - `id` string, required
  - `name` string, nullable
  - `status` 'CANCELED' | 'COMPLETED' | 'FAILED' | 'RUNNING' | 'INTERRUPTED' | 'TERMINATED' | 'TIMED_OUT' | 'DELETED'
  - `status_reason` string, nullable
  - `created_at` string, date-time, nullable
  - `updated_at` string, date-time, nullable
  - `cleaned_at` string, date-time, nullable
  - `task_metadata` object, nullable
  - `agents` Agent[], nullable
    - `id` string, required — The unique identifier of the agent.
    - `name` string, required — The unique name of the agent.
    - `description` string, required — The description of the action.
    - `status` 'Ready' | 'Failed' | 'Unknown' | 'Deleted' | 'Unhealthy' | 'BuildOnly'
    - `acp_type` 'sync' | 'async' | 'agentic', required
    - `status_reason` string, nullable — The reason for the status of the action.
    - `created_at` string, date-time, required — The timestamp when the agent was created
    - `updated_at` string, date-time, required — The timestamp when the agent was last updated
    - `registration_metadata` object, nullable — The metadata for the agent's registration.
    - `registered_at` string, date-time, nullable — The timestamp when the agent was last registered
    - `agent_input_type` 'text' | 'json'
    - `production_deployment_id` string, nullable — ID of the current production deployment.

## Other responses

- `422` — Validation Error

## Changes

> 55 revisions in range; 4 could not be searched.

- **2026-07-16** `702bb2729fe2` — 1 warning, 1 info
  - added the new `INTERRUPTED` enum value to the `items/status/anyOf[subschema #1: TaskStatus]/` response property for the response status `200`
  - added the enum value `INTERRUPTED` to the property `anyOf[subschema #1: TaskStatus]/` of the `query` request parameter `status`
- **2026-06-02** `6ddcd81c830b` — 1 warning
  - added the new `BuildOnly` enum value to the `items/agents/anyOf[subschema #1]/items/status` response property for the response status `200`
- **2026-05-29** `12a516f4d9ac` — 1 info
  - added the optional property `items/cleaned_at` to the response with the `200` status
- **2026-05-05** `f1561698ffeb` — 2 info
  - added the new optional `query` request parameter `status`
  - added the new optional `query` request parameter `task_metadata`

[Change history](https://skmtc.dev/scaleapi/apis/agentex-api/changes/tasks/get.md)

---

[API](https://skmtc.dev/scaleapi/apis/agentex-api.md) · [All operations](https://skmtc.dev/scaleapi/apis/agentex-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/scaleapi/agentex-api/revisions/1e0aaafd5780/schema)
