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"
}| Name | Type | Description |
|---|---|---|
| data | object | The updated data that exists within the content library of a site. |
| source.type | string | The location of the source for the publish event. Possible values are EDITOR. |
| source.account_name | string | If 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"
}| Name | Type | Description |
|---|---|---|
| data | object | The updated data that exists within the content library of a published site. |
| source.type | string | The location of the source for the publish event. Possible values are EDITOR. |
| source.account_name | string | If 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
}| Name | Type | Description |
|---|---|---|
| data | object | The form data the site's client submitted. |
| data.submitted_at | number | When the form was submitted, in Unix epoch milliseconds. |
| data.business_name | string | The name of the business. |
| data.business_type | string | The business category, chosen from a list of schema.org types (usually subtypes of LocalBusiness). |
| data.business_address | string | The display address of the business. |
| data.location_title | string | The title of the location. |
| data.logo_url | string | The URL of the business logo. |
| data.social_accounts | object | The business's social accounts. Keys are social network names and values are the account handle or URL. |
| data.emails | array | The email addresses submitted in the form. |
| data.emails[].label | string | The label of the email address. |
| data.emails[].value | string | The email address. |
| data.phone_numbers | array | The phone numbers submitted in the form. |
| data.phone_numbers[].label | string | The label of the phone number. |
| data.phone_numbers[].value | string | The phone number. |
| data.custom_questions | array | The custom questions in the form and the client's answers. |
| data.custom_questions[].label | string | The question. |
| data.custom_questions[].value | string | The client's answer. |
| data.media_files | array | The media files uploaded in the form. |
| data.media_files[].name | string | The file name. |
| data.media_files[].type | string | The type of file. Possible values are IMAGE or FILE. |
| data.media_files[].url | string | A public CDN URL for the file. The URL doesn't expire. |
| resource_data.site_name | string | The name of the site. |
| resource_data.external_id | string | The external ID associated with the site. |
Updated 15 days ago
Did this page help you?