Skip to content

Create Comment Sync ​

POSThttps://api.repliz.com/public/listener

Run the automation on a post's old comments, including the ones from before the account was connected, and on comments the platform never sent, for example from a boosted post.

Endpoint Details ​

  • Authentication: Basic Auth (Authorization: Basic Base64(AccessKey:SecretKey)) or Bearer token from Login with Repliz
  • Scope (Bearer only): listener:write
  • Access Tier: Gold+

Request Body ​

FieldTypeRequiredDescription
contentIdstringYesID of the post on the platform, the id from Get Content. A post has one comment sync: if it already has one, the request fails with 409 and the message names its listenerId.
accountIdstringYesID of the connected account that published the post, the _id from Get Account. Instagram, Facebook, Threads, TikTok, YouTube, and LinkedIn accounts only, others fail with 400.

How It Works ​

  1. Old comments. Repliz reads all existing comments, a few at a time. cursor.scanned shows the progress and cursor.isSwept turns true when done.
  2. Missed comments. Then it keeps checking for comments the platform didn't send until the sync is removed or paused. On Instagram, Facebook, and Threads it checks every 2 minutes after it finds one, and at least every 15 minutes for the next 24 hours. Otherwise it checks often while it finds some and up to every 6 hours when quiet (12 on YouTube and LinkedIn).

Rules:

  • Top-level comments only, never replies.
  • Only comments at least 1 minute old on Instagram, Facebook, and Threads, and 5 minutes old on TikTok, YouTube, and LinkedIn, so new comments stay with the webhook.
  • Comments by the account are skipped. Comments already in the inbox are skipped too, except pending ones the automation never ran on: those run it now, or turn resolved when the account already replied.
  • A late webhook for a synced comment is skipped.
  • Not replied yet: saved as pending and runs the post or account automation. Already replied: saved as resolved without automation.
  • Instagram and Facebook allow no DM more than 7 days after a comment, so the DM action is skipped for older ones.
  • Synced comments have source sync in Get Comment and trigger the comment webhook event.

Platform Limits ​

The automation is paced so the account doesn't look like spam and stays within platform quotas. Comments that run the automation go out one at a time, with a random gap, and never in a burst:

PlatformGap between commentsAutomation actionsReading comments
Instagram, Facebook, Threads1 to 3 minutes30 per hour, 200 per day per account120 per hour per account
TikTok2 to 3 minutes20 per hour, 150 per day per account120 per hour per account, 10 s apart
YouTube2 to 3 minutes30 per day for all of Repliz2,000 per day for all of Repliz
LinkedIn2 to 5 minutes10 per hour, 50 per day per account100 per day per account
  • The gap and the limits are shared by every comment sync of the account, so more syncs on one account don't make it faster.
  • Each reply, like, and comment DM counts as one action, and so do the ones the normal automation sends for new comments. While new comments keep the automation busy, the sync waits for its turn, and it never slows the normal automation down.
  • The YouTube limit for all of Repliz counts only the comments of comment syncs, so replies the normal automation sends on YouTube never use it up. They still push the account's next synced comment back.
  • When the platform answers with a rate limit or a spam warning, even on a reply to a new comment, the sync stops for 15 minutes, doubling up to 6 hours.
  • Pausing or removing a sync stops the comments it already lined up, too.

At a limit, or on a platform rate limit, the sync waits and continues by itself, with heldUntil and heldReason (action_limit, read_limit, or rate_limit). Daily limits reset at midnight UTC, and YouTube limits at midnight Pacific Time.

Replies that look human

Identical replies sent over and over look like spam. Use spintax such as {Thanks|Thank you|Appreciate it}, keyword replies, or AI replies so each reply reads a little different.

Plan limit

1 comment sync on Free, 5 on Standard, 20 on Premium, 50 on Gold, paused ones included. Above it, the request fails with 403.

Example Request ​

bash
curl -X POST "https://api.repliz.com/public/listener" \
  -H "Authorization: Basic $(echo -n 'YOUR_ACCESS_KEY:YOUR_SECRET_KEY' | base64)" \
  -H "Content-Type: application/json" \
  -d '{
    "contentId": "18082157540400777",
    "accountId": "680affa5ce12f2f72916f67e"
  }'
javascript
import axios from 'axios';

const response = await axios.post(
  'https://api.repliz.com/public/listener',
  {
    contentId: '18082157540400777',
    accountId: '680affa5ce12f2f72916f67e',
  },
  {
    auth: {
      username: 'YOUR_ACCESS_KEY',
      password: 'YOUR_SECRET_KEY',
    },
  },
);

console.log(response.data);
javascript
const credentials = btoa('YOUR_ACCESS_KEY:YOUR_SECRET_KEY');

const response = await fetch('https://api.repliz.com/public/listener', {
  method: 'POST',
  headers: {
    Authorization: `Basic ${credentials}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    contentId: '18082157540400777',
    accountId: '680affa5ce12f2f72916f67e',
  }),
});

const data = await response.json();
console.log(data);

Response ​

json
{
  "listenerId": "6913a5c2e4b0a1f2c3d4e5f6"
}
json
{
  "code": 400,
  "message": "comment sync is not available for this platform"
}
json
{
  "code": 403,
  "message": "comment sync limit reached for your plan"
}
json
{
  "code": 404,
  "message": "account not found"
}
json
{
  "code": 409,
  "message": "content already has a comment sync (6913a5c2e4b0a1f2c3d4e5f6)"
}
json
{
  "code": 401,
  "message": "unauthorized"
}