Subscribe to Changes
Overview
Subscribe to employee profile changes by:
Submitting a list of employee IDs
Querying employee profiles using Search filters
Querying employee profiles using the Elasticsearch DSL schema.
Subscriptions for experience changes can be submitted by:
Submitting a list of employee IDs
Querying employee profiles using the Elasticsearch DSL schema
Elasticsearch DSL requests
Use /v2/subscriptions/employee_base/es_dsl and /v2/subscriptions/experience_changes/employee_base/es_dsl endpoints to specify a range of profiles you want to see the updates from.
The following filters are not available in the subscription Elasticsearch DSL requests:
createdlast_updated
When creating a new subscription based on Elasticsearch DSL query to the Base Employee endpoints, we strongly advise including the following clause in your query:
"term": { "is_parent": 1 }
This ensures that you get the most out of our new systematic approach to exclude duplicate records, which we can resolve with the same profile.
Endpoint usage
Prepare your request using the following request by adding select filters and your webhook URL to the template:
Change
webhook_urlto yours.Insert your Elasticsearch query in the
"es_dsl_query": {}section.Insert your API Key token instead of
{API Key}.
For example:
Import the cURL to any API-compatible application.
Send the request.
You will start receiving updates via webhooks the next day for profile changes and after two days for experience changes.
You will see a subscription ID as an output for your POST request. Save this ID for later. You can use it to find your subscription through subscription management endpoints. You can retrieve employee data using the employee IDs visible in the webhook text.
Search filters requests
Use endpoint /v2/subscriptions/employee_base/filter to specify a range of profiles you want to see the updates from:
The following filters are not available in the subscription Search filter requests:
created_at_gteandcreated_at_lteupdated_at_gteandupdated_at_lte.
Endpoint usage
Prepare your request using the following request by adding select filters and your webhook URL to the template:
Insert your API Key instead of
{API Key}.Add the selected filters in the
"filters": {}section.Change
webhook_urlto yours.
For example:
Import the prepared cURL request to any API-compatible application.
Send the request.
You will start receiving updates via webhooks the next day.
You will see a subscription ID as an output for your POST request. Save this ID for later. You can use it to find your subscription through subscription management endpoints. You can retrieve employee data using the employee IDs visible in the webhook text.
IDs requests
Use /v2/subscriptions/employee_base/ids and /v2/subscriptions/experience_changes/employee_base/ids endpoints to submit a list of IDs to subscribe to changes in a range of profiles.
Endpoint usage
Prepare your request using the following request by adding select filters and your webhook URL to the template:
Insert your API Key instead of
{API Key}.Change
webhook_urlto yours.Add the list of IDs
Import the edited cURL request to Postman or any other API-compatible application.
Send the request.
You will start receiving updates via webhooks the next day for profile changes and after two days for experience changes.
You will see a subscription ID as an output for your POST request. Save this ID for later. You can use it to find your subscription through subscription management endpoints. You can retrieve employee data using the employee IDs visible in the webhook text.
Following steps
Single profile update
You have received a webhook notification about an update in one employee profile:
To see the exact changes in the profile, you will have to use the profile ID in the following endpoint:
GET
/v2/employee_base/collect/{employee_id}
Multiple profile updates
You have received a webhook notification about updates in several employee profiles:
To identify the changes in these profiles, you need to export the employee IDs in a CSV or TXT file and use them with the following Bulk Collect endpoints:
POST
/v2/data_requests/employee_base/ids
GET
/v2/data_requests/{data_request_id}/files
GET
/v2/data_requests/{data_request_id}/files/{file_name}
Follow the instructions here to successfully collect the employee data (from left to right):
Last updated
Was this helpful?