Events and payload
Events
Section titled “Events”There are three.
| Event | Sent when |
|---|---|
article.published |
An article goes live: the first time, or again after it was taken down. |
article.updated |
An article that is already live changes: an update, new links, a new title, or an undo that ships. |
article.removed |
An article is taken down. Drop the page at its url. |
Each is sent after the feed is rebuilt with the change, so a site that rebuilds from the feed on a post builds what the post says.
Answer 2xx to an event you don’t use, and to one you don’t know: more may be added. The SDKs do this from 0.3.0; earlier versions answer 400 to article.removed, which shows as a failed delivery, so upgrade.
The request
Section titled “The request”Each event is one POST to your endpoint with a JSON body.
Headers
Section titled “Headers”content-typeapplication/jsoncitedseo-eventstringThe event’s name, the same as
eventin the body.citedseo-deliverystringThis delivery’s ID, the same as
deliveryin the body. It is the same on every try of the same post. See Retries and duplicates.citedseo-signaturestringt=<unix seconds>,v1=<signature>. See Verify the signature.
eventstringarticle.published,article.updatedorarticle.removed.deliverystringThis delivery’s ID. Treat it as an opaque string.
dataArticleThe article as it is live now, in the same shape the feed serves. For
article.removed, the article as it was live when it was taken down, itsmodifiedAtthe time it came down.
{ "event": "article.published", "delivery": "5d1c3b0a-8e42-4f6b-9a57-0c2f1e9b7d44:b7a1f3c2-6d58-4e0a-8c39-41f2a9d05e16", "data": { "id": "0b6f6c1e-3f0a-4a59-9d0e-2f8f4c1f7a31", "slug": "how-to-brew-green-tea", "url": "https://example.com/blog/how-to-brew-green-tea", "title": "How to brew green tea", "description": "Brew green tea at 80°C for two minutes. Here is why the temp…", "cover": { "src": "https://example.com/images/green-tea.webp", "alt": "A glass teapot of green tea" }, "author": { "name": "Sam Lee", "url": "https://example.com/authors/sam-lee" }, "publishedAt": "2026-10-09T02:05:00.000Z", "modifiedAt": "2026-10-11T02:05:00.000Z", "html": "<p class=\"citedseo-answer\"><strong>Brew green tea at 80°C for two minutes. Hot…", "markdown": "**Brew green tea at 80°C for two minutes. Hotter water makes…", "structuredData": { "@context": "https://schema.org", "@graph": [ "…" ] } }}The long fields are cut short above. A real post carries the whole article.
TypeScript
Section titled “TypeScript”The types come with the packages:
import type { WebhookEvent, WebhookPost } from '@citedseo/feed';/** * The events a webhook sends: an article goes live (the first time, or again after it was taken * down), changes while live, or is taken down. */export const webhookEvents = ["article.published", "article.updated", "article.removed"] as constexport type WebhookEvent = (typeof webhookEvents)[number]
/** The JSON body of a webhook. */export type WebhookPost = { event: WebhookEvent /** The same on every try of the same post, so you can tell one you already took. */ delivery: string /** * The article as it is live now. For `article.removed`, the article as it was live when it was * taken down, its `modifiedAt` the time it came down: drop the page at its `url`. */ data: FeedArticle}