Skip to main content

How Eduframe delivers webhooks

Every time an event happens that a webhook subscribes to, Eduframe creates a notification for that webhook and delivers it to the webhook URL. This page lists what you can and cannot rely on when receiving those notifications.

Notifications​

  • A notification is created only for webhooks that are active and subscribed to the event at the moment the event happens. Events that happen while a webhook is inactive, or before it subscribes to the event, are never sent later.
  • Every webhook gets its own notification. If two webhooks subscribe to the same event, each receives it, and their deliveries do not affect each other.
  • The payload is captured when the event happens and contains identifiers, not the full record. Use the Admin API to fetch the current state of the record. After a *.deleted event, the record can no longer be fetched.

Delivery​

  • A notification is sent as an HTTP POST request with a JSON body to the webhook URL.
  • At most one notification per webhook is in flight at any time. The next notification for that webhook is only sent once the previous delivery has finished, whether it succeeded or failed.
  • There is no guarantee on the ordering of notifications. A notification for a later event can arrive before the notification for an earlier event, for example while the earlier one waits for a retry.
  • A notification delivery waits up to 10 seconds before it is considered failed.
  • A delivery succeeds only when your endpoint responds with a 2xx status code. Any other status code, including redirects (3xx), counts as a failure. Redirects are not followed.
  • Connection errors, TLS errors and timeouts count as failures, and are recorded with status code 408.
  • The webhook URL must resolve to a public IP address. Eduframe refuses URLs that point to a private network address, both when you save the webhook and when it sends a notification.
  • Use the signature to validate that a webhook comes from Eduframe.

Retries​

  • A failed delivery is retried 5 minutes after the failed attempt, up to three attempts in total: the first delivery plus two retries. The delay is always 5 minutes; there is no exponential backoff.
  • After the third failed attempt, the notification is marked as failed and is not sent again.
  • Every attempt carries the same payload but a new timestamp and signature in the Eduframe-Signature-V1 header. See Authenticate a webhook.
  • Because a delivery that times out or returns a non-2xx status code is retried, your endpoint can receive the same notification more than once, even when it already processed the first one.

Delivery history​

The Admin API lists the notifications of a webhook together with their send attempts, including the status code and response body of each attempt:

Send attempts older than 6 months are deleted.

Recommendations for your endpoint​

  • Respond fast. Return a 2xx status code as soon as you have stored the notification, and process it afterwards. A slow endpoint holds up all other notifications for the same webhook, and a response after 10 seconds is a failure.
  • Make processing idempotent. Handling the same notification twice must not cause problems.
  • Do not rely on the order of notifications. Fetch the current state of the record from the Admin API instead of deriving it from the sequence of events.
  • Reconcile failed notifications. Use the failed notifications endpoint to find notifications that were not delivered, for example after downtime of your endpoint longer than the retry window.