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.
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.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
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"}