Automations · Comment Automations

List automation logs

Returns automation logs, one page at a time.

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

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

Query parameters

NameTypeNotes
statusstringOne of pending, sent, failed, skipped, gated
limitintegerDefault 501 to 200
skipintegerDefault 0At least 0

Example

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

Response

200 on success

  • successboolean
  • 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)
  • paginationobject
    • totalinteger
    • limitinteger
    • skipinteger
    • hasMoreboolean
  • missesobject
    • totalinteger
    • retentionDaysinteger
    • samplesarray of object
      4 child fields
      • commentTextstring
      • commenterNamestring
      • excludedBystring
      • atstring (date-time)
200 response
{
  "success": true,
  "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"
    }
  ],
  "pagination": {
    "total": 42,
    "limit": 1,
    "skip": 1,
    "hasMore": true
  },
  "misses": {
    "total": 42,
    "retentionDays": 1,
    "samples": [
      {
        "commentText": "Hello from Pozy",
        "commenterName": "Acme",
        "excludedBy": "string",
        "at": "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