Product Updates

DatoCMS changelog for new features and general improvements
Customize webhooks HTTP body with Mustache templates
July 24th, 2019

Integrating DatoCMS with third-party systems is now a lot easier, as you can now customize the HTTP body of the outgoing HTTP requests.

You can even use Mustache language to make the payload dynamic. As an example, this custom template:

"message": "{{event_type}} event triggered on {{entity_type}}!",
"entity_id": "{{#entity}}{{id}}{{/entity}}"

Will be converted into the following HTTP body:

"message": "update event triggered on item!",
"entity_id": "123213"

You are not limited to send JSON payloads: just make sure that if the payload is not in JSON format you configure the proper Content-Type header.

Read all the details in the updated documentation page.