Documentation
Difficulty level:
API - Hook - POST hook
Create a webhook
POST hook
Used for
Create a webhook. Typical usage for this API is the setup of an external subscription.
The external application can register a webhook in a dynamic way. This function can be used to integrate application platforms like Zapier.
Authentication
Authentication required
Parameters
Parameter | Omschrijving | Verplicht | Locatie | Voorbeeld |
---|---|---|---|---|
target_url | The URL to post to | Yes | Body | https://hooks.zapier.com/hooks/standard/2925541/4be1a53be005409fae79c272360cf7ae/ |
event | A combination of context and event | Yes | Body | booking_created |
Example
Registreren webhook.
POST api/rest/hook/
Request { "target_url": "https://hooks.zapier.com/hooks/standard/2925541/4be1a53be005409fae79c272360cf7ae/", "event": "booking_created" }
Response: { "id": "2" }