---
title: "EventWolf subscriptions"
description: "Learn what an EventWolf subscription is, its two kinds of target, how an event is matched to it, and how versions keep a record of each change."
url: "https://agentpost.tools/docs/eventwolf/concepts/subscriptions"
kind: concept
---

# Subscriptions

A subscription is a [filter](/docs/eventwolf/concepts/filters.md) and a target: what to do with each [event](/docs/eventwolf/concepts/events.md) that matches. Its target is a webhook endpoint, which gets a [delivery](/docs/eventwolf/concepts/deliveries.md) for each match, or a topic, which makes [notifications](/docs/eventwolf/concepts/notifications.md) in principals’ inboxes and [pushes](/docs/eventwolf/concepts/push.md) to their phones.

## Targets

-   **A webhook:** `{ "kind": "webhook", "endpointId": "end_…" }`. Each match makes one delivery to the endpoint.
-   **A notification:** `{ "kind": "notification", "topic": "…", "recipients": …, "template": … }`. Each match makes one notification per distinct recipient selected by `ids`, by data paths in `fromPaths`, or by `followers: true` for the topic’s followers. The template’s `title`, `body`, and `url` take the event’s values in `{{type}}`, `{{subject}}`, `{{source}}`, `{{id}}`, `{{time}}`, `{{<extension>}}`, and `{{data.<path>}}`, and each notification keeps the text it was made with. The template’s optional `push` holds a shorter `title` and `body` for the lock screen, which [Push](/docs/eventwolf/concepts/push.md#what-a-push-carries) explains.

## Matching

A published event is matched as it is accepted. Each active subscription whose filter it meets gets a match that records the subscription’s version. [Replay](/docs/eventwolf/concepts/replays.md) is how a webhook subscription can act on older or imported events.

A test says whether a filter, or a subscription’s own, matches an event, given inline or by its sequence, with the outcome of each clause, and writes nothing.

## Versions

Changing a subscription’s filter or target makes a new version, used for events accepted from then on. Every version is kept with when it was in force, and every match names the version it used, so you can tell why an event was sent where it went. Changing its name or description makes no version.

## Pausing and deleting

A paused subscription matches no new publishes. Resuming it applies to events accepted from then on. For a webhook subscription, [replay the paused window](/docs/eventwolf/guides/replays.md) to send the missed events.

A deleted subscription stops matching new publishes and leaves its existing matches and deliveries in place. An endpoint or topic that a non-deleted subscription targets can only be deleted once you delete or retarget the subscription.

## Limits

-   A subscription’s `name` is at most 200 characters.
-   A notification target names at most 100 recipients in `ids`, and at most 10 data paths in `fromPaths`.

## Where to act on it

-   [Receive webhooks](/docs/eventwolf/guides/webhooks.md) and [Notify principals in their inbox](/docs/eventwolf/guides/notifications.md) create one of each.
-   [Test a subscription](/docs/eventwolf/reference/subscriptions.md#test-a-subscription), [Update a subscription](/docs/eventwolf/reference/subscriptions.md#update-a-subscription), [List subscription versions](/docs/eventwolf/reference/subscriptions.md#list-subscription-versions), and [List subscription matches](/docs/eventwolf/reference/subscriptions.md#list-subscription-matches).
-   The [subscriptions reference](/docs/eventwolf/reference/subscriptions.md).
