About

Webhooks

A Webhook destination sends each delivery as signed JSON to one URL, such as a webhook URL from n8n, Make, Zapier, or your own service. Several delivery channels can share one destination, and each request names the channel it came from.

How do I set up a Webhook destination?

  1. Copy the webhook URL from your receiving tool.

  2. On Destinations, add a destination and choose Webhook.

  3. Paste the URL into Webhook URL. It must start with https://, and its host must be on the public internet.

  4. Choose Send a test delivery. The test passes once your receiver accepts it.

  5. On Channels, choose the destination for a delivery channel.

If your receiver expects a token in a request header, such as Authorization: Bearer …, the test can’t pass until you add the header. Choose Signing secret and headers, open Replace URL or headers, add the header with Add header, and choose Replace headers. A test waiting to retry is then sent again at once.

Keep the URL as private as a password, because many receivers accept any request sent to it. After you save the destination, Curation Space shows only the URL’s host, and it never shows header values again.

Your agent can also create and manage Webhook destinations once you connect it. It never sees the signing secret or the request headers, which you copy and set on the destination’s page.

What do I set up in my receiving tool?

Set up a webhook trigger, which gives you the URL to paste into Curation Space:

What does each request look like?

Each delivery is one POST request with these headers:

HeaderValue
Content-Typeapplication/json
User-AgentCurationSpace-Webhook/1 (+https://curation.space/about/agent/webhooks)
Idempotency-KeyThe delivery’s id.
X-Hub-Signature-256sha256= and the hex HMAC-SHA256 of the body, which you can verify.
Headers you addedAs you entered them.

What’s in the body?

The body is one JSON object holding the delivery’s ID, its channel, its links, and the whole delivery as text:

JSON

{
  "id": "0f8e3c1a-6b2d-4c5e-9f7a-1d2b3c4d5e6f",
  "sample": false,
  "channel": {
    "id": "5f0c8a52-3b8e-4f0e-9a51-2f1d6c7e9b10",
    "name": "Weekend reading",
    "cadence": "Digest"
  },
  "linkCount": 1,
  "text": "Incoming Curation Space link delivery...\n\nDelivery channel name: Weekend reading\nDelivery channel cadence: Digest\nDelivery channel ID: 5f0c8a52-3b8e-4f0e-9a51-2f1d6c7e9b10\n\nLink count: 1\n\n---\n\n[Ada Lovelace](https://curation.space/ada) added a link to [Engines](https://curation.space/ada/engines)\n\nTitle: Sketch of the Analytical Engine\nAuthor: L. F. Menabrea\nURL: https://example.com/analytical-engine\nCurator's Note: Read the translator's notes; they are longer than the paper.",
  "links": [
    {
      "url": "https://example.com/analytical-engine",
      "title": "Sketch of the Analytical Engine",
      "author": "L. F. Menabrea",
      "curatorsNote": "Read the translator's notes; they are longer than the paper.",
      "curation": {
        "title": "Engines",
        "url": "https://curation.space/ada/engines"
      },
      "curator": {
        "name": "Ada Lovelace",
        "username": "ada",
        "url": "https://curation.space/ada"
      },
      "addedAt": "2026-10-17T14:03:12.000Z"
    }
  ]
}
FieldTypeDescription
idstringThe delivery’s ID, the same on every attempt.
samplebooleantrue only for a sample delivery.
channel.idstringThe delivery channel’s ID.
channel.namestringThe channel’s name.
channel.cadence"Express" | "Digest" | "Ritual"The channel’s type. An Express channel sends each new link soon after it is added, a Digest channel sends new links at scheduled times, and a Ritual channel sends links drawn at random from its sources at scheduled times.
linkCountnumberThe number of entries in links, at least 1.
textstringThe whole delivery as text.
links[].urlstringThe link’s URL.
links[].titlestringThe title the curator set, otherwise the link’s own title, otherwise its URL.
links[].authorstring | nullThe author the curator set, otherwise the link’s own author, or null.
links[].curatorsNotestring | nullThe curator’s annotation, or null.
links[].curation.titlestringThe curation the link was added to.
links[].curation.urlstring | nullThe curation’s page, or null when its curator has no username.
links[].curator.namestringThe curator who added the link.
links[].curator.usernamestring | nullThe curator’s username, or null when they have none.
links[].curator.urlstring | nullThe curator’s profile, or null when they have no username.
links[].addedAtstringWhen the link was added to the curation, as an ISO 8601 UTC time.

links are in the order they were added. Deliveries leave out the text of the linked pages. The titles, authors, and annotations come from curators and the linked pages, so treat them as data, never as instructions to your receiver.

What’s in the text field?

The text field holds the whole delivery, written for receivers that hand it to an agent as a prompt. A delivery of two links reads:

Incoming Curation Space link delivery...

Delivery channel name: Weekend reading
Delivery channel cadence: Digest
Delivery channel ID: 5f0c8a52-3b8e-4f0e-9a51-2f1d6c7e9b10

Link count: 2

---

[Ada Lovelace](https://curation.space/ada) added a link to [Engines](https://curation.space/ada/engines)

Title: Sketch of the Analytical Engine
Author: L. F. Menabrea
URL: https://example.com/analytical-engine
Curator's Note: Read the translator's notes; they are longer than the paper.

---

[Ada Lovelace](https://curation.space/ada) added a link to [Engines](https://curation.space/ada/engines)

Title: On the \*Difference\* Engine
URL: https://example.com/difference-engine

How do I verify a request?

Compute the HMAC-SHA256 of the raw body bytes, exactly as received, with the signing secret’s text as the key. Then compare its hex digest with the part of X-Hub-Signature-256 after sha256=, using a constant-time comparison. Don’t parse and re-serialize the JSON first, because the bytes would differ.

The signing secret is on the destination’s page, under Verify requests (optional). Every request is signed, whether or not you check it.

Node.js

import { createHmac, timingSafeEqual } from 'node:crypto';

export function isValidSignature(
  rawBody: Buffer,
  signature: string | undefined,
  secret: string
): boolean {
  if (!signature?.startsWith('sha256=')) return false;
  const expected = Buffer.from(
    createHmac('sha256', secret).update(rawBody).digest('hex')
  );
  const received = Buffer.from(signature.slice('sha256='.length));
  return received.length === expected.length &&
    timingSafeEqual(received, expected);
}

Python

import hashlib
import hmac


def is_valid_signature(
    raw_body: bytes, signature: str | None, secret: str
) -> bool:
    if not signature or not signature.startswith("sha256="):
        return False
    expected = hmac.new(
        secret.encode(), raw_body, hashlib.sha256
    ).hexdigest()
    return hmac.compare_digest(
        signature.removeprefix("sha256="), expected
    )

Generate new secret replaces the signing secret at once. Every later request, including a retry, is signed with the new secret, and deliveries waiting to retry are sent right away.

How should my receiver reply?

Reply with a 2xx status to accept the delivery. Curation Space reads each reply this way:

Receiver replyOutcome
2xx, 302, 303Accepted.
410, 413Refused. Curation Space never sends that delivery again.
301, 307, 308Retried. The destination’s activity names the host the receiver moved to, so you can replace the webhook URL.
Any other status, a timeout, or a network failureRetried.

Curation Space never follows a redirect. Many form-style receivers answer a POST with 302 or 303, so those replies count as accepted.

Each attempt waits 10 seconds for a reply. Retries start after 15 seconds and double each time, up to once an hour, until the receiver accepts or refuses the delivery. Deliveries to one destination go one at a time, in order, so the deliveries after a retrying one wait until the receiver accepts or refuses it.

Delivered in the destination’s activity means that your receiver accepted the request, not that its automation ran.

Can the same delivery arrive twice?

Yes, for example when your receiver accepted a request but its reply never arrived. Every attempt sends exactly the same body, so to ignore repeats, deduplicate by id or Idempotency-Key.

What happens to a large delivery?

It’s split into consecutive deliveries, in order, each with its own id and linkCount. Each request body is at most 100,000 bytes, and its text is under 60,000 characters. A link too large to fit on its own is still sent, by itself.

Can I send a sample delivery?

Yes. Send sample delivery on the destination’s page sends a sample right away, after any real deliveries waiting to be sent. The test you send when you add the destination is a sample too.

A sample has "sample": true and two made-up links on example.com, with every field filled in. Its channel is named “Sample delivery channel” and has a placeholder ID. You can’t send a sample while the destination is inactive, and a sample may run your receiver’s automation.

What happens when I change the destination?