How to use the custom webhook output

In version 0.1.11 of OB2 I introduced the Custom Webhook hit output.
This will send a POST request with application/json Content-Type like this one

{"data":"my data line","type":"SUCCESS","capturedData":"MyCapture = 100","timestamp":1617928277,"configName":"MyConfig","configAuthor":"Ruri","user":"Ruri"}

This is useful if you want to write a custom web api that listens for such requests and stores hits in your own remote storage system (like a database or remote filesystem).

The user field is used to differentiate between people if more than 1 person is using the endpoint. It could also be used as a validation field (e.g. it must be a specific string) to prevent third parties from filling the storage by spamming requests after learning the Url.

Ruri

3 Likes