Skip to content
Docs

Events and payload

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.

Each event is one POST to your endpoint with a JSON body.

content-typeapplication/json
citedseo-eventstring

The event’s name, the same as event in the body.

citedseo-deliverystring

This delivery’s ID, the same as delivery in the body. It is the same on every try of the same post. See Retries and duplicates.

citedseo-signaturestring

t=<unix seconds>,v1=<signature>. See Verify the signature.

eventstring

article.published, article.updated or article.removed.

deliverystring

This delivery’s ID. Treat it as an opaque string.

dataArticle

The 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, its modifiedAt the time it came down.

POST your endpoint
{
"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.

The types come with the packages:

import type { WebhookEvent, WebhookPost } from '@citedseo/feed';
@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 const
export 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
}