recomentionDocs

Publish to any site with a signed webhook

Payload, signature and retry contract for receiving recomention articles on your own site, plus Ghost, Webflow and Shopify notes.

Connect Websites and CMS → Signed webhook with your site URL and an HTTPS receiver URL on the same domain. recomention shows a signing secret (whsec_…) once; store it in your receiver.

Request

POST <your receiver> with Content-Type: application/json and these headers:

HeaderValue
X-Recomention-Signaturev1=<hex HMAC-SHA256(secret, "<timestamp>.<raw body>")>
X-Recomention-TimestampUnix seconds when this attempt was signed
X-Recomention-Delivery / Idempotency-KeyStable delivery id, identical on every retry of one publication
X-Recomention-Eventarticle.publish or test
{
  "version": 1,
  "event": "article.publish",
  "deliveryId": "dlv_…",
  "createdAt": "2026-10-18T09:00:00.000Z",
  "projectId": "…",
  "publication": { "jobId": "…", "draftId": "…", "draftVersion": 3 },
  "article": {
    "title": "…", "slug": "…", "html": "<p>…</p>", "excerpt": "…",
    "canonicalUrl": null,
    "sponsoredLinks": ["https://partner.example.com/…"]
  }
}

Sponsored and affiliate links in html keep rel="sponsored nofollow". Keep that attribute when you render the page.

Verify

  1. Reject a request if the timestamp is more than 300 seconds away from your clock.
  2. Compute HMAC-SHA256 over timestamp + "." + raw body bytes, exactly as received, before you parse the JSON.
  3. Compare it in constant time with the hex value after v1=.
import { createHmac, timingSafeEqual } from "node:crypto";
const expected = createHmac("sha256", secret).update(`${timestamp}.${rawBody}`).digest();
const given = Buffer.from(signature.slice(3), "hex");
const ok = given.length === expected.length && timingSafeEqual(given, expected);

Deduplicate and respond

  • Store deliveryId atomically (a unique key or SET NX) before you create the post. If it already exists, return the stored answer and don't create anything.
  • recomention sends one delivery up to 3 times, only after a timeout, a network failure, HTTP 408/409/429 or a 5xx response. Every attempt has the same body and delivery id. Only the timestamp and signature change.
  • Answer 2xx with { "url": "https://<your site>/…", "id": "<your post id>" }. The URL must be HTTPS on the site you connected. If it isn't, the publication shows as unknown and is never sent again.
  • Any other 4xx is a final refusal.
  • test events carry no article. Never publish anything for them. Answer 2xx.

Native CMS notes

  • Ghost: use a custom integration's Admin API key. recomention creates a draft, checks it, then publishes it. Ghost converts HTML to its own editor format. If the sponsored link attributes are lost in that conversion, the draft stays private. JSON-LD isn't sent.
  • Webflow: use a token with CMS read/write and sites read access. You provide the site ID and choose the collection, the rich-text field and the public collection URL. Items are inserted as drafts, then published.
  • Shopify: use your name.myshopify.com domain, an Admin API token with content write access, the numeric blog id and an article author name. recomention uses Admin API version 2026-10. Articles are created hidden and then published.

If a create or publish step gets no clear answer, recomention marks it unknown and never creates the post again.

After a confirmed publication, connected IndexNow is notified automatically. A notification does not guarantee crawling or indexing. Search Console is read-only by default; Enable sitemap submissions asks for separate Google write permission. Select your property again after consent. We resubmit an existing sitemap on the published site; without write permission or a listed sitemap, the receipt says why nothing was sent. Unknown submissions are never resent automatically.

Save a webhook receiver first, store the one-time signing secret in it, then use Send test event. Publishing stays disabled until that test passes. Preview/mock connections are explicitly simulated and send nothing. Reconnect on the live site before publishing.

On this page