Developer Hub - Webhooks
Link: https://support.brilliantdirectories.com/support/solutions/articles/12000083005
Overview
Webhooks are one of a few ways web applications can communicate with each other. It allows to send real-time data from one application to another whenever a given event occurs.
The Webhooks functionality can be used to send data to any URL endpoint. This allows for sending data to intermediaries (Zapier, Pabbly Connect, Wokato, APIFuse, etc), API endpoints on other platforms, or custom endpoints created by the user to receive data.
To learn how to connect a webhook through Zapier see: Connecting Webhook Events With Zapier
For Smartlist Webhooks and how to connect them see: How To Create Smart List Webhooks
Webhooks
To set up a form to send submitted data to a custom Webhook URL, navigate to the Developer Hub >> Webhooks.
Available Webhook Events - Event Name
A "Webhook Event" is the action that triggers data to be sent to a Webhook Link (URL). The following Webhook Events are currently supported.
Actions
The actions column is going to display Edit and Delete options for Custom Webhooks. Default Webhook Events can't be deleted.
Event
A user submitting the following forms will trigger the data submitted in those forms to be sent to the Webhook Link in addition to its normal functionality.

- Member Review Submitted - User submits a review for a member [form=member_review]
- Contact Us Form Submitted - User submits the Contact Us form on the site [form=contact_form]
- Newsletter Signup - User submits the Newsletter Signup form on the site [form=newsletter_modal_signup]
- Lead Submitted - User submits the lead form [form=bootstrap_get_match]
- Paid Plan Signup - Member signs up for a paid Membership Plan through the frontend of the site using an On-Site Payment Gateway [form=whmcs_signup_paid]
- Paid Plan Signup - Member signs up for a paid Membership Plan through the frontend of the site using an Off-Site Payment Gateway [form=whmcs_signup_external]
- Free Plan Signup - Member signs up for a free Membership Plan through the frontend of the site [form=signup_free]
- Members Imported / Added / Updated / Deleted Via Admin - Member is imported via CSV file in the Admin, member is added manually in the Admin, member's data is updated through the Quick Edit form in the Admin, or member is deleted in the Admin
- Post - Standard - Member creates or edits a post of the following types: Videos, Articles, Blog Articles, Jobs, Events, Coupons, Audios, Discussions
- Post - Photo Album Member creates or edits a post of the following types: Photo Albums, Digital Products, Products, Classifieds, Properties
- Sub Account Form Submitted - Member creates a sub-account using the Multi-Member Manager Add-On
- Contact Details Form Submitted - Member submits the Contact Details form in the Member Dashboard [form=member_contact_details] & [form=contact_general_user]
- Additional Details Form Submitted - Member submits the Additional Details form in the Member Dashboard [form=member_listing_details]
- About Me Form Submitted - Member submits the About form in the Member Dashboard [form=about]
- Profile Photos Form Submitted - Member submits the Profile Photo form in the Member Dashboard (uploads or edits their profile photo, logo, or cover photo)
- Member Clicked Email Verification Link - Member clicks on the verification link sent in the "basic-validation" email template, typically after signing up for a free plan (Email variable: %confirm_link%)
- Member Plan Changed - Member upgrades or downgrades their Membership Plan in the Member Dashboard
- Member Plan Cancelled - Member cancels their account from the Member Dashboard
- One-Time Purchase - Member purchases a Lead, Pay Per Post, or Digital Download
- Post Comment Submitted - Member submits a comment on a post
- Smart Lists - Allows sending data added to Smart Lists of different Types from the My Members > Smart Lists & Tags page in the Admin. Available Smart List types: Form Inquiries, Reviews, Leads, Members, and Transactions
- Unsubscribed Form Submitted - User submits the Newsletter Unsubscribe form [form=unsubscribe_email]
- Chat Message Actions - User submits a chat message using the Private Member Chat Add-On
- Member Dashboard Payment - Member pays an invoice manually from the Member Dashboard
- System Invoice Action - System automatically collects a recurring subscription payment during the daily cronjob
- Admin Subscription / Invoice Action - Admin creates a new subscription, modifies an existing subscription, refunds an invoice, or modifies an invoice manually in the Admin area
- Lead Accept / Decline - Member accepts or declines a lead in the Member Dashboard
- + Custom Forms - User submits the designated custom form
Note: Custom versions of the Contact Details + Additional Details + About Forms using a different variable and name are going to appear when creating a custom webhook when clicking on "New Webhook +".
Category
The category column explains what is the form that will send the data to the webhook.
Enable Webhook?
Toggle On - Off to enable or disable the Webhook.
Webhook Link
Enter the full URL of the endpoint the data should be sent to when the corresponding Webhook Event is triggered.
New Webhook
To create a custom webhook using a custom form click on "New Webhook +"
On the Pop Up window Custom Webhook:
- Select Custom Form or Smart List
- Enter a Webhook Nickname
- Enter an Internal Description
Click on "Save Changes". To test the Webhook Event enter a Webhook Link and submit the custom form, if a form was selected, or add a member to a smart list if a Smart List was selected.
For Smartlist Webhooks and how to connect them see: How To Create Smart List Webhooks
Save Webhook Settings
To save changes on the Webhook Events page.
Add "Single Image" & "Multi-Image" Post Types Custom Webhooks
Our webhooks include a Single Image Post Type (Post - Standard) and Multi-image Post Types (Post - Photo Album):
These webhooks will apply to all post types with these characteristics. If needed a custom webhook can now be created for a specific post type.
Click on New Webhook + then select the specific "Feature" form:
Post-PhotoThis new custom webhook will be used for the specific post type, and the rest of the post types will continue to use the default Post-Standard or Post - Photo Album, depending on it's type.
Activity Tracker
Logs of the Webhook actions and the information sent can be seen in the Activity Tracker.
When an individual webhook is triggered, log this action in the Activity Tracker:
When a Smart List webhook is triggered, log the first record sent to the webhook endpoint with a confirmation message that the webhook data was correctly sent.
Multi-Value Fields(Checkboxes, Dropdowns, Radial Buttons)
All Multi-value fields types like Checkboxes, Dropdowns and Radial buttons will send the normal information and additionally, it will send information about the field Option labels from the front end and database variables. These can be identified with labels that have "_stringify" on the webhooks
For example a checkbox field:
When the options are selected:
The information sent to the webbooks:
- Array of the different options selected : "checkbox_label": ["option_1","option_2","option_3"]
- Database Values: "checkbox_label_stringify": "option_1,option_2,option_3"
- Values of Labels in the front end "checkbox_label_values_stringify": "Option 1,Option 2,Option 3"
This information can also be viewed in the Activity Tracker:
Developers: Data Transfer with Webhooks
What happens when a Form Submission Webhook Event is triggered?
When a user submits one of the forms a Webhook is configured for, the data submitted in the form is sent to the Webhook URL via CURL (https://www.php.net/manual/es/book.curl.php) as a POST array.
For example, the default Contact Us form has the following fields:
- Name [yourname]
- Email [inquiry_email]
- Phone Number [phone]
- Message [comments]
A user submits the following information to these fields:
The following $POST array would be sent to the Webhook URL setup for this form.
formname: contact_form
yourname: Jane Smith
inquiry_email: jane@smith.com
phone: 6263962211
comments: I need assistance setting up art galleries.
g-recaptcha-response: 03AGdBq25plMxoJT4Y634dC_nAu_zDQYhtep04LByAG5AFQ2k4_Y0BvhNle9GrSh7UX0snQYQ4VwaQPaT1iHv4Q2qySvUY9w3VRWH7p4sT4DI6dbjndt28b3KpaUYdc3nO5loeBSwf1G5lk0KE90whyRj7_8CwSs1Foif18Ai2MkCYFo6JU_fk6REx9Z_3Tpk2ZTiciYoy_5oyPirmWXaUKYF5NLEcGvFRA_CusrVlFTpuyTnWfiNYnsqoZQb3TQsds5f-p1LgsmTSMDWZCQfnUt2ZEA45uZtz0m5fmC_9RybfIdySPNX2guugQVN27nWu2H9P2hY7ChCAmKM0BSbP8P83n_o4_yb4gRynhQCwFlVzfUiaiLK6fA1jWrfHQkX5NAKmwhVvEfgKwGPgk1yJ2cmULdkcjEQFTuvBOHfxTaJq0dbav4x07vuKmldcp92PLZyQj0Ogl16tr9_XJqqjJ_U7BTyJq6-WyA
HTTPR: https://www.demobootstrap.com/about/contact
DATE: 20211015110636
IP: 201.191.195.131
CONTACT_TYPE: contact_form
Click here to access the Full List of Variables Per Webhook.