Employee Data
...
Endpoints
Bulk Collect

POST Requests

23min
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 base 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 post requests docid\ hvajncbflry6xoff 548c request employee data using a search filter query post requests docid\ hvajncbflry6xoff 548c request employee data using an elasticsearch query post requests docid\ hvajncbflry6xoff 548c request employee data by submitting a list of ids search post requests use the endpoint /v2/data requests/employee base/filter to request several employee profiles using our regular search endpoint filters use the search endpoint filters to compile the request search filters docid\ tyh6bkmm2b7p5 y2r29xh 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 curl x 'post' \\ 'https //api coresignal com/cdapi/v2/data requests/employee base/filter' \\ h 'accept application/json' \\ h 'apikey {api key}' \\ h 'content type application/json' \\ d '{ "data format" "json", "webhook url" "{optional webhook url}", "limit" {optional integer}, "filters" {} }' keep in mind that parameters webhook url and limit are optional request example example request curl x 'post' \\ 'https //api coresignal com/cdapi/v2/data requests/employee base/filter' \\ h 'accept application/json' \\ h 'apikey {api key}' \\ h 'content type application/json' \\ d '{ "data format" "json", "webhook url" "{optional webhook url}", "limit" {optional integer}, "filters" { "headline" "cso", "location" "united states", "industry" "information technology" } }' insert your api key instead of {api key} import the prepared curl request to any api compatible application send the request retrieve the request id from the response body request id { "request id" "12345ab 6c78 9def 0g12 hi3jk45678l9" } 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 base employee data elasticsearch post requests use the endpoint / v2/data requests/employee base/es dsl to request employee data in bulk using our elasticsearch dsl schema use the elasticsearch schema to compile the request elasticsearch dsl docid\ yfre8nrflbrr2wcsgsln 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 curl x 'post' \\ 'https //api coresignal com/cdapi/v2/data requests/employee base/es dsl' \\ h 'accept application/json' \\ h 'apikey {api key}' \\ h 'content type application/json' \\ d '{ "data format" "json", "webhook url" "{optional webhook url}", "limit" {optional integer}, "es dsl query" {} }' keep in mind that parameters webhook url and limit are optional request example example request curl x 'post' \\ 'https //api coresignal com/cdapi/v2/data requests/employee base/es dsl' \\ h 'accept application/json' \\ h 'apikey {api key}' \\ h 'content type application/json' \\ d '{ "data format" "json", "limit" {optional integer}, "webhook url" "{optional webhook url}", "es dsl query" { "query" { "bool" { "must" \[ { "match" { "title" { "query" "developer", "operator" "and" } } }, { "match" { "location" { "query" "united states", "operator" "and" } } }, { "nested" { "path" "member experience collection", "query" { "bool" { "must" \[ { "query string" { "query" "company", "default field" "member experience collection company name", "default operator" "and" } } ] } } } } ] } } } }' insert your api key instead of {api key} import the curl to any api compatible application send the request retrieve the request id from the response body request id { "request id" "12345ab 6c78 9def 0g12 hi3jk45678l9" } 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 data id post requests use the endpoint /v2/data requests/employee base/ids 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 https //archbee doc uploads s3 amazonaws com/inaodshbfav9t72jx5jdm/cjdkl0wlyb3kqdqsix8fj idlistexample csv 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 enter your api key instead of {api key} and, optionally, webhook url in the curl request template curl request curl x 'post' \\ 'https //api coresignal com/cdapi/v2/data requests/employee base/ids' \\ h 'accept application/json' \\ h 'apikey {api key}' \\ h 'content type multipart/form data' \\ f 'ids file=@id list example csv;type=text/csv' \\ f 'data format=json' \\ f 'webhook url={optional webhook url}' import the edited curl request to postman or any other api compatible application further instructions are for the post requests using postman click body upload the ids file by clicking the select files button in the value column send the request retrieve the request id from the response body request id { "request id" "433869ec 0a98 4dcd 9b13 db4df58260f5" } 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 make a get request using v1/bulk collect/{data request id}/files retrieve the data file name use /v1/bulk collect/{data request id}/files/{file name} endpoint to download the json data using the request id and file name get requests docid\ sxlwwtymx9hieydap5wso detailed information on how to retrieve the file name get requests docid\ sxlwwtymx9hieydap5wso in depth instructions on how to download the data file