Feature layer webhook payloads

When you configure webhooks for hosted feature layers, hosted feature layer views, or hosted tables, a payload of information is sent to the webhook receiver when a triggering event occurs. The payload is an HTTPS POST request delivered in a JSON schema.

The table below describes the properties included in payloads for the webhooks that you create on hosted feature layers, hosted feature layer views, or hosted tables. The payloads include information about changes made to the layer or table's source feature service.

PropertyDescription
name

The name of the webhook.

layerId

The ID of the webhook that delivered the payload.

orgId

The ID of the ArcGIS Online organization where the webhook is stored.

serviceName

The name of the feature service that powers the feature layer or table. The name was defined when the web layer was published.

lastUpdatedTime

The timestamp (formatted as milliseconds since epoch) when the event occurred.

changesUrl

The URL to the Extract Changes endpoint for the item's source feature service. You can access this URL to learn more about the specific changes that occurred during the event.

events

The event type that was performed. Values are listed in Feature layer event triggers.

The following example illustrates a sample payload for a webhook that triggers when anyone creates a feature or row (FeaturesCreated), updates a feature or row (FeaturesUpdated), or deletes a feature or row (FeaturesDeleted) from a layer in a hosted feature layer or hosted table:

payload=[
          {
            "name":"webhook11",
            "layerId":0,
            "orgId":"ABCD1EFghIJK2LmN",
            "serviceName":"myservice",
            "lastUpdatedTime":1755719255181,
            "changesUrl":"https%3a%2f%2fservices2.arcgis.com%ABCD1EFghIJK2LmN%2fArcGIS%2frest%2fservices%2fmyservice%2fFeatureServer%2fextractChanges%3fserverGens%3d%5b762039%2c762044%5d%26async%3dtrue%26returnAttachments%3dfalse",
            "events":["FeaturesCreated","FeaturesUpdated","FeaturesDeleted"]
          }
         ]