# List comment-to-DM automations

Returns comment-to-DM automations.

```http
GET https://api.pozy.ai/v1/comment-automations
```

- Area: Automations / Comment Automations
- Auth: Authorization: Bearer pz_live_...

## Query parameters

- `profileId` (string)

## Example request

```bash
curl -X GET "https://api.pozy.ai/v1/comment-automations" \
  -H "Authorization: Bearer $POZY_API_KEY"
```

```ts
const res = await fetch("https://api.pozy.ai/v1/comment-automations", {
  headers: { Authorization: `Bearer ${process.env.POZY_API_KEY}` },
});
const data = await res.json();
if (!res.ok) throw new Error(data?.error ?? `Request failed with status ${res.status}`);
console.log(data);
```

```python
import os
import requests

resp = requests.get(
    "https://api.pozy.ai/v1/comment-automations",
    headers={"Authorization": f"Bearer {os.environ['POZY_API_KEY']}"},
    timeout=30,
)
resp.raise_for_status()
print(resp.json())
```

## Response 200

- `success`, boolean
- `automations`, array of object
  - `id`, string
  - `name`, string
  - `platform`, string: One of `instagram`, `facebook`, `tiktok`, `threads`, `linkedin`, `youtube`
  - `trigger`, string: One of `comment`, `live_comment`, `story_reply`, `story_mention`
  - `accountId`, string
  - `platformPostId`, string
  - `postTitle`, string
  - `postId`, string
  - `keywords`, array of string
  - `matchMode`, string: One of `exact`, `contains`, `word`
  - `excludeKeywords`, array of string
  - `typoTolerance`, boolean
  - `dmMessage`, string
  - `buttons`, array of object
    - `type`, string, required: One of `url`, `postback`, `phone`
    - `title`, string, required: Up to 20 characters
    - `url`, string (URL)
    - `payload`, string
    - `phone`, string
  - `template`, object
    - `type`, string, required: One of `generic`
    - `imageAspectRatio`, string: One of `horizontal`, `square`
    - `elements`, array of object, required: At least 1 item. Up to 10 items
      - `title`, string, required: Up to 80 characters
      - `subtitle`, string: Up to 80 characters
      - `imageUrl`, string (URL)
      - `buttons`, array of object: Up to 3 items
        - `type`, string, required: One of `url`, `postback`
        - `title`, string, required: Up to 20 characters
        - `url`, string (URL)
        - `payload`, string
  - `commentReply`, string
  - `dmMessageVariations`, array of string
  - `commentReplyVariations`, array of string
  - `linkTracking`, boolean
  - `clickTag`, string
  - `dmDelaySeconds`, integer
  - `commentReplyDelaySeconds`, integer
  - `alsoMatchInDms`, boolean
  - `repeatPolicy`, object
    - `mode`, string, required: One of `once`, `every_comment`. Default `once`
    - `cooldownHours`, integer: 1 to 8760
  - `dedupeSameTextHours`, integer
  - `publicReplyPolicy`, string: One of `after_dm`, `always`
  - `actions`, object
    - `likeComment`, boolean
    - `hideComment`, boolean
  - `quickReplies`, array of object
    - `title`, string, required: Up to 20 characters
    - `payload`, string, required
    - `imageUrl`, string (URL)
  - `dmMedia`, object
    - `type`, string, required: One of `image`, `video`, `audio`, `file`
    - `url`, string (URL), required
  - `audience`, object
    - `followerStatus`, string: One of `any`, `follower`, `non_follower`. Default `any`
    - `minFollowerCount`, integer: At least 0
    - `whenUnknown`, string: One of `send`, `skip`, `verify`. Default `send`
    - `tapToUnlock`, boolean: Default `false`
  - `followGate`, object
    - `message`, string: Up to 640 characters
    - `buttonLabel`, string: Up to 20 characters
    - `profileButtonLabel`, string: 1 to 20 characters
    - `notFollowingMessage`, string: Up to 1000 characters
  - `isActive`, boolean
  - `stats`, object
    - `triggered`, integer
    - `dmsSent`, integer
    - `dmsFailed`, integer
    - `uniqueContacts`, integer
    - `trackedSends`, integer
    - `linkClicks`, integer
    - `uniqueClicks`, integer
    - `delivered`, integer
    - `read`, integer
    - `audienceSkipped`, integer
    - `followGateSent`, integer
    - `followGatePassed`, integer
    - `followGateFailed`, integer
  - `createdAt`, string (date-time)

```json
{
  "success": true,
  "automations": [
    {
      "id": "6bfebd43ddc270f6d2c56fc5",
      "name": "Acme",
      "platform": "instagram",
      "trigger": "comment",
      "accountId": "696e0b682d0a31188e7a2ba9",
      "platformPostId": "637f799b3039e6602e83fa4f",
      "postTitle": "string",
      "postId": "6108a2cc742cb4e991051e0c",
      "keywords": [
        "string"
      ],
      "matchMode": "exact",
      "excludeKeywords": [
        "string"
      ],
      "typoTolerance": true,
      "dmMessage": "Hello from Pozy",
      "buttons": [
        {
          "type": "url",
          "title": "Launch day",
          "url": "https://pozy.ai/media/example-1.jpg",
          "payload": "string",
          "phone": "+14155550123"
        }
      ],
      "template": {
        "type": "generic",
        "imageAspectRatio": "horizontal",
        "elements": [
          {
            "title": "Launch day",
            "subtitle": "string",
            "imageUrl": "https://pozy.ai/media/example-1.jpg",
            "buttons": [
              {
                "type": "url",
                "title": "Launch day",
                "url": "https://pozy.ai/media/example-1.jpg",
                "payload": "string"
              }
            ]
          }
        ]
      },
      "commentReply": "string",
      "dmMessageVariations": [
        "Hello from Pozy"
      ],
      "commentReplyVariations": [
        "string"
      ],
      "linkTracking": true,
      "clickTag": "string",
      "dmDelaySeconds": 1,
      "commentReplyDelaySeconds": 1,
      "alsoMatchInDms": true,
      "repeatPolicy": {
        "mode": "once",
        "cooldownHours": 1
      },
      "dedupeSameTextHours": 1,
      "publicReplyPolicy": "after_dm",
      "actions": {
        "likeComment": true,
        "hideComment": true
      },
      "quickReplies": [
        {
          "title": "Launch day",
          "payload": "string",
          "imageUrl": "https://pozy.ai/media/example-1.jpg"
        }
      ],
      "dmMedia": {
        "type": "image",
        "url": "https://pozy.ai/media/example-1.jpg"
      },
      "audience": {
        "followerStatus": "any",
        "minFollowerCount": 42,
        "whenUnknown": "send",
        "tapToUnlock": false
      },
      "followGate": {
        "message": "Hello from Pozy",
        "buttonLabel": "string",
        "profileButtonLabel": "string",
        "notFollowingMessage": "Hello from Pozy"
      },
      "isActive": true,
      "stats": {
        "triggered": 1,
        "dmsSent": 1,
        "dmsFailed": 1,
        "uniqueContacts": 1,
        "trackedSends": 1,
        "linkClicks": 1,
        "uniqueClicks": 1,
        "delivered": 1,
        "read": 1,
        "audienceSkipped": 1,
        "followGateSent": 1,
        "followGatePassed": 1,
        "followGateFailed": 1
      },
      "createdAt": "2026-10-02T09:00:00.000Z"
    }
  ]
}
```
