How it works
In Settings, under Publishing, choose Webhook and paste an HTTPS URL. When you approve an article, LocalCite sends it to that URL as a JSON POST. Use it to publish to sites we don't connect to directly, such as Wix, Squarespace or Webflow, through Zapier, Make or n8n.
Saving a URL for the first time creates a signing secret that starts with whsec_. It's shown once, so copy it into your automation straight away. If you lose it, reset it in Settings. The old secret stops working at once.
Events
article.published: an article was approved. Sent once per approval.test.ping: sent by the Send test payload button in Settings. It has no article.
Payload
html is the article body with headings, lists, links and images, without the title. Put title in your site's title field. Image URLs are absolute, and each image is sized to fit the text column on any theme.
featured_image_urlandfeatured_image_altare the article's first image, ornull. It isn't repeated inhtml, so set it as the post's featured image.seo_titleandmeta_descriptiongo in your SEO plugin's fields (Yoast or Rank Math on WordPress), not the post itself.target_questionsare the searches the article answers, a good source for a focus keyphrase.faq_schemais FAQPage structured data for the article's questions. Add it to the page in a<script type="application/ld+json">tag. It'snullwhen the article has no FAQ.- Images stay hosted by LocalCite. Import them into your own media library if you want copies.
{
"id": "7d0c5c1e-1f7a-4a52-9a1f-3c2a4e5b6c7d",
"type": "article.published",
"timestamp": "2026-10-12T15:04:05.000Z",
"data": {
"article": {
"id": "3f0e…",
"title": "Living in Cary, NC: A Local's Guide",
"slug": "living-in-cary-nc-a-locals-guide",
"city": "Cary, NC",
"summary": "Neighborhoods, parks and commutes…",
"seo_title": "Living in Cary, NC (2026 Guide)",
"meta_description": "What it's really like to live in Cary…",
"target_questions": ["Is Cary NC a good place to live?"],
"html": "<p>…</p>\n<h2>Why Cary</h2>\n<p>…</p>",
"featured_image_url": "https://localcite.io/api/images/…",
"featured_image_alt": "Downtown Cary Park on a Saturday",
"faq": [
{ "question": "Is Cary NC a good place to live?", "answer": "…" }
],
"faq_schema": { "@context": "https://schema.org", "@type": "FAQPage", "mainEntity": […] },
"approved_at": "2026-10-12T15:04:03.000Z"
}
}
}Verifying signatures
Every request carries two headers:
X-LocalCite-Timestamp: Unix seconds when the request was signed.X-LocalCite-Signature:t=<timestamp>,v1=<hex>, where the hex is the HMAC-SHA256 of<timestamp>.<raw body>using your secret.
Compute the same HMAC over the raw body, compare it in constant time, and reject requests older than five minutes. Reject anything that doesn't match.
import crypto from "node:crypto";
// rawBody: the request body exactly as received, before JSON.parse.
export function verify(secret, rawBody, header, toleranceSeconds = 300) {
const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
const t = Number(parts.t);
if (!t || Math.abs(Date.now() / 1000 - t) > toleranceSeconds) return false;
const expected = crypto.createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex");
const given = Buffer.from(parts.v1 ?? "", "hex");
return given.length === 32 && crypto.timingSafeEqual(given, Buffer.from(expected, "hex"));
}Responses and retries
Answer with any 2xx within 10 seconds. A timeout, a network error, or a 408, 429 or 5xx is retried twice: after 5 seconds, then after 30 seconds. Other 4xx answers and redirects aren't retried, so use your endpoint's final URL.
Retries send the same body with the same id. If your automation could create a post twice, skip ids you've already seen. Each article in Approved shows whether it was delivered, and its Delivery details list every attempt.
Zapier recipe
- Create a Zap with the trigger Webhooks by Zapier, then Catch Raw Hook. Raw keeps the body intact for signature checks.
- Copy the hook URL into LocalCite under Settings, Publishing, Webhook, and save. Copy the signing secret it shows.
- Click Send test payload in LocalCite, then Test trigger in Zapier to load the sample.
- Add a Code by Zapier step that runs the verification above with your secret, the raw body and the
X-LocalCite-Signatureheader, and stops the Zap when it fails. - Add a Filter step that only continues when
typeisarticle.published. - Add your site's action, such as Webflow's Create Live Item or Wix's Create Blog Post. Map
title,html,slug,seo_title,meta_descriptionandfeatured_image_urlto its fields. - WordPress sites can connect directly under Settings, Publishing, WordPress, so they don't need Zapier. On WordPress.com, both that and Zapier's WordPress apps need a paid plan.
- Turn the Zap on. Approve your next article, then open it in Approved to check it was delivered.