Skip to content
ERPDocs

Setting Up Webhooks

A webhook tells your systems that something happened in ERPDocs, the moment it happens. Instead of asking "is it signed yet?" every few minutes, ERPDocs posts to a URL you control.


Steps

  1. Go to Admin → API & Webhooks, then click Webhooks.
  2. Enter your endpoint URL. It must use HTTPS — plain HTTP is rejected.
  3. Tick the events you want.
  4. Click Create.
  5. Copy the signing secret immediately. It is shown once. If you lose it, rotate it — you do not have to recreate the webhook.

Available events

There are ten SignPack events, and all ten are really delivered. Nothing is listed here that never fires. If your organisation uses ERPDocs Verify, the list also shows Verify and Onboard events (verify.session.*, onboard.run.*, verify.reverification.changed, client.*); they are described in the API reference.

Event Fires when Volume
signpack.sent An envelope goes out for signature — from the API or from the app One per envelope. A 250-row bulk batch produces 250 of these
signpack.completed Every recipient of an envelope has signed One per envelope
signpack.declined A signer declines, marking the envelope as Declined One per envelope (only when a Signer declines)
signpack.recalled The sender recalls an envelope One per envelope
signpack.correction_requested A signer requests corrections One per envelope
signpack.cancelled An envelope is voided via the API One per envelope
recipient.viewed A recipient opens the signing link for the first time One per recipient
recipient.signed A single recipient signs One per recipient (fires before signpack.completed)
email.bounced An outbound email to a recipient bounces One per bounce
bulk_send.completed A bulk batch has finished One per batch

Things worth knowing:

  • bulk_send.completed also fires when a batch finished badly — as partial or failed, not just completed. Your developer must read the status in the payload, not assume the event name means success.
  • For high-volume runs, subscribe to bulk_send.completed only. signpack.sent on a large batch will flood your endpoint with hundreds of deliveries in a few minutes.
  • recipient.signed fires per-signer. For a 5-signer envelope you get 5 recipient.signed deliveries and one signpack.completed. Subscribe to recipient.signed for real-time per-signer tracking, or signpack.completed only if you just need to know when the whole envelope is done.
  • signpack.declined fires only when a Signer declines (not CC or Reviewer).

Most integrations need signpack.completed, signpack.declined, and bulk_send.completed. Add recipient.signed and recipient.viewed for real-time tracking.


Your developer must verify the signature

Every delivery is signed with HMAC-SHA256 using your signing secret, and carries a timestamp.

This matters. Without verification, anyone who learns your webhook URL can post a fake "this agreement is completed" message to your systems. If completion triggers a payment, an account activation or a contract going live, that is a real risk.

The exact verification recipe, with working code, is in the API reference. Send your developer there.

Deliveries that cannot be signed are not sent at all — an unsigned delivery is worse than a missed one.


Retries and auto-disable

Behaviour Detail
Success Any 2xx response
Timeout 10 seconds
Retries Up to 3, at 30 seconds, 2 minutes, then 10 minutes
Not retried A 4xx response other than 429, because retrying an identical body will not help
Auto-disable After 20 consecutive failures

If your endpoint has a temporary problem, return a 5xx or 429 — not a 400. A 400 tells ERPDocs the payload was rejected permanently and it will not try again.

Deliveries are at-least-once, so the same event can arrive twice. Your developer should de-duplicate on the delivery id in the request headers.


When a webhook stops working

  1. Go to Admin → API & Webhooks → Webhooks.
  2. Check the endpoint's last delivery status.
  3. Click Deliveries to see the recent attempts, their response codes and an excerpt of what your endpoint returned.

If it was auto-disabled, fix your endpoint first, then re-enable it from the same page. Re-enabling also resets the failure counter.

Events that fired while the webhook was disabled are not replayed. There is no replay endpoint. If you missed a window, your developer should reconcile by reading the envelopes directly through the API.


Rotating the secret

Click Rotate secret on the webhook. A new secret is shown once — copy it and update your endpoint.

Rotate when:

  • The secret may have been exposed.
  • A webhook was created before signed delivery existed and its deliveries are being skipped as unsignable. Rotating is the only way to make those webhooks deliverable again.

Deliveries signed with the old secret will fail verification at your end once you switch, so plan a short window or have your endpoint accept both secrets briefly.


Next steps