comment automations
Create a comment-to-DM automation
Create a keyword-triggered DM automation on an Instagram or Facebook post. When someone comments a matching keyword, they automatically receive a DM. Only one active automation per post is allowed.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
profileIdstring
accountIdstring
Instagram or Facebook account ID
platformPostIdstring
Platform media/post ID
postId?string
Zernio post ID (optional)
postTitle?string
Post content snippet for display
namestring
Automation label
keywords?array<string>
Trigger keywords (empty = any comment triggers)
matchMode?string
Default
"contains"Value in
"exact" | "contains"dmMessagestring
DM text to send to commenter
commentReply?string
Optional public reply to the comment
Response Body
application/json
curl -X POST "https://zernio.com/api/v1/comment-automations" \ -H "Content-Type: application/json" \ -d '{ "profileId": "string", "accountId": "string", "platformPostId": "string", "name": "string", "dmMessage": "string" }'Empty
Empty
{
"error": "Unauthorized"
}Empty