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

# List Agents

`GET /api/ai-agents`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/ai-agents`
- Auth: none declared

List all AI Agents for the workspace + non-customized templates.

Spec §4: merges workspace_id=:ws rows with non-deprecated, non-customized
system templates (workspace_id=0). Templates that the workspace has forked
(based_on_template_id links) are excluded so the fork supersedes the
template visually. Slug-disambiguation (§3.1 polish): if a workspace row
and a template row share a slug in the same response, the template's
display_name gets ' (template)' appended.

`include_system` (default False): when False, hide system-provided agents
so the operator sees only the agents THEY have built. System agents are
either (a) global templates (workspace_id=0) or (b) workspace rows whose
`based_on_template_id` points at a template they haven't yet meaningfully
customized. The orchestrator (slug='router') is ALWAYS returned regardless
of this flag so it can be pinned as the operator's primary AI entry point.

## Query parameters

- `status` string, nullable
- `text_engine` string, nullable
- `include_system` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/77bef09a9209?raw)
