For the complete documentation index, see llms.txt. This page is also available as Markdown.

Webhooks

The Webhooks feature allows third-party systems to be notified every time a specified action occurs. Webhooks are currently supported for Devices, Users, Tenants, MO Messages and Event Notifications.

Each data item is sent individually soon after the action occurs on GAP. The item is serialized using JSON and includes an indicator of the item type, the action taken, and the item itself.

Authentication

You can choose either basic authentication or no authentication.

See Configuring Webhooks for information on how to set up a webhook.

Retry

A retry mechanism is in place that will repeat the call several times until success HTTP status code is received.

Payload

A webhook payload consists of ItemType, Action and Item properties.

ItemType specifies the entity type that triggered the webhook. Possible values are Device, User, Tenant, MoMessage and EventNotification.

Action specifies what triggered the webhook. Possible values are Create, Edit, Delete and Trigger.

{
    "ItemType": "Device",
    "Action": "Create",
    "Item": {
    
    }
}

The Item property contains the record that triggered the webhook. This property contains the same JSON as you would expect to receive had a GET request been made to the Web API for the entity type specified in the ItemType property.

For example, if you had just created a device called "Test Device #1", you would receive the following payload:

See the following endpoints for more information on the data included in the Item property:

Event Notifications

Event Notification webhook payloads differ from the response to a GET request on the Event Notifications endpoints.

Note the "Trigger" value of the Action property, indicating that the event notification referenced by the NotificationId property has fired.

An example is shown below:

Last updated