List automation logs
Paginated list of every comment that triggered this automation, with send status and commenter info.
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
Query Parameters
Filter by result status
"pending" | "sent" | "failed" | "skipped" | "gated"501 <= value <= 20000 <= valueResponse Body
application/json
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.commentautomations.listCommentAutomationLogs({ path: { automationId: 'automation_abc123', },});console.log(data);{
"success": true,
"logs": [
{
"id": "string",
"commentId": "string",
"commenterId": "string",
"commenterName": "string",
"commentText": "string",
"status": "pending",
"audienceOutcome": "passed",
"commenterIsFollower": true,
"commenterFollowerCount": 0,
"error": "string",
"commentReplyStatus": "sent",
"commentReplyError": "string",
"nextDueAt": "2019-08-24T14:15:22Z",
"createdAt": "2019-08-24T14:15:22Z"
}
],
"pagination": {
"total": 0,
"limit": 0,
"skip": 0,
"hasMore": true
},
"misses": {
"total": 0,
"retentionDays": 0,
"samples": [
{
"commentText": "string",
"commenterName": "string",
"excludedBy": "string",
"at": "2019-08-24T14:15:22Z"
}
]
}
}{
"error": "string",
"type": "invalid_request_error",
"code": "string",
"param": "string",
"platform": "string",
"platformError": {},
"details": {}
}{
"error": "Unauthorized"
}{
"error": "Not found"
}Restore a workflow version POST
Replace the current graph with the named version's snapshot. Before the swap, the current graph is itself snapshotted as a new version, so a restore is reversible. The workflow must be in `draft` or `paused` status (same gate as a normal graph edit). The returned workflow carries `restoredFromVersion` so the UI can surface which version was rolled back to.
List comment-to-DM automations GET
List all comment-to-DM automations for a profile. Returns automations with their stats.