---
title: "List Agents"
method: GET
path: "/agents"
tags: ["Agents"]
---

# List Agents

`GET /agents`

List all registered agents, optionally filtered by query parameters.

## Query parameters

- `task_id` string, nullable — Task ID
- `namespace_id` string, nullable — Filter by namespace ID
- `limit` integer — Limit
- `page_number` integer — Page number
- `order_by` string, nullable — Field to order by
- `order_direction` string — Order direction (asc or desc)

## Response `200`

Successful Response

- AgentListItem[]
  - `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.
  - `status` 'ACTIVE' | 'DELETED' — Agent status - runtime statuses (Ready/Failed/Unhealthy) now live on Deployment.

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