PlanVortex
  • Product
  • Developers
  • Pricing
  • Log in
  • Get started
Product
PublishMulti-network schedulingAccount connection
IntelligenceAI assistantAnalyticsIn ChatGPTIn Claude
ExploreSee the whole productUse casesComparisonResources
Developers
BuildDeveloper APIAPI documentationOpenAPI (openapi.json)
LibrariesNode libraryPython library
AgentsMCP serverFor AI agents
PricingLog inGet started
Language
Home/Resources/Social media webhooks: get messages, comments and publications on your server
Guides

Social media webhooks: get messages, comments and publications on your server

9 min read·Published on Nov 28, 2026
Also inEspañol
A message, a review and a publication go into PlanVortex and come out as a single signed event to the server, which answers 200

PlanVortex sends your server an event every time something happens in your clients' accounts: a message, a comment, a publication that goes out or fails. It is a signed POST to a URL of yours, the same one for every network. This guide covers which events exist, how to set the URL, how to verify the signature, how to test without waiting for something to happen and what to check when nothing arrives.

PlanVortex is free for two accounts, with the API and the MCP server included.

Start free

What does PlanVortex send, and when?

A POST to your app's webhook URL, with an array of changes in the body. Each change carries a field that says what happened:

[
  {
    "field": "publication_published",
    "id_publication": "6748c2a1f0e4b7a91c3d5e20",
    "id_organization": "6748c2a1f0e4b7a91c3d5e10",
    "id_account": "6748c2a1f0e4b7a91c3d5e11",
    "social_network": "instagram",
    "state": "sended",
    "external_identifier": "17890000000000000",
    "publish_date": "2026-11-28T09:00:04.000Z"
  }
]

Read field and ignore what you do not handle: the list grows with the product, and an unknown field is not an error. The event carries just enough to know what to look at (ids, state, and the whole message or comment when that is what it is about), and the rest is in the API.

If the client has several apps with a URL, all of them receive every event, not only the one that caused it. With two apps, each event arrives twice.

Which events are there, and on which plan?

field When it arrives Plans
new_account An account is connected All
change_state_account An account is disconnected, starts working again or is removed All
publication_published A publication goes out to the network All
publication_failed A publication could not be published All
messages A private message arrives Paid
messaging_postbacks Someone presses a button in one of your messages Paid
messaging_seen The contact sees your messages Paid
messaging_error One of your messages is not delivered Paid
message_echoes The business replies from the WhatsApp app on the phone Paid
comments A comment or a review arrives Paid
integration_error An integration (Drive, a feed, a store) stops working All
ai_plan_generated / ai_plan_failed An AI plan finishes, well or badly All

The publication events are sent for every publication: the ones published on the spot, the scheduled ones when their time comes and the retries. You no longer need to poll a scheduled publication to know whether it went out. In publication_failed, the error field carries the first error with its code and message.

Comments arrive from every network that has comments, but not all at the same speed. Facebook, Instagram, TikTok and Telegram push them to PlanVortex and the event goes out within seconds. YouTube, LinkedIn, X, Discord, Bluesky, Threads and Google Business are read by a periodic process, and the event goes out when that process finds the new comment. Three things never produce an event: your own replies, a comment older than seven days that PlanVortex sees for the first time, and the first read of a Google Business listing or a Discord channel, which brings its whole history. All of that is in the inbox anyway.

How do I set the URL?

In the dashboard, under Apps and API, open the app and type the URL in «Webhook URL». You can also set it through the API, in the webhook_url field of PUT /clients/{id_client}/apps/{id_app}. It has to meet five conditions:

  1. Start with https://. The dashboard flags a mistyped URL as you type (htps://, a single slash, localhost:3000/hook), and the API refuses it with error 535, which gives the reason in data.reason.
  2. Point to an internet address. localhost, a private IP or a name without a domain are refused, because the request leaves our server.
  3. Answer with a 2xx within 10 seconds. The connection is closed after 10 seconds, so answer first and process afterwards, in the background.
  4. Not redirect. A 301 or 302 counts as a failed delivery: save the final URL.
  5. Not carry a username or password, because they would end up in the logs of whoever prints the URL. The signature is how you know an event is ours.

Every delivery carries User-Agent: PlanVortex-Webhooks/1.0, in case you want to spot them in your logs.

How do I verify the signature?

Every event carries the body signed with the app's secret (the client_secret, the same one you request tokens with), twice:

  • x-hub-signature-256: sha256=<hex hmac>. Use this one.
  • x-hub-signature: sha1=<hex hmac>, for compatibility.

The signature is an HMAC of the raw body, exactly as it arrives. If you parse it and serialize it again, the bytes change and the signature never matches, with no other warning. A global express.json() in front of the route is enough to cause it. Compare in constant time.

In Node, with Express:

import crypto from "node:crypto";
import express from "express";

const app = express();

app.post("/webhooks/planvortex", express.raw({ type: "application/json" }), (req, res) => {
  const expected = "sha256=" + crypto
    .createHmac("sha256", process.env.PLANVORTEX_CLIENT_SECRET)
    .update(req.body)
    .digest("hex");
  const received = req.get("x-hub-signature-256") || "";
  const valid = received.length === expected.length
    && crypto.timingSafeEqual(Buffer.from(received), Buffer.from(expected));
  if (!valid) return res.sendStatus(401);

  res.sendStatus(200);                       // answer first
  const changes = JSON.parse(req.body.toString("utf8"));
  queue.push(changes);                       // then process
});

In Python, with Flask:

import hashlib, hmac, json, os
from flask import Flask, abort, request

app = Flask(__name__)

@app.post("/webhooks/planvortex")
def planvortex():
    raw = request.get_data()
    secret = os.environ["PLANVORTEX_CLIENT_SECRET"].encode()
    expected = "sha256=" + hmac.new(secret, raw, hashlib.sha256).hexdigest()
    if not hmac.compare_digest(expected, request.headers.get("x-hub-signature-256", "")):
        abort(401)
    queue.put(json.loads(raw))
    return "", 200

In PHP:

$raw = file_get_contents('php://input');
$expected = 'sha256=' . hash_hmac('sha256', $raw, getenv('PLANVORTEX_CLIENT_SECRET'));
if (!hash_equals($expected, $_SERVER['HTTP_X_HUB_SIGNATURE_256'] ?? '')) {
    http_response_code(401);
    exit;
}
$changes = json_decode($raw, true);
http_response_code(200);

If you use the Node library or the Python one, both come with the check built in.

Rotating the app's secret changes the signature at once. Update it on your server at the same time as in your integration, or you will start rejecting good events.

How do I test without waiting for a real event?

From the dashboard. Under Apps and API, open the app and expand «Test webhook»:

  1. Pick the event. Below it you see the exact body that will be sent.
  2. Press «Send test».
  3. The dashboard shows whether it arrived, the status your server answered, how long it took and the first kilobyte of the response. If it failed, it tells you what to check.

The test is signed with the app's secret, like a real event, and goes only to that app. So you do not mistake it for a real event, it carries "test": true in the change and the header x-planvortex-test: 1. The id_organization is real (if you have several organizations, you pick which one), in case your integration routes by it; the other ids are made up, and a GET with them returns 404.

Events your plan does not really send are marked, and you can test them anyway.

Below it is «Recent deliveries»: real events and tests from the last seven days, with what your server answered or why it could not be reached. The content of the events is not kept, only what was sent and what happened.

To test on your own machine you need a tunnel (ngrok, Cloudflare Tunnel) that publishes your local port on an https URL.

My webhook is not arriving: what do I check?

Send a test and read the result. Each failure points to a different thing:

What the test says What it usually is What to do
404 The path is mistyped Check the part after the domain
401 or 403 Your server rejects the signature Compute it over the raw body, with the current secret
301 or 302 Your server redirects Save the final URL (the dashboard shows it)
No answer within 10 seconds You process before answering Answer 200 and process in the background
The certificate is not valid Expired, self-signed or for another domain Check the full chain with an SSL checker
The domain cannot be found The name is wrong or the DNS does not point there yet Check the name and the DNS record
Could not connect Nothing listens on that port Check that the server is running and reachable from the internet
The URL does not point to the internet localhost or a private IP Use a tunnel with an https URL

If the test arrives but real events do not, look at «Recent deliveries». If they show up there with an error, the problem is how your server handles that particular event (a bigger body, another field). If nothing shows up, nothing has happened that needed an event, or you are waiting for messages or comments on the free plan.

What happens if my server is down?

That event is not sent again, because PlanVortex does not retry. The data is still in the API, which is where to go and get it:

  • Messages and comments are in the API inbox.
  • A publication or an AI plan is read with its GET, which says how it ended.

The practical approach is to read back what was pending when your service starts, and to treat events as idempotent. Meta repeats deliveries, so the same comment can arrive twice: drop repeated comments by commentObj.external_id and messages by messageObj._id.

The full reference of the event, with every field, is in the API documentation.

Skip the app review and the token refreshes

Your users connect through our approved Meta, TikTok and LinkedIn apps, so there is no app review on your side. PlanVortex renews the tokens before they expire. The free plan covers two accounts, includes the API and asks for no card.

Start freeSee the APIRead the docs
See the plans
Frequently asked questions
Does PlanVortex retry a webhook that fails?

No. Each event is sent once, and your server has to answer with a 2xx within 10 seconds. If it does not, that event is not sent again, but the data is not lost: the message and comment inbox, and the GET of each publication or AI plan, are the source of truth. The usual approach is to process events as they arrive and, when your service starts, read back anything that was pending. In the dashboard, each app lists its recent deliveries with what your server answered.

Do messages and comments arrive by webhook on the free plan?

No. Message events (messages, messaging_postbacks, messaging_seen, messaging_error, message_echoes) and comment events (comments) are only sent on an active paid plan. On the free plan you do get the account, publication, integration and AI plan events. The dashboard test can send any of them on any plan, so you can get your integration ready before you upgrade.

How do I test the webhook on my own machine?

With a tunnel such as ngrok or Cloudflare Tunnel, which publishes your local port on a public https address. PlanVortex does not accept localhost, a private IP or a name without a domain, because the request leaves our server, not yours. Save the tunnel URL in the app and use «Test webhook» in the dashboard.

Why doesn't the webhook signature match?

Almost always for one of two reasons. The first is computing it over JSON that was parsed and serialized again: the bytes change and the signature never matches. It has to be computed over the raw request body. The second is using an old secret: once the app's secret is rotated, the signature is computed with the new one. The header to check is x-hub-signature-256, in the format sha256=<hex>.

How long does a YouTube or LinkedIn comment take to arrive?

It depends on the network. Facebook, Instagram, TikTok and Telegram notify PlanVortex right away, so the event arrives within seconds or a few minutes. YouTube, LinkedIn, Discord, Bluesky and Threads are read by a periodic process: each publication every three hours during its first two days, every twelve hours for the rest of its first week and once a day after that, up to a month. A Google Business listing is read every six hours and a Discord channel every five minutes. X is slower because reading replies is billed: once a day during the first week, and only if the organization turns it on. If someone opens that thread earlier in the dashboard or through the API, the event goes out at that moment.

FJ
Francisco José Fernández-Medina López

Software developer and entrepreneur. Builds PlanVortex, the API software companies use to put social publishing inside their own product, and the dashboard brands and agencies use to run their social media without writing code. A parent and a video game enthusiast.

LinkedIn profile
All resources
PlanVortex
FacebookTwitterInstagramLinkedin

Product

  • Overview
  • Use cases
  • Scheduling
  • AI and planner
  • Analytics
  • Account connection
  • Pricing

Developers

  • For developers
  • API documentation
  • Node library
  • Python library
  • Meta token expiry
  • OpenAPI (openapi.json)

AI assistants

  • For AI agents
  • ChatGPT plugin
  • Claude connector
  • MCP server
  • Instagram from ChatGPT
  • Instagram from Claude

Comparisons

  • All comparisons
  • Metricool alternatives
  • Buffer alternatives
  • Hootsuite alternatives
  • Ayrshare alternatives

Company

  • About PlanVortex
  • Contact
  • Resources and blog
  • Affiliate programme
  • Trust and security
  • Data processing agreement (DPA)
  • Privacy
  • Terms
  • Report content

Networks and integrations

  • Facebook
  • Instagram
  • X
  • LinkedIn
  • TikTok
  • WhatsApp
  • YouTube
  • Google Business
  • Bluesky
  • Discord
  • Telegram
  • Threads
  • Slack
  • Pinterest
  • Google Drive
  • RSS and WordPress
  • WooCommerce
Developed by Talia Softworks S.L.
Phone: 640 29 96 58