comments
Send private reply
Send a private message to the author of a comment. Supported on Instagram and Facebook only. One reply per comment, must be sent within 7 days, text only.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
postIdstring
The media/post ID (Instagram media ID or Facebook post ID)
commentIdstring
The comment ID to send a private reply to
accountIdstring
The social account ID (Instagram or Facebook)
messagestring
The message text to send as a private DM
Response Body
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.comments.sendPrivateReplyToComment({ path: { postId: 'post_abc123', commentId: 'comment_abc123', }, body: { accountId: 'account_abc123', message: 'Hello, world!', },});console.log(data);{
"status": "success",
"messageId": "string",
"commentId": "string",
"platform": "instagram"
}{
"error": "Private replies to comments are only supported on Instagram and Facebook.",
"code": "PLATFORM_LIMITATION"
}{
"error": "Unauthorized"
}Empty
Empty