# About

- [Profile](</about/profile/your-profile>)
- [Curate](</about/curate/curations>)
- [Explore](</about/explore/explore>)
- [Delivery](</about/delivery/delivery-channels>)
- [Agent](</about/agent/your-agent-as-a-curator>)
- [Browser extension](</about/browser-extension/overview>)
- [Import from](</about/import/from-anywhere>)
- [Pro-tips](</about/pro-tips/valuable-curation>)
- [Misc](</about/misc/your-account>)

- [Your agent as a curator](</about/agent/your-agent-as-a-curator>)
  
  A connected agent makes the changes you ask for in your account: it adds and annotates links, starts and arranges curations, follows curators, and sets up delivery.
- [Your agent as an explorer](</about/agent/your-agent-as-an-explorer>)
  
  A connected agent finds a link you saved, searches public curations by topic, and filters or sorts any curation by a condition you state.
- [Connect your agent](</about/agent/connect-your-agent>)
  
  To connect Claude Code, Codex, or another agent that supports MCP to Curation Space, paste one prompt into it or install the Curation Space plugin, then sign in and approve access.
- [Deliver to an agent](</about/agent/deliver-to-an-agent>)
  
  An Agent destination sends each delivery into one agent conversation or automation, which you set up with a message you copy to that agent.
- [Webhooks](</about/agent/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.

## 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](<#what-do-i-set-up-in-my-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](</about/agent/connect-your-agent>). 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:

- In Claude Code, add an API trigger to a routine. The trigger has a URL and a bearer token. Paste the URL, then add two request headers, `Authorization: Bearer <token>` and the `anthropic-beta` header. [Trigger a routine through the API](<https://platform.claude.com/docs/api/claude-code/routines-fire>) lists their current values. The routine receives the delivery’s `text` as context for its run.
- In T3 Code, trigger a scheduled task by webhook. The task’s prompt can include fields from the delivery, such as `{{body.text}}`.
- In n8n, use a Webhook trigger node with the `POST` method. Its production URL receives requests only while the workflow is active. To verify signatures, turn on the node’s Raw Body option.
- In Make, start a scenario with a custom webhook. Send a test or sample delivery while Make is determining the data structure, so later modules can map fields such as `links`.
- In Zapier, use Webhooks by Zapier. Catch Hook gives you fields to map, and Catch Raw Hook keeps the raw body, which you need to verify signatures.

### What does each request look like?

Each delivery is one `POST` request with these headers:

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `User-Agent` | `CurationSpace-Webhook/1 (+https://curation.space/about/agent/webhooks)` |
| `Idempotency-Key` | The delivery’s `id`. |
| `X-Hub-Signature-256` | `sha256=` and the hex HMAC-SHA256 of the body, which you can [verify](<#how-do-i-verify-a-request>). |
| Headers you added | As 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"
    }
  ]
}
```

| Field | Type | Description |
| --- | --- | --- |
| `id` | string | The delivery’s ID, the same on every attempt. |
| `sample` | boolean | `true` only for a [sample delivery](<#can-i-send-a-sample-delivery>). |
| `channel.id` | string | The delivery channel’s ID. |
| `channel.name` | string | The 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. |
| `linkCount` | number | The number of entries in `links`, at least 1. |
| `text` | string | The whole delivery as [text](<#whats-in-the-text-field>). |
| `links[].url` | string | The link’s URL. |
| `links[].title` | string | The title the curator set, otherwise the link’s own title, otherwise its URL. |
| `links[].author` | string \| null | The author the curator set, otherwise the link’s own author, or `null`. |
| `links[].curatorsNote` | string \| null | The curator’s annotation, or `null`. |
| `links[].curation.title` | string | The curation the link was added to. |
| `links[].curation.url` | string \| null | The curation’s page, or `null` when its curator has no username. |
| `links[].curator.name` | string | The curator who added the link. |
| `links[].curator.username` | string \| null | The curator’s username, or `null` when they have none. |
| `links[].curator.url` | string \| null | The curator’s profile, or `null` when they have no username. |
| `links[].addedAt` | string | When 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
```

- A link without an author has no `Author` line, and a link without an annotation has no `Curator's Note` line.
- A `---` line separates the entries. The text holds no dates.
- Each name and title stays on one line, and a backslash escapes its Markdown characters. A curator or curation without a page appears as plain text, without a link.
- The annotation appears as written, including any line breaks.

### 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 reply | Outcome |
| --- | --- |
| `2xx`, `302`, `303` | Accepted. |
| `410`, `413` | Refused. Curation Space never sends that delivery again. |
| `301`, `307`, `308` | Retried. 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 failure | Retried. |

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?

- When you deactivate the destination, its channels keep making deliveries, and none of them are sent. **Deliveries** and the destination’s activity show them as withheld, along with any deliveries the receiver hadn’t accepted. Activating the destination again sends only the deliveries made afterward.
- When you replace the URL or headers, the destination keeps its signing secret and its channels. Deliveries the receiver hasn’t accepted, including those waiting to retry, are sent again at once.
- When you move a channel to another Webhook or Agent destination, the deliveries its receiver hasn’t accepted move with it, split where one is too large for a webhook request. Moving a channel to an email, SMS, or voice destination cancels them, and only links added afterward are sent.
- When you delete the destination, its activity is deleted, along with the deliveries the receiver hasn’t accepted. Its channels send nothing until you choose another destination for them. Deleting a destination can’t be undone.
