App Scopes
The manifest of your App sets which APIs it can access and which webhooks it can register to via the concept of scope. Scopes tell Duda which APIs & Webhooks your App should have access too. When the user installs an application, the scopes are presented to the user to confirm they want to give you access to those scopes.
If you need more details about the exact data sent in a webhook, please refer to the webhooks reference directly.
In your manifest, you set which webhook names you want to access via the webhooks.events
array. When a user installs your App, Duda will automatically register those webhooks to be sent to your App, for that website.
Changing Webhooks
If you change what webhooks you ask for, it will only take affect on future installs of the App. This is because Apps are only registered for webhooks at time of install, not after.
Duda currently must set scopes on your behalf. We will guess what's best for you during the initial setup, but, please let us know exactly which scopes you need. Below are all the scopes & the related webhooks you can set with them.
Scope | APIs | Webhook Names |
---|---|---|
APIs and webhooks which don't require a scope | Get Branding | BRANDING_CHANGED |
GET_ACCOUNT_DETAILS | Get account info | |
GET_WEBSITE | Get site | PUBLISH |
UPDATE_WEBSITE | Update site | DOMAIN_UPDATED |
PUBLISH_SITE | Publish site | PUBLISH |
SITE_WIDE_HTML | ||
GET_PAGES | Get pages | |
UPDATE_PAGES | Update page | |
GET_COMMENTS | NEW_CONVERSATION | |
GET_CONTENT_LIBRARY | Get Content Library Data | CONTENT_LIB_PUBLISHED |
UPDATE_CONTENT_LIBRARY | Update content library data | CONTENT_LIB_PUBLISHED |
GET_INJECT_CONTENT | Get Inject Content Values | |
UPDATE_INJECT_CONTENT | Inject content | |
GET_COLLECTION | Get Site Collections | |
UPDATE_COLLECTIONS | Create Collection | |
REPORTING | Get contact form data | CONTACT_FORM_SENT |
GET_BACKUP | Get site backups | SITE_RESTORED |
MANAGE_BACKUPS | Get site backups | SITE_RESTORED |
UPDATE_SSL | Generate SSL Certificate | |
GET_PRODUCTS | List product | ECOMM_PRODUCT_CREATED |
UPDATE_PRODUCTS | Create product | |
GET_ORDERS | List orders | ECOMM_ORDER_CREATED |
UPDATE_ORDERS | Create order | |
GET_CARTS | List carts | |
GET_DISCOUNTS | List discounts | |
UPDATE_DISCOUNTS | Create discount | |
GET_MEMBER | MEMBER_CREATED | |
GET_PAYMENT_SESSION | Get Payment Session | |
UPDATE_PAYMENT_SESSION | Update Payment Session |
Updated 1 day ago