Automations · Comment Automations
Returns automation logs, one page at a time.
https://api.pozy.ai/v1/comment-automations/{automationId}/logsGuide: 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
| Name | Type | Notes |
|---|---|---|
automationIdrequired | string |
Query parameters
| Name | Type | Notes |
|---|---|---|
status | string | One of pending, sent, failed, skipped, gated |
limit | integer | Default 501 to 200 |
skip | integer | Default 0At least 0 |
Example
curl -X GET "https://api.pozy.ai/v1/comment-automations/66795db1e7f0419ba4a14e79/logs?limit=50" \
-H "Authorization: Bearer $POZY_API_KEY"const res = await fetch("https://api.pozy.ai/v1/comment-automations/66795db1e7f0419ba4a14e79/logs?limit=50", {
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);import os
import requests
resp = requests.get(
"https://api.pozy.ai/v1/comment-automations/66795db1e7f0419ba4a14e79/logs",
headers={"Authorization": f"Bearer {os.environ['POZY_API_KEY']}"},
params={
"limit": 50,
},
timeout=30,
)
resp.raise_for_status()
print(resp.json())Response
200 on success
successbooleanlogsarray of object26 child fields
idstringcommentIdstringcommenterIdstringcommenterNamestringCan be null.
commenterUsernamestringCan be null.
commentTextstringCan be null.
sourcestringOne of
comment,live_comment,story_reply,story_mention,dm. Can be null.statusstringOne of
pending,sent,failed,skipped,gated.audienceOutcomestringOne of
passed,blocked,gate_sent,gate_passed,gate_failed. Can be null.gateButtonStatusstringOne of
delivered,rejected,omitted. Can be null.commenterIsFollowerbooleanCan be null.
commenterFollowerCountintegerCan be null.
gateResolvedAtstring (date-time)Can be null.
errorstringCan be null.
platformErrorobjectCan be null.
2 child fields
codeintegersubcodeinteger
privateReplyConsumedbooleanCan be null.
commentReplyStatusstringOne of
pending,sent,failed,skipped. Can be null.commentReplyErrorstringCan be null.
publicReplyPostedAtstring (date-time)Can be null.
likeSkippedstringCan be null.
hideSkippedstringCan be null.
mediaErrorstringCan be null.
nextDueAtstring (date-time)Can be null.
clickedAtstring (date-time)Can be null.
clickCountintegercreatedAtstring (date-time)
paginationobjecttotalintegerlimitintegerskipintegerhasMoreboolean
missesobjecttotalintegerretentionDaysintegersamplesarray of object4 child fields
commentTextstringcommenterNamestringexcludedBystringatstring (date-time)
{
"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:
| 400 | invalid_request_error | A parameter or body field is missing or invalid. param names it. |
| 401 | authentication_error | The API key is missing, revoked or expired. |
| 403 | permission_error | The key is scoped to other profiles or has this resource group disabled. |
| 404 | not_found | Nothing with that id exists in your workspace. |
| 429 | rate_limit_error | Too many requests this minute. Wait for Retry-After seconds. |
Every code is listed in Errors.