mentions
Reply to a mention
Reply to a mention of the connected account. Supported on Instagram only.
Two shapes, selected by whether commentId is present:
- Comment mention (someone @mentioned the account inside a comment): pass both
mediaIdandcommentId. Instagram posts a reply under that comment. - Caption mention (someone @mentioned the account in their media caption, so no
comment exists): pass
mediaIdonly. Instagram posts a comment on their media.
Story mentions are not supported by Instagram's API.
Note that GET /v1/inbox/mentions currently returns LinkedIn mentions only and does
not surface Instagram mentions. Source mediaId and commentId from Instagram's
comments webhook, which is where mention notifications are delivered for accounts
connected through Instagram Login.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
accountIdstring
The Instagram social account ID
mediaIdstring
The ID of the media the account was mentioned in
commentId?string
The mentioning comment's ID. Omit for a caption mention.
messagestring
The reply text
Response Body
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.mentions.replyToMention({ body: { accountId: 'account_abc123', mediaId: 'media_abc123', message: 'Hello, world!', },});console.log(data);{
"success": true,
"id": "17912345678901234"
}Empty
{
"error": "Unauthorized"
}Empty
Empty
Empty