---
title: "Get Agent"
method: GET
path: "/v1/agent/{agent_id}/view"
tags: ["agent"]
---

# Get Agent

`GET /v1/agent/{agent_id}/view`

## 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/{agent_id}/view`
- Auth: HTTP bearer

## Path parameters

- `agent_id` integer, required

## Response `200`

Successful Response

- AgentResponse
  - `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

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