Webhooks

Delivery and payload format

Understand the common JSON envelope, delivery retries, and duplicate events.

On this page

The webhook request

When a webhook is triggered, Plexus makes an HTTP POST request to the registered webhook URL. All webhook types share a common JSON envelope; the data object depends on the event type.

Shared envelope — event data omitted JSON
{
  "siteId": 123,
  "webhookType": "SENSOR_DATA",
  "webhookUrl": "https://example.com/webhooks/plexus",
  "timestamp": "2025-09-17T13:21:00Z",
  "data": {}
}
Shared payload fields
FieldDescription
siteIdThe site associated with the event.
webhookTypeALERT, STATUS_UPDATE, or SENSOR_DATA.
webhookUrlThe registered callback URL.
timestampThe timestamp included with the event.
dataThe event-specific data described in the payload guides.

Handle retries

If delivery fails, for example because of a network timeout or a non-2xx response, Plexus retries up to three times. Return a 2xx response when your receiver has successfully accepted the event.

Recognise duplicate deliveries

Inspect the X-Plexus-Delivery-Id header. It contains a unique ID for each unique webhook event. Use it to recognise events that your receiver has already handled.

Delivery header format HTTP
X-Plexus-Delivery-Id: <unique event ID>

Event payloads

The data object inside the shared envelope depends on the webhook type. Choose an event guide for its fields and example payload.

Need help with your integration? Contact the Plexus team.