Automations · Comment Automations

Get automation details

Fetches automation details.

GEThttps://api.pozy.ai/v1/comment-automations/{automationId}
getCommentAutomation

Guide: Comment to DM

Request

Send your API key as Authorization: Bearer pz_live_.... Read-only keys can call it. Keys with the messages resource group disabled get 403 resource_group_disabled. Authentication

Path parameters

NameTypeNotes
automationIdrequiredstring

Example

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

Response

200 on success

  • successboolean
  • automationobject
    35 child fields
    • idstring
    • namestring
    • platformstring

      One of instagram, facebook, tiktok, threads, linkedin, youtube.

    • triggerstring

      One of comment, live_comment, story_reply, story_mention.

    • accountIdstring
    • platformPostIdstring
    • postIdstring
    • postTitlestring
    • keywordsarray of string
    • matchModestring

      One of exact, contains, word.

    • excludeKeywordsarray of string
    • typoToleranceboolean
    • dmMessagestring
    • buttonsarray of object
      5 child fields
      • typestringrequired

        One of url, postback, phone.

      • titlestringrequired

        Up to 20 characters.

      • urlstring (URL)
      • payloadstring
      • phonestring
    • templateobject
      3 child fields
      • typestringrequired

        One of generic.

      • imageAspectRatiostring

        One of horizontal, square.

      • elementsarray of objectrequired

        At least 1 item. Up to 10 items.

        4 child fields
        • titlestringrequired

          Up to 80 characters.

        • subtitlestring

          Up to 80 characters.

        • imageUrlstring (URL)
        • buttonsarray of object

          Up to 3 items.

          4 child fields
          • typestringrequired

            One of url, postback.

          • titlestringrequired

            Up to 20 characters.

          • urlstring (URL)
          • payloadstring
    • commentReplystring
    • dmMessageVariationsarray of string
    • commentReplyVariationsarray of string
    • linkTrackingboolean
    • clickTagstring
    • dmDelaySecondsinteger
    • commentReplyDelaySecondsinteger
    • audienceobject
      4 child fields
      • followerStatusstring

        One of any, follower, non_follower. Default any.

      • minFollowerCountinteger

        At least 0.

      • whenUnknownstring

        One of send, skip, verify. Default send.

      • tapToUnlockboolean

        Default false.

    • followGateobject
      4 child fields
      • messagestring

        Up to 640 characters.

      • buttonLabelstring

        Up to 20 characters.

      • profileButtonLabelstring

        1 to 20 characters.

      • notFollowingMessagestring

        Up to 1000 characters.

    • alsoMatchInDmsboolean
    • repeatPolicyobject
      2 child fields
      • modestringrequired

        One of once, every_comment. Default once.

      • cooldownHoursinteger

        1 to 8760.

    • dedupeSameTextHoursinteger
    • publicReplyPolicystring

      One of after_dm, always.

    • actionsobject
      2 child fields
      • likeCommentboolean
      • hideCommentboolean
    • quickRepliesarray of object
      3 child fields
      • titlestringrequired

        Up to 20 characters.

      • payloadstringrequired
      • imageUrlstring (URL)
    • dmMediaobject
      2 child fields
      • typestringrequired

        One of image, video, audio, file.

      • urlstring (URL)required
    • isActiveboolean
    • statsobject
      13 child fields
      • triggeredinteger
      • dmsSentinteger
      • dmsFailedinteger
      • uniqueContactsinteger
      • trackedSendsinteger
      • linkClicksinteger
      • uniqueClicksinteger
      • deliveredinteger
      • readinteger
      • audienceSkippedinteger
      • followGateSentinteger
      • followGatePassedinteger
      • followGateFailedinteger
    • createdAtstring (date-time)
    • updatedAtstring (date-time)
  • logsarray of object
    26 child fields
    • idstring
    • commentIdstring
    • commenterIdstring
    • commenterNamestring

      Can be null.

    • commenterUsernamestring

      Can be null.

    • commentTextstring

      Can be null.

    • sourcestring

      One of comment, live_comment, story_reply, story_mention, dm. Can be null.

    • statusstring

      One of pending, sent, failed, skipped, gated.

    • audienceOutcomestring

      One of passed, blocked, gate_sent, gate_passed, gate_failed. Can be null.

    • gateButtonStatusstring

      One of delivered, rejected, omitted. Can be null.

    • commenterIsFollowerboolean

      Can be null.

    • commenterFollowerCountinteger

      Can be null.

    • gateResolvedAtstring (date-time)

      Can be null.

    • errorstring

      Can be null.

    • platformErrorobject

      Can be null.

      2 child fields
      • codeinteger
      • subcodeinteger
    • privateReplyConsumedboolean

      Can be null.

    • commentReplyStatusstring

      One of pending, sent, failed, skipped. Can be null.

    • commentReplyErrorstring

      Can be null.

    • publicReplyPostedAtstring (date-time)

      Can be null.

    • likeSkippedstring

      Can be null.

    • hideSkippedstring

      Can be null.

    • mediaErrorstring

      Can be null.

    • nextDueAtstring (date-time)

      Can be null.

    • clickedAtstring (date-time)

      Can be null.

    • clickCountinteger
    • createdAtstring (date-time)
200 response
{
  "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"
    }
  ]
}

Errors

Errors use one shape: { error, type, code, param?, details? }. The ones you are most likely to see here:

400invalid_request_errorA parameter or body field is missing or invalid. param names it.
401authentication_errorThe API key is missing, revoked or expired.
403permission_errorThe key is scoped to other profiles or has this resource group disabled.
404not_foundNothing with that id exists in your workspace.
429rate_limit_errorToo many requests this minute. Wait for Retry-After seconds.

Every code is listed in Errors.

More in Comment Automations