Webhooks are configurable callbacks over HTTP that are sent when an event with a matching name is triggered.
channel
String prefix of the event that may trigger webhooks, defaults towebhooks
requireAuth
Bool wether the webhooks have to be attached to a user, defaults totrue
GET /:service/
Returns all the webhooks configured.
POST /:service/
Expecting a JSON body containing the following properties
uri
the URI the request will be sentevent
the name of the event that should trigger the webhookmethod
(optional) the HTTP verb used.headers
(optional) an object containing the headers that should be sent with the request
DELETE /:service/:webhook_id
Removes a webhook based on its id.
- isAdmin
- paginateCursor
- event authorization (check if the owner of the webhook is authorized to listen to such event)