Endpoint
Last updated
Was this helpful?
Last updated
Was this helpful?
HTTP/HTTPS endpoint hosted on your server for receiving subscription feed events
Minimally the endpoint needs to support POST
requests to be able to received published press releases.
Handle that the request body contains a in JSON (or XML) format.
Respond with 200 if you correctly received the release. This tells our backend that it doesn't have to retry the request.
Host the endpoint (callback) at a "hard to guess" URL.
For example:
Before using the post body, verify the received request using
HMAC - see below (if hub.secret
was setup during subscribe)
Support GET
requests to correctly implement the flow.
Support "extended events", additional methods ( PUT
and DELETE
) to handle updates of the existing feed content. Updated press releases (PUT
) and deleted/hidden press releases (DELETE
).
Support the , which optionally pings all parts of your endpoint to make sure that it is still working. This can be useful in a production setup, since it can help us detect errors early, and notify you.
Using the secret you provided when you setup the subscription, you can verify the received request content by the following algorithm (pseudo code). Note there are some examples of HMAC verification in actual languages available at . Our servers will send the the HMAC signature in the X-Hub-Signature
header as described in the .