Webhook
A webhook allows to make requests following certain Dato events. It is linked to a Role, which describes what actions can be performed.
Object payload
ID of webhook
"312"
Must be exactly "webhook".
Unique name for the webhook
"Item type creation/update"
The URL to be called
"https://www.example.com/webhook"
Whether the webhook is enabled and sending events or not
Additional headers that will be sent. It returns null if the credentials you are using cannot manage the webhooks of the project.
{ "X-Foo": "Bar" }
The subject of webhook triggering
"item"
HTTP Basic Authorization username
"user"
HTTP Basic Authorization password. It is null when the webhook has no basic auth, or when the credentials you are using cannot manage the webhooks of the project.
"password"
A custom payload
'{ "message": "{{event_type}} event triggered on {{entity_type}}!", "entity_id": "{{#entity}}{{id}}{{/entity}}"] }'
Specifies which API version to use when serializing entities in the webhook payload
"3"
Whether the you want records present in the payload to show blocks expanded or not
If enabled, the system will attempt to retry the call several times when the webhook operation fails due to timeouts or errors.