Events Subscription
The Events API Subscription allows you to subscribe to various types of events from ClearFeed. Whenever an event of the selected type occurs, ClearFeed will send a POST request to the URL you specify in this setting.
Subscribing to Events
Go to the Developer Settings page and find the "Events API Subscription" section.
Enter the URL of your server or application endpoint where you want to receive the events.
Click the "Save" button to save your subscription preferences.
Endpoint Requirements
Before saving the Events API Subscription endpoint, please ensure the following:
The URL must start with
https
.The endpoint should respond with an HTTP status code of
200
to confirm successful receipt of a test ping. Returning anything other than200
will not allow you to save the endpoint.
Receiving Events
When an event occurs, ClearFeed will send a POST request to the specified URL with relevant event data. The payload of the POST request will contain information about the event, allowing you to take appropriate actions on your end.
Event Headers
The following headers are sent with every request:
The X-CF-Timestamp
header indicates the UNIX timestamp at which the event occurred in ClearFeed. The X-CF-Retry-Count
header indicates the number of times ClearFeed tried to deliver the event. The value ranges from 0 to 3.
Supported Events
Validating Events
To validate that events you receive originated from ClearFeed, read Validating Requests from ClearFeed
Last updated