Tus endpoints reciben eventos firmados cuando pasa algo en tus cuentas conectadas. Reintentos con backoff si tu endpoint falla.
/hookssecret una sola vez (para verificar la firma)./hooks · /hooks/:id/hooks/:id/hooks/:id/testwebhook.test)./hooks/:id/deliveriesCada entrega lleva X-SocialGate-Signature: sha256=<hmac> (HMAC del body con tu secret), más X-SocialGate-Event y X-SocialGate-Delivery.
post.scheduledpost.publishedpost.partialpost.failedpost.platform.failedaccount.connectedaccount.needs_reconnectionlead.receivedmessage.receivedautomation.triggeredwebhook.testaccount.disconnected (existe en el esquema), pero hoy no se dispara desde ningún flujo — no la uses todavía como señal de "el usuario desconectó su cuenta".const crypto = require("crypto"); app.post("/hooks/sc", express.raw({ type: "application/json" }), (req, res) => { const expected = "sha256=" + crypto.createHmac("sha256", WEBHOOK_SECRET).update(req.body).digest("hex"); if (req.headers["x-socialgate-signature"] !== expected) return res.sendStatus(401); // req.headers["x-socialgate-event"] === "message.received", etc. res.json({ ok: true }); });