---
title: "Get All Agents"
method: GET
path: "/v1/agent/all"
tags: ["agent"]
---

# Get All Agents

`GET /v1/agent/all`

## Request

- Base URL: `https://api.linktodm.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.linktodm.com/v1/agent/all`
- Auth: HTTP bearer

## Query parameters

- `channel_id` string, nullable
- `agent_type` 'LIKE' | 'COMMENT_MODERATION'
- `search` string, nullable
- `limit` integer
- `offset` integer

## Response `200`

Successful Response

- PaginationSchemaAgentResponse
  - `data` AgentResponse[], required
    - `id` integer, required
    - `name` string, required
    - `type` 'LIKE' | 'COMMENT_MODERATION', required
    - `channel_id` string, nullable
    - `facebook_account_id` string, nullable
    - `instagram_business_account_id` string, nullable
    - `instagram_user_id` string, nullable
    - `media_selection_type` 'SPECIFIC' | 'ALL', required: Media selection type for triggers.
    - `media_ids` string[], nullable
    - `ai_prompt` string, required
    - `action_limit` 'UNLIMITED' | 'PER_DAY'
    - `action_limit_value` integer, nullable
    - `delay_in_seconds` integer, nullable
    - `delay_unit` 'SECONDS' | 'MINUTES' | 'HOURS' | 'DAYS': Unit a user entered a wait duration in. Shared by the legacy automation step delays (`StepDelay.delay_unit`) and the flow builder's DELAY node / comment auto-reply delay. The backend always schedules with the canonical seconds value; this is what the UI round-trips so the editor can show the delay the way it was typed.
    - `is_active` boolean, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
  - `total` integer, required
  - `limit` integer, required
  - `offset` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/linktodm/apis/salesmorph.md) - [All operations](https://skmtc.dev/linktodm/apis/salesmorph/llms.txt) - [OpenAPI document](https://skmtc.dev/linktodm/apis/salesmorph/revisions/4af0ad5dbe92?raw)
