Working with amoCRM webhooks in Joomla. Creating webhooks on the amoCRM side.
- Webhook
- This is sending notifications to third-party applications, services, websites, etc. about certain events that have occurred in amoCRM. As a rule, this is an HTTP request to the entry point on your site, where you can already receive the data and decide what to do with it.
Configuring amoCRM webhooks for Joomla
To accept webhooks, you need to enable this feature in the system pluginThe system is WT Amo CRM Library. To do this, go to the sectionSystem - Management - Plugins. Find the plugin in the search and go to its settings. Open the tab "amoCRM Webhooks". Enable the option "Allow incoming amoCRM webhooks?". After that, additional parameters will be available to you.

Webhook token
Incoming webhooks are protected by an additional token, which Joomla verifies with each incoming request. You can create it yourself or it will be created automatically.
If you want to change the token, clear the field and save the plugin parameters twice.
- After the first save, the old token is cleared from the plugin parameters and a new token is generated for substitution into the form.
- The second parameter save actually saves the new token to the database.
After that, the URL with the new token will appear in the Webhook URL field.
Webhook URL
This is the URL entry point on the side of the site where amoCRM will send notifications. This is what you specify on the amoCRM side. Go to the Amo Market section in the left panel. There will be a WEB HOOKSbutton in the upper right corner.

Save the changes. If everything is done correctly, then in the Joomla interface you will see a list of connected webhooks and a list of events.
