Event Subscriptions
Event subscriptions let Plextera push product events to your webhook endpoint. Use them when your integration should react to completed, failed, or rejected processing without polling.
When to use events
A common production pattern is: subscribe to terminal events, process webhook deliveries immediately, and run a periodic polling reconciliation for resources that have not completed after an expected time window.
Available events
Setup
Create an event subscription
Call POST /event-subscriptions with:
endpointUrl- the HTTPS URL Plextera should POST events to.eventTypes- one or more event types to subscribe to.signingSecret- a secret used to sign deliveries.filters- optional filters such as a workflow ID or Document Insights operation.
Event payload model
Every event uses a common envelope:
The data field contains the event-specific payload. See the Event Reference for complete schemas and examples.
Delivery headers
Every webhook delivery includes:
Verifying signatures
Each delivery is signed using the signingSecret you provided when creating the subscription. This confirms the delivery came from Plextera and that the payload was not modified.
Signature format:
Verification steps:
- Extract
tandv1from the header. - Construct the signed payload:
<t>.<raw request body>. - Compute HMAC-SHA256 using your
signingSecret. - Compare the computed signature with
v1using a constant-time comparison. - Optionally reject old timestamps for replay protection.
The signing secret is write-only. Plextera never returns it in API responses. Store it securely and rotate it by updating the subscription with a new signingSecret.
Retry and idempotency
- Any
2xxresponse marks the delivery as successful. - Non-
2xxresponses trigger retries with exponential backoff. - The same
eventIdmay be delivered more than once. - Your webhook handler should be idempotent. Store processed
eventIdvalues or use your own deduplication key. - If a document is reprocessed after a terminal state, a later terminal state can produce a new event.
Related reference
- Event Reference - webhook payload schemas and examples
- Event Subscriptions - create and manage subscriptions