Skip to content
EN

Using Webhook

Last updated

This page explains how to set up a Webhook to automatically notify an external service of change events in the CMS.

Webhook is configured from an Integration’s screen. First, create an Integration for the target project (and workspace, if needed) in the Re:Earth CMS management console. See Creating an Integration for the steps.

  1. From My Integrations, click the Integration to open its detail page

  2. Open the Webhook tab

  3. Click the + New Webhook button

    Webhook tab of an Integration's detail page, with no a Webhook yet and the New Webhook button highlighted.
  4. Fill in the following information and click the Save button

    • Name
    • URL — the destination URL. It must be a valid URL that can receive POST requests
    • Secret — the secret you set here is used to sign the Webhook’s requests. By verifying that signature on the receiving side, you can confirm the request came from a legitimate source
    • The events that trigger the Webhook (multiple selection allowed)
    The New Webhook form, showing the Name, Url, and Secret fields and Trigger Event checkboxes for Item and Asset.

Choose the events that trigger the Webhook. Every time a selected event occurs, a POST request is sent to the specified URL. Multiple events can be selected.

EventWhen it fires
CreateWhen a new item is created
UpdateWhen an item is updated
DeleteWhen an item is deleted
PublishWhen an item is published
UnpublishWhen an item is set to unpublished
EventWhen it fires
UploadWhen a new asset is uploaded
DecompressWhen a compressed asset such as a ZIP file is extracted
DeleteWhen an asset is deleted

Once you’ve saved the Webhook, try triggering one of the events you configured. When the event occurs, a notification arrives at the specified URL.