# Get automation details

Fetches automation details.

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

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

## Path parameters

- `automationId` (string, required)

## Example request

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

```ts
const res = await fetch("https://api.pozy.ai/v1/comment-automations/66795db1e7f0419ba4a14e79", {
  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/66795db1e7f0419ba4a14e79",
    headers={"Authorization": f"Bearer {os.environ['POZY_API_KEY']}"},
    timeout=30,
)
resp.raise_for_status()
print(resp.json())
```

## Response 200

- `success`, boolean
- `automation`, 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
  - `postId`, string
  - `postTitle`, 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
  - `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
  - `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
  - `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)
  - `updatedAt`, string (date-time)
- `logs`, array of object
  - `id`, string
  - `commentId`, string
  - `commenterId`, string
  - `commenterName`, string: Can be null
  - `commenterUsername`, string: Can be null
  - `commentText`, string: Can be null
  - `source`, string: One of `comment`, `live_comment`, `story_reply`, `story_mention`, `dm`. Can be null
  - `status`, string: One of `pending`, `sent`, `failed`, `skipped`, `gated`
  - `audienceOutcome`, string: One of `passed`, `blocked`, `gate_sent`, `gate_passed`, `gate_failed`. Can be null
  - `gateButtonStatus`, string: One of `delivered`, `rejected`, `omitted`. Can be null
  - `commenterIsFollower`, boolean: Can be null
  - `commenterFollowerCount`, integer: Can be null
  - `gateResolvedAt`, string (date-time): Can be null
  - `error`, string: Can be null
  - `platformError`, object: Can be null
    - `code`, integer
    - `subcode`, integer
  - `privateReplyConsumed`, boolean: Can be null
  - `commentReplyStatus`, string: One of `pending`, `sent`, `failed`, `skipped`. Can be null
  - `commentReplyError`, string: Can be null
  - `publicReplyPostedAt`, string (date-time): Can be null
  - `likeSkipped`, string: Can be null
  - `hideSkipped`, string: Can be null
  - `mediaError`, string: Can be null
  - `nextDueAt`, string (date-time): Can be null
  - `clickedAt`, string (date-time): Can be null
  - `clickCount`, integer
  - `createdAt`, string (date-time)

```json
{
  "success": true,
  "automation": {
    "id": "6bfebd43ddc270f6d2c56fc5",
    "name": "Acme",
    "platform": "instagram",
    "trigger": "comment",
    "accountId": "696e0b682d0a31188e7a2ba9",
    "platformPostId": "637f799b3039e6602e83fa4f",
    "postId": "6108a2cc742cb4e991051e0c",
    "postTitle": "string",
    "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,
    "audience": {
      "followerStatus": "any",
      "minFollowerCount": 42,
      "whenUnknown": "send",
      "tapToUnlock": false
    },
    "followGate": {
      "message": "Hello from Pozy",
      "buttonLabel": "string",
      "profileButtonLabel": "string",
      "notFollowingMessage": "Hello from Pozy"
    },
    "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"
    },
    "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",
    "updatedAt": "2026-10-02T09:00:00.000Z"
  },
  "logs": [
    {
      "id": "6bfebd43ddc270f6d2c56fc5",
      "commentId": "6cc7605fa43607e4ad43b1d4",
      "commenterId": "6cf092e7d0bbf7835e6b78dc",
      "commenterName": "Acme",
      "commenterUsername": "acme",
      "commentText": "Hello from Pozy",
      "source": "comment",
      "status": "pending",
      "audienceOutcome": "passed",
      "gateButtonStatus": "delivered",
      "commenterIsFollower": true,
      "commenterFollowerCount": 42,
      "gateResolvedAt": "2026-10-02T09:00:00.000Z",
      "error": "string",
      "platformError": {
        "code": 1,
        "subcode": 1
      },
      "privateReplyConsumed": true,
      "commentReplyStatus": "pending",
      "commentReplyError": "string",
      "publicReplyPostedAt": "2026-10-02T09:00:00.000Z",
      "likeSkipped": "string",
      "hideSkipped": "string",
      "mediaError": "string",
      "nextDueAt": "2026-10-02T09:00:00.000Z",
      "clickedAt": "2026-10-02T09:00:00.000Z",
      "clickCount": 42,
      "createdAt": "2026-10-02T09:00:00.000Z"
    }
  ]
}
```
