Employee API
...
Endpoints
Bulk Collect

POST Requests

24min

Overview

Bulk Collect features three POST endpoints, making collecting employee data records in bulk easier.

Before you proceed with your Bulk Collect requests, test them in the Employee API first to avoid any unexpected costs.

This step is important because these requests can potentially be quite expensive.

By doing this, you can see how many records your query will return and understand the credits the Bulk Collect query will require.

Choose the POST request that fits you the best

Search POST requests

Use the endpoint /v1/professional_network/employee/bulk_collect/filter to request employee data in bulk using search filters:

Search endpoint filters


Endpoint usage

  • Prepare your request using the template below: - Input required filters in the "filters": {} section - Input your webhook URL instead of {optional_webhook_url} - Input the required number of records instead of {optional_integer} by limit parameter:
Request body template


Keep in mind that parameters webhook_url and limit are optional.

Example request

  • Insert your Employee API token instead of {JWT}.
  • Import the prepared cURL request to any API-compatible application.
  • Send the request.
  • Retrieve the request ID from the response body:
Request ID


Use the request ID in the /v1/bulk_collect/{data_request_id}/files and /v1/bulk_collect/{data_request_id}/files/{file_name} endpoints to retrieve the employee profile data.



Elasticsearch POST requests

Use the endpoint /v1/professional_network/employee/bulk_collect/es_dsl to request employee data in bulk using our Elasticsearch DSL schema:

Elasticsearch schema


Endpoint usage

  • Prepare your request using the template below: - Input required ES DSL filters in the "es_dsl_query": {} section - Input your webhook URL instead of {optional_webhook_url} - Input the required number of records instead of {optional_integer} by limit parameter:
Request body template


Keep in mind that parameters webhook_url and limit are optional.

All company information mentioned within this context is entirely fictional and is solely intended for illustrative purposes.

Example request

  • Insert your Employee API token instead of {JWT}.
  • Import the cURL to any API-compatible application.
  • Send the request.
  • Retrieve the request ID from the response body:
Request ID


Use the request ID in the /v1/bulk_collect/{data_request_id}/files and /v1/bulk_collect/{data_request_id}/files/{file_name} endpoints to retrieve the employee profile data.



ID POST requests

Use the endpoint /v1/professional_network/employee/bulk_collect/id_file to submit a list of IDs in a CSV or Txt file to request employee data in bulk. Check the example for the ID list formatting:

Endpoint usage

  • Prepare the IDs file in a CSV or Txt format. Make sure the list only contains numeric IDs.

Avoid any additional headings in the file. The request will fail if non-numeric data is present in the file.

  • Paste in your JWT token instead of {JWT} and, optionally, webhook URL in the cURL request template:
cURL request

  • Import the edited cURL request to Postman or any other API-compatible application.

Further instructions are for the POST requests using Postman.

  • Click Body:
Document image

  • Upload the IDs file by clicking the Select Files button in the Value column:
Document image

  • Send the request.
  • Retrieve the request_id from the response body:
Request ID


Use the request ID in the /v1/bulk_collect/{data_request_id}/files and /v1/bulk_collect/{data_request_id}/files/{file_name} endpoints.



Following steps

  1. Make a GET request using v1/bulk_collect/{data_request_id}/files. Retrieve the data file name.
  2. Use /v1/bulk_collect/{data_request_id}/files/{file_name} endpoint to download the JSON data using the request ID and file name.



Updated 28 Nov 2024
Did this page help you?