Product Updates

DatoCMS changelog for new features and general improvements
New

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.

Start using DatoCMS today
According to Gartner 89% of companies plan to compete primarily on the basis of customer experience this year. Don't get caught unprepared.
  • No credit card
  • Easy setup
Subscribe to our newsletter! 📥
One update per month. All the latest news and sneak peeks directly in your inbox.
support@datocms.com ©2024 Dato srl, all rights reserved P.IVA 06969620480