> For the complete documentation index, see [llms.txt](https://modfin.gitbook.io/mfn-integration-guide/-MbDBLBpI3LuyvwyWLVw/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://modfin.gitbook.io/mfn-integration-guide/-MbDBLBpI3LuyvwyWLVw/api/websub.md).

# WebSub

The v1 API also acts as an extended [WebSub](https://www.w3.org/TR/websub/) hub that can be used for setting up WebSub subscriptions to feed change events. The most typical event is when a new release is published (added to the feed), but there is also optional events that you can subscribe to for when a release is updated or hidden/deleted.

WebSub is a protocol for programmatically setting up webhooks/posthooks from your side. For example our wordpress plugin uses WebSub for setting up its subscription. Optionally we can add posthooks/subscriptions manually.

## Usage overview

* Required: setup a HTTP/HTTPS [endpoint](/mfn-integration-guide/-MbDBLBpI3LuyvwyWLVw/api/websub/endpoint.md) on your server that you would like to get a POST request when a new press release is published
* Alternatively:
  * We can add/setup the subscription endpoint in our system manually if you send us the endpoint/callback URL.
  * Use WebSub to setup the [subscription](/mfn-integration-guide/-MbDBLBpI3LuyvwyWLVw/api/websub/subscribe.md) in our system. This requires that the endpoint handles a WebSub challenge GET request as well.&#x20;
* Optional: If your system can handle extended events (`hub.ext.event`) for when an existing press release in the feed is updated (PUT / DELETE) this should also be implemented in your [endpoint](/mfn-integration-guide/-MbDBLBpI3LuyvwyWLVw/api/websub/endpoint.md).
* Optional: Your endpoint can also optionally implement our [Ping extension](/mfn-integration-guide/-MbDBLBpI3LuyvwyWLVw/api/websub/ping.md) (`hub.ext.ping`) if you would like us to ping your endpoint periodically to make sure that it stills works.&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://modfin.gitbook.io/mfn-integration-guide/-MbDBLBpI3LuyvwyWLVw/api/websub.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
