OverviewProductsPlatformsAPI ReferenceResources
Mentions

Reply to a mention

POSThttps://zernio.com/api/v1/inbox/mentions/reply

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 mediaId and commentId. Instagram posts a reply under that comment.
  • Caption mention (someone @mentioned the account in their media caption, so no comment exists): pass mediaId only. Instagram posts a comment on their media.

Story mentions are not supported by Instagram's API.

GET /v1/inbox/mentions returns Instagram mentions with the mediaId and commentId to pass here.

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Body

application/json

What every request needs

accountIdstringRequired

The Instagram account ID

mediaIdstringRequired

The ID of the media the account was mentioned in

messagestringRequired

The reply text

Optional parameters1 field
commentIdstring

The mentioning comment's ID. Omit for a caption mention.

Responses

Success· the request worked

Errors· the request failed

POST/v1/inbox/mentions/reply
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"}
OpenAPI specification
Was this page helpful?