Skip to content
CZ App Studio
All guides

All guidesAdd-on modules

Webhooks

Send signed event notifications from Open Core HR to your own systems.

Use this page with AI Open in Claude Open in ChatGPT View as Markdown

Use the optional Webhooks module to notify another system when HR or field work changes: an employee joins, leave is approved, a visit is completed or a task is finished. A super admin enables it in Modules and opens Webhooks to configure destinations. It works independently of careers integration and does not require an API client or token. On a hosted service with several workspaces, a workspace sends deliveries only while its plan includes Webhooks.

Add a destination

Add webhook: enter a name (1) and endpoint URL (2), then choose the events (3).
Add webhook: enter a name (1) and endpoint URL (2), then choose the events (3).
  1. Ask the receiving system's administrator for its public HTTPS endpoint.
  2. Add an endpoint with a recognizable name and that URL. URLs containing login credentials or fragments, private network addresses and redirect destinations are not supported.
  3. Select the events the receiver needs, grouped by work area, then save the endpoint. Events from optional modules appear only when those modules are enabled.
  4. Copy the signing secret immediately and configure it securely on the receiving server. It is shown once; it is not an API access token.
  5. Choose Send sample to inspect and deliver an example of a subscribed event, then check delivery history before relying on it.

Core events cover employees, organization structure, attendance, leave, expenses and field work. Enabled add-ons add their supported events, including sales orders, payment collections and tasks. Employee events use names such as employee.created and employee.updated; attendance and leave examples include attendance.checked_in and leave.approved. Inspect Send sample for the exact body of each event.

Events marked Sensitive can carry payroll, loan, disciplinary or other sensitive work-record information. Subscribe only for systems approved to hold that data. Events marked High volume, such as check-ins, can produce many deliveries. Payloads omit passwords, bank details, salary or pay amounts, file contents and links to stored files.

Verify and process deliveries

The receiving system must verify the signature before acting on a message. Give its developer the following contract:

  • X-Webhook-Event identifies the event.
  • X-Webhook-Delivery identifies a delivery; retries keep the same value.
  • The body's id identifies the event and stays the same when an administrator sends it again. Use this event ID to prevent processing the same event twice.
  • X-Webhook-Timestamp is a Unix timestamp. Reject timestamps outside the receiver's accepted clock-skew window.
  • X-Webhook-Signature is sha256= followed by the hexadecimal HMAC-SHA256 of timestamp + "." + exact request body, using the endpoint's signing secret. Compare signatures in constant time; do not re-encode the JSON before checking.

Return a successful HTTP response after accepting the event. Deliveries may arrive more than once or out of order; design the receiver accordingly.

Investigate failures

Open the endpoint's delivery history to check status and attempts. Fix the receiving server's availability, HTTPS certificate or signature configuration, then choose Send again on the failed delivery. The sender does not follow HTTP redirects. After you change an endpoint's URL, deliveries made before the change cannot be sent again.

By default, a retryable failed delivery receives up to three retries, after 1 minute, 5 minutes and 1 hour, for a maximum of four attempts. Blocked destinations and oversized payloads fail without retries. Queue workers and the scheduler must be running; see services setup. Delivery history contains sanitized results, not the receiver's response body.

Pause, rotate or remove

Deactivate an endpoint to stop sending to it. Pending work is cancelled when the endpoint or module is disabled; re-enabling does not replay cancelled events. Changing the destination URL or event subscriptions also cancels pending work. Delete an endpoint when it is no longer needed.

If a signing secret is exposed or lost, rotate it and copy the replacement when shown. Pending deliveries are preserved and their next attempt uses the new secret. Update the receiving system promptly so it can verify them.

Completed, failed and cancelled delivery logs are removed automatically after 30 days by default. Pending deliveries are not removed by this retention task.

Delivery settings

A super administrator can change delivery behaviour in Settings → Webhooks: the request timeout (1–120 seconds), how many times a failed delivery is retried (0–10), and how many days finished delivery logs are kept (1–365).

Inside Open Core HR

Swipe across to explore the screen.

Inside Open Core HR