Employee Webhooks
Employee Webhooks send alerts when changes occur in key employee profile data fields. Subscribe and automatically receive updates reflecting the latest changes in employee records that matter to you.
Find endpoints and subscription examples in the corresponding topic:
Subscription frequency
Delivery frequency is determined by the specific API data source you are utilizing. Corresponding cadence:
Employee API
Daily
Functionality
Choose the employees you want to track (using an IDs list, search filter query, or Elasticsearch DSL filter query).
Provide a callback URL to receive notifications.
Receive notifications at your URL and retrieve the data using the corresponding APIs collection or Bulk Collect endpoints.
Subscribe by field
By default, Employee Webhooks trigger on any change to a tracked profile and on every profile that starts or stops matching your subscription's query. The tracked_fields feature reduces the number of events: when tracked_fields is set, you receive a changed status only when one of the listed fields is updated. It does not affect started_matching_query or stopped_matching_query, which are sent when a profile starts or stops matching the query, regardless of whether a tracked field changed.
You still define your tracked population using IDs, or Elasticsearch DSL queries. The tracked_fields parameter acts as an additional filter on top of that population, specifying which fields to watch.
Example
You are tracking 500 employees by IDs but only care about full_name changes. By adding "tracked_fields": ["full_name"] to your subscription request, you will only receive a changed event when the full_name field is updated; other field changes don't trigger changed. You'll still receive started_matching_query and stopped_matching_query events for these profiles regardless of which field changed.
Webhook triggers
The following employee profile fields are tracked for changes. When any of these fields are updated, a webhook notification is sent.
Webhook payload
Each webhook notification includes the following fields:
member_id– The ID of the employee profile that was updated.status– The type of change detected (see status values below).changed_fields– An array listing the specific fields that were modified on the profile.
The changed_fields array tells you exactly which parts of the profile were modified. You can use this to decide whether to retrieve the full updated profile or skip the notification based on your use case.
Status values
started_matching_query
Profiles that previously did not match your filters have been updated to meet your criteria. Example: a job title was updated to Project Manager.
stopped_matching_query
Profiles that once matched your filters have been updated and no longer match. Example: a job title changed from Project Manager to Scrum Master.
changed
One or more tracked fields on the profile were updated. The changed_fields array in the payload shows which specific fields were modified. To retrieve the new values, use the Collect or Bulk Collect endpoints.
Last updated
Was this helpful?