---
title: "WT AmoCRM library — Events - WebTolk websites development, Joomla Extensions"
description: "Documentation for the WT AmoCRM WebhookEvent: accessors for incoming AmoCRM webhook data and a Joomla event-handler example."
url: "https://web-tolk.ru/en/dev/biblioteki/wt-amo-crm-library/documentation/wt-amocrm-library-events"
date: "2026-06-19T04:33:16+00:00"
language: "en-GB"
---

# WT AmoCRM library — Events

WT Amo CRM library - Documentation

**Category:** [Libraries](https://web-tolk.ru/en/dev/biblioteki)

[Project](https://web-tolk.ru/en/dev/biblioteki/wt-amo-crm-library)[Versions](https://web-tolk.ru/en/dev/biblioteki/wt-amo-crm-library/versions)[Documentation](https://web-tolk.ru/en/dev/biblioteki/wt-amo-crm-library/documentation)[GitHub](https://github.com/WebTolk/WT-Amo-CRM-library-for-Joomla-4)

Documentation for the WT AmoCRM WebhookEvent used to handle incoming AmoCRM webhooks in Joomla.

## WT AmoCRM library - Events

### WebhookEvent

`Webtolk\Amocrm\Event\WebhookEvent` extends `Joomla\CMS\Event\AbstractEvent`.

The event expects `arguments['subject']` to contain an object with a `toArray()` method, for example a `Registry` instance.

#### Methods

- `getData(): array` - the original webhook payload.
- `getAccount(): array` - account data: id, subdomain, link.
- `getContacts(): array` - contacts, if present in the webhook payload.
- `getLeads(): array` - leads, if present in the webhook payload.
- `getTasks(): array` - tasks, if present in the webhook payload.
- `getUnsorted(): array` - unsorted items, if present in the webhook payload.
- `getMessages(): array` - messages, if present in the webhook payload.

#### Example event handler

```
use Webtolk\Amocrm\Event\WebhookEvent;

public function onSomeWebhookEvent(WebhookEvent $event): void
{
    $leads = $event->getLeads();
    $contacts = $event->getContacts();

    // Continue with your business logic.
}
```

## JSON-LD Schema

```json
{
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "@id": "https://web-tolk.ru/#/schema/BreadcrumbList/17",
    "itemListElement": [
        {
            "@type": "ListItem",
            "position": 1,
            "item": {
                "@id": "https://web-tolk.ru/en",
                "name": "Home"
            }
        },
        {
            "@type": "ListItem",
            "position": 2,
            "item": {
                "@id": "https://web-tolk.ru/en/dev",
                "name": "Joomla extensions"
            }
        },
        {
            "@type": "ListItem",
            "position": 3,
            "item": {
                "@id": "/en/dev/biblioteki",
                "name": "Libraries"
            }
        },
        {
            "@type": "ListItem",
            "position": 4,
            "item": {
                "@id": "/en/dev/biblioteki/wt-amo-crm-library",
                "name": "WT Amo CRM library"
            }
        },
        {
            "@type": "ListItem",
            "position": 5,
            "item": {
                "@id": "/en/dev/biblioteki/wt-amo-crm-library/documentation",
                "name": "Documentation"
            }
        },
        {
            "@type": "ListItem",
            "position": 6,
            "item": {
                "name": "WT AmoCRM library — Events"
            }
        }
    ]
}
```

```json
{
    "@context": "https://schema.org",
    "@graph": [
        {
            "@type": "Organization",
            "@id": "https://web-tolk.ru/#/schema/Organization/base",
            "name": "WebTolk",
            "url": "https://web-tolk.ru/",
            "logo": {
                "@type": "ImageObject",
                "@id": "https://web-tolk.ru/#/schema/ImageObject/logo",
                "url": "images/webtolk-1080p.jpg",
                "contentUrl": "images/webtolk-1080p.jpg",
                "width": 1920,
                "height": 1080
            },
            "image": {
                "@id": "https://web-tolk.ru/#/schema/ImageObject/logo"
            },
            "sameAs": [
                "https://github.com/WebTolk",
                "https://github.com/sergeytolkachyov",
                "https://vk.com/web_tolk",
                "https://vk.com/webtolkru",
                "https://tenchat.ru/sergeytolkachyov",
                "https://t.me/sergeytolkachyov",
                "https://t.me/webtolkru"
            ]
        },
        {
            "@type": "WebSite",
            "@id": "https://web-tolk.ru/#/schema/WebSite/base",
            "url": "https://web-tolk.ru/",
            "name": "WebTolk websites development, Joomla Extensions",
            "publisher": {
                "@id": "https://web-tolk.ru/#/schema/Organization/base"
            }
        },
        {
            "@type": "WebPage",
            "@id": "https://web-tolk.ru/#/schema/WebPage/base",
            "url": "https://web-tolk.ru/en/dev/biblioteki/wt-amo-crm-library/documentation/wt-amocrm-library-events",
            "name": "WT AmoCRM library — Events - WebTolk websites development, Joomla Extensions",
            "description": "Documentation for the WT AmoCRM WebhookEvent: accessors for incoming AmoCRM webhook data and a Joomla event-handler example.",
            "isPartOf": {
                "@id": "https://web-tolk.ru/#/schema/WebSite/base"
            },
            "about": {
                "@id": "https://web-tolk.ru/#/schema/TechArticle/base"
            },
            "inLanguage": "en-GB",
            "breadcrumb": {
                "@id": "https://web-tolk.ru/#/schema/BreadcrumbList/17"
            }
        },
        {
            "@type": "TechArticle",
            "headline": "WT AmoCRM library — Events",
            "url": "https://web-tolk.ru/en/dev/biblioteki/wt-amo-crm-library/documentation/wt-amocrm-library-events",
            "description": "Documentation for the WT AmoCRM WebhookEvent used to handle incoming AmoCRM webhooks in Joomla.",
            "mainEntityOfPage": {
                "@type": "WebPage",
                "url": "https://web-tolk.ru/en/dev/biblioteki/wt-amo-crm-library/documentation/wt-amocrm-library-events"
            },
            "keywords": [
                "joomla",
                " amocrm",
                " webhook",
                " events",
                " WebhookEvent",
                " webtolk"
            ]
        }
    ]
}
```
