Site Content

A list of available Duda Webhook Events.

Content Library

All webhooks related to content library events are listed below.

Content Library Updated

A notification is sent when a field is updated within Business Info, Business Text, or Business Images. Event type: CONTENT_LIB_CHANGED

{
  "data": {
    "location_data": {
      "phones": [
        {
          "phoneNumber": "555-5555",
          "label": "main"
        }
      ],
      "emails": [],
      "social_accounts": {
        "socialAccounts": {}
      },
      "address_geolocation": "1 Main st, Boulder, CO 12345, United States of America",
      "geo": {
        "longitude": "-105.06089",
        "latitude": "39.90951"
      },
      "logo_url": null,
      "business_hours": [],
      "schema": {
        "type": "AnimalShelter"
      },
      "label": null,
      "address": {
        "streetAddress": "1 Main st",
        "postalCode": "12345",
        "region": "CO",
        "city": "Boulder",
        "country": "USA",
        "countryCode": "USA"
      }
    },
    "additional_locations": [],
    "site_texts": {
      "overview": null,
      "services": null,
      "custom": [],
      "about_us": "<p class=\"rteBlock\">This is the about us section of our shelter.</p>"
    },
    "business_data": {
      "name": "Boulder Animal Shelter",
      "logo_url": null,
      "data_controller": null
    },
    "site_images": [
      {
        "label": "Image-01",
        "url": "https://irp.cdn-website.com/md/dmtmpl/554b1d7e-bb97-403d-98ad-81477c37c93a/dms3rep/multi/class_placeholder.jpg",
        "alt": null
      }
    ]
  },
  "source": {
    "type": "EDITOR",
    "account_name": "[email protected]"
  },
  "resource_data": {
    "site_name": "2dbf8579"
  },
  "event_timestamp": 1686862679132,
  "event_type": "CONTENT_LIB_CHANGED"
}
NameTypeDescription
dataobjectThe updated data that exists within the content library of a site.
source.typestringThe location of the source for the publish event. Possible values are EDITOR.
source.account_namestringIf a publish was triggered through the editor, then this contains the account who initiated the publish.

Content Library Published

A notification is sent when the content library is published and applied to a live site. Event type: CONTENT_LIB_PUBLISHED

{
  "data": {
    "location_data": {
      "phones": [
        {
          "phoneNumber": "555-5555",
          "label": "main"
        }
      ],
      "emails": [],
      "social_accounts": {
        "socialAccounts": {}
      },
      "address_geolocation": "1 Main st, Boulder, CO 12345, United States of America",
      "geo": {
        "longitude": "-105.06089",
        "latitude": "39.90951"
      },
      "logo_url": null,
      "business_hours": [],
      "schema": {
        "type": "AnimalShelter"
      },
      "label": null,
      "address": {
        "streetAddress": "1 Main st",
        "postalCode": "12345",
        "region": "CO",
        "city": "Boulder",
        "country": "USA",
        "countryCode": "USA"
      }
    },
    "additional_locations": [],
    "site_texts": {
      "overview": null,
      "services": null,
      "custom": [],
      "about_us": "<p class=\"rteBlock\">This is the about us section of our shelter.</p>"
    },
    "business_data": {
      "name": "Boulder Animal Shelter",
      "logo_url": null,
      "data_controller": null
    },
    "site_images": [
      {
        "label": "Image-01",
        "url": "https://irp.cdn-website.com/md/dmtmpl/554b1d7e-bb97-403d-98ad-81477c37c93a/dms3rep/multi/class_placeholder.jpg",
        "alt": null
      }
    ]
  },
  "source": {
    "type": "EDITOR",
    "account_name": "[email protected]"
  },
  "resource_data": {
    "site_name": "2dbf8579"
  },
  "event_timestamp": 1686862679132,
  "event_type": "CONTENT_LIB_PUBLISHED"
}
NameTypeDescription
dataobjectThe updated data that exists within the content library of a published site.
source.typestringThe location of the source for the publish event. Possible values are EDITOR.
source.account_namestringIf a publish was triggered through the editor, then this contains the account who initiated the publish.

Content Collection Form Submitted

A notification is sent when a content collection form is submitted to the content library. Event type: CONTENT_COLLECTION_FORM_SUBMITTED

The data object contains what the site's client submitted in the form, so no API call is needed to retrieve it. Fields the client didn't fill in are left out of the payload rather than sent as null.

{
  "data": {
    "submitted_at": 1532467840112,
    "business_name": "Boulder Animal Shelter",
    "business_type": "AnimalShelter",
    "business_address": "1 Main st, Boulder, CO 12345",
    "location_title": "Main Shelter",
    "logo_url": "https://irp.cdn-website.com/2dbf8579/dms3rep/multi/boulder-animal-shelter-logo.png",
    "social_accounts": {
      "facebook": "https://facebook.com/boulderanimalshelter"
    },
    "emails": [
      {
        "label": "Adoptions",
        "value": "[email protected]"
      }
    ],
    "phone_numbers": [
      {
        "label": "Main",
        "value": "555-5555"
      }
    ],
    "custom_questions": [
      {
        "label": "What animals do you currently have available for adoption?",
        "value": "Dogs, cats and rabbits"
      }
    ],
    "media_files": [
      {
        "name": "shelter-front.jpg",
        "type": "IMAGE",
        "url": "https://irp.cdn-website.com/2dbf8579/dms3rep/multi/shelter-front.jpg"
      },
      {
        "name": "adoption-policy.pdf",
        "type": "FILE",
        "url": "https://irp.cdn-website.com/2dbf8579/files/uploaded/adoption-policy.pdf"
      }
    ]
  },
  "resource_data": {
    "site_name": "sw1d3f9f18eb4c82a472402505a731a1",
    "external_id": "my-external-id"
  },
  "event_type": "CONTENT_COLLECTION_FORM_SUBMITTED",
  "event_timestamp": 1532467846492
}
NameTypeDescription
dataobjectThe form data the site's client submitted.
data.submitted_atnumberWhen the form was submitted, in Unix epoch milliseconds.
data.business_namestringThe name of the business.
data.business_typestringThe business category, chosen from a list of schema.org types (usually subtypes of LocalBusiness).
data.business_addressstringThe display address of the business.
data.location_titlestringThe title of the location.
data.logo_urlstringThe URL of the business logo.
data.social_accountsobjectThe business's social accounts. Keys are social network names and values are the account handle or URL.
data.emailsarrayThe email addresses submitted in the form.
data.emails[].labelstringThe label of the email address.
data.emails[].valuestringThe email address.
data.phone_numbersarrayThe phone numbers submitted in the form.
data.phone_numbers[].labelstringThe label of the phone number.
data.phone_numbers[].valuestringThe phone number.
data.custom_questionsarrayThe custom questions in the form and the client's answers.
data.custom_questions[].labelstringThe question.
data.custom_questions[].valuestringThe client's answer.
data.media_filesarrayThe media files uploaded in the form.
data.media_files[].namestringThe file name.
data.media_files[].typestringThe type of file. Possible values are IMAGE or FILE.
data.media_files[].urlstringA public CDN URL for the file. The URL doesn't expire.
resource_data.site_namestringThe name of the site.
resource_data.external_idstringThe external ID associated with the site.

Did this page help you?