curl --request POST \
--url https://app.pipecorn.com/api/v2/intents/leads/find_new_hires \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"webhook_url": "https://your-company.com/webhooks/new_hires",
"included_job_titles": [
"VP of Sales",
"Head of Sales"
],
"excluded_job_titles": [
"Assistant"
],
"functions": [
"25"
],
"seniority_levels": [
"300",
"310"
],
"excluded_seniority_levels": [
"100",
"110"
],
"years_in_current_position": [
"3"
],
"years_at_current_company": [
"2",
"3"
],
"keyword": "saas",
"hire_type": "new_hire",
"company_size": [
"51-200",
"201-500"
],
"included_locations": [
"country:fr"
],
"excluded_locations": [],
"included_industries": [
"4"
],
"excluded_industries": [],
"frequency": "weekly",
"live": false,
"skip_first_run": true
}
'import requests
url = "https://app.pipecorn.com/api/v2/intents/leads/find_new_hires"
payload = {
"webhook_url": "https://your-company.com/webhooks/new_hires",
"included_job_titles": ["VP of Sales", "Head of Sales"],
"excluded_job_titles": ["Assistant"],
"functions": ["25"],
"seniority_levels": ["300", "310"],
"excluded_seniority_levels": ["100", "110"],
"years_in_current_position": ["3"],
"years_at_current_company": ["2", "3"],
"keyword": "saas",
"hire_type": "new_hire",
"company_size": ["51-200", "201-500"],
"included_locations": ["country:fr"],
"excluded_locations": [],
"included_industries": ["4"],
"excluded_industries": [],
"frequency": "weekly",
"live": False,
"skip_first_run": True
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
webhook_url: 'https://your-company.com/webhooks/new_hires',
included_job_titles: ['VP of Sales', 'Head of Sales'],
excluded_job_titles: ['Assistant'],
functions: ['25'],
seniority_levels: ['300', '310'],
excluded_seniority_levels: ['100', '110'],
years_in_current_position: ['3'],
years_at_current_company: ['2', '3'],
keyword: 'saas',
hire_type: 'new_hire',
company_size: ['51-200', '201-500'],
included_locations: ['country:fr'],
excluded_locations: [],
included_industries: ['4'],
excluded_industries: [],
frequency: 'weekly',
live: false,
skip_first_run: true
})
};
fetch('https://app.pipecorn.com/api/v2/intents/leads/find_new_hires', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.pipecorn.com/api/v2/intents/leads/find_new_hires",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'webhook_url' => 'https://your-company.com/webhooks/new_hires',
'included_job_titles' => [
'VP of Sales',
'Head of Sales'
],
'excluded_job_titles' => [
'Assistant'
],
'functions' => [
'25'
],
'seniority_levels' => [
'300',
'310'
],
'excluded_seniority_levels' => [
'100',
'110'
],
'years_in_current_position' => [
'3'
],
'years_at_current_company' => [
'2',
'3'
],
'keyword' => 'saas',
'hire_type' => 'new_hire',
'company_size' => [
'51-200',
'201-500'
],
'included_locations' => [
'country:fr'
],
'excluded_locations' => [
],
'included_industries' => [
'4'
],
'excluded_industries' => [
],
'frequency' => 'weekly',
'live' => false,
'skip_first_run' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.pipecorn.com/api/v2/intents/leads/find_new_hires"
payload := strings.NewReader("{\n \"webhook_url\": \"https://your-company.com/webhooks/new_hires\",\n \"included_job_titles\": [\n \"VP of Sales\",\n \"Head of Sales\"\n ],\n \"excluded_job_titles\": [\n \"Assistant\"\n ],\n \"functions\": [\n \"25\"\n ],\n \"seniority_levels\": [\n \"300\",\n \"310\"\n ],\n \"excluded_seniority_levels\": [\n \"100\",\n \"110\"\n ],\n \"years_in_current_position\": [\n \"3\"\n ],\n \"years_at_current_company\": [\n \"2\",\n \"3\"\n ],\n \"keyword\": \"saas\",\n \"hire_type\": \"new_hire\",\n \"company_size\": [\n \"51-200\",\n \"201-500\"\n ],\n \"included_locations\": [\n \"country:fr\"\n ],\n \"excluded_locations\": [],\n \"included_industries\": [\n \"4\"\n ],\n \"excluded_industries\": [],\n \"frequency\": \"weekly\",\n \"live\": false,\n \"skip_first_run\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.pipecorn.com/api/v2/intents/leads/find_new_hires")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"webhook_url\": \"https://your-company.com/webhooks/new_hires\",\n \"included_job_titles\": [\n \"VP of Sales\",\n \"Head of Sales\"\n ],\n \"excluded_job_titles\": [\n \"Assistant\"\n ],\n \"functions\": [\n \"25\"\n ],\n \"seniority_levels\": [\n \"300\",\n \"310\"\n ],\n \"excluded_seniority_levels\": [\n \"100\",\n \"110\"\n ],\n \"years_in_current_position\": [\n \"3\"\n ],\n \"years_at_current_company\": [\n \"2\",\n \"3\"\n ],\n \"keyword\": \"saas\",\n \"hire_type\": \"new_hire\",\n \"company_size\": [\n \"51-200\",\n \"201-500\"\n ],\n \"included_locations\": [\n \"country:fr\"\n ],\n \"excluded_locations\": [],\n \"included_industries\": [\n \"4\"\n ],\n \"excluded_industries\": [],\n \"frequency\": \"weekly\",\n \"live\": false,\n \"skip_first_run\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pipecorn.com/api/v2/intents/leads/find_new_hires")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"webhook_url\": \"https://your-company.com/webhooks/new_hires\",\n \"included_job_titles\": [\n \"VP of Sales\",\n \"Head of Sales\"\n ],\n \"excluded_job_titles\": [\n \"Assistant\"\n ],\n \"functions\": [\n \"25\"\n ],\n \"seniority_levels\": [\n \"300\",\n \"310\"\n ],\n \"excluded_seniority_levels\": [\n \"100\",\n \"110\"\n ],\n \"years_in_current_position\": [\n \"3\"\n ],\n \"years_at_current_company\": [\n \"2\",\n \"3\"\n ],\n \"keyword\": \"saas\",\n \"hire_type\": \"new_hire\",\n \"company_size\": [\n \"51-200\",\n \"201-500\"\n ],\n \"included_locations\": [\n \"country:fr\"\n ],\n \"excluded_locations\": [],\n \"included_industries\": [\n \"4\"\n ],\n \"excluded_industries\": [],\n \"frequency\": \"weekly\",\n \"live\": false,\n \"skip_first_run\": true\n}"
response = http.request(request)
puts response.read_body{
"message": "New hires tracking created successfully. It runs daily.",
"alert_id": "6f1d2c3b-0000-4000-8000-000000000001",
"status_url": "https://app.pipecorn.com/api/v2/alerts/6f1d2c3b-0000-4000-8000-000000000001"
}Find new hires (deprecated)
Creates a tracking task, run daily by default, that sends people who recently started a job matching your filters to your webhook.
curl --request POST \
--url https://app.pipecorn.com/api/v2/intents/leads/find_new_hires \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"webhook_url": "https://your-company.com/webhooks/new_hires",
"included_job_titles": [
"VP of Sales",
"Head of Sales"
],
"excluded_job_titles": [
"Assistant"
],
"functions": [
"25"
],
"seniority_levels": [
"300",
"310"
],
"excluded_seniority_levels": [
"100",
"110"
],
"years_in_current_position": [
"3"
],
"years_at_current_company": [
"2",
"3"
],
"keyword": "saas",
"hire_type": "new_hire",
"company_size": [
"51-200",
"201-500"
],
"included_locations": [
"country:fr"
],
"excluded_locations": [],
"included_industries": [
"4"
],
"excluded_industries": [],
"frequency": "weekly",
"live": false,
"skip_first_run": true
}
'import requests
url = "https://app.pipecorn.com/api/v2/intents/leads/find_new_hires"
payload = {
"webhook_url": "https://your-company.com/webhooks/new_hires",
"included_job_titles": ["VP of Sales", "Head of Sales"],
"excluded_job_titles": ["Assistant"],
"functions": ["25"],
"seniority_levels": ["300", "310"],
"excluded_seniority_levels": ["100", "110"],
"years_in_current_position": ["3"],
"years_at_current_company": ["2", "3"],
"keyword": "saas",
"hire_type": "new_hire",
"company_size": ["51-200", "201-500"],
"included_locations": ["country:fr"],
"excluded_locations": [],
"included_industries": ["4"],
"excluded_industries": [],
"frequency": "weekly",
"live": False,
"skip_first_run": True
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
webhook_url: 'https://your-company.com/webhooks/new_hires',
included_job_titles: ['VP of Sales', 'Head of Sales'],
excluded_job_titles: ['Assistant'],
functions: ['25'],
seniority_levels: ['300', '310'],
excluded_seniority_levels: ['100', '110'],
years_in_current_position: ['3'],
years_at_current_company: ['2', '3'],
keyword: 'saas',
hire_type: 'new_hire',
company_size: ['51-200', '201-500'],
included_locations: ['country:fr'],
excluded_locations: [],
included_industries: ['4'],
excluded_industries: [],
frequency: 'weekly',
live: false,
skip_first_run: true
})
};
fetch('https://app.pipecorn.com/api/v2/intents/leads/find_new_hires', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.pipecorn.com/api/v2/intents/leads/find_new_hires",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'webhook_url' => 'https://your-company.com/webhooks/new_hires',
'included_job_titles' => [
'VP of Sales',
'Head of Sales'
],
'excluded_job_titles' => [
'Assistant'
],
'functions' => [
'25'
],
'seniority_levels' => [
'300',
'310'
],
'excluded_seniority_levels' => [
'100',
'110'
],
'years_in_current_position' => [
'3'
],
'years_at_current_company' => [
'2',
'3'
],
'keyword' => 'saas',
'hire_type' => 'new_hire',
'company_size' => [
'51-200',
'201-500'
],
'included_locations' => [
'country:fr'
],
'excluded_locations' => [
],
'included_industries' => [
'4'
],
'excluded_industries' => [
],
'frequency' => 'weekly',
'live' => false,
'skip_first_run' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.pipecorn.com/api/v2/intents/leads/find_new_hires"
payload := strings.NewReader("{\n \"webhook_url\": \"https://your-company.com/webhooks/new_hires\",\n \"included_job_titles\": [\n \"VP of Sales\",\n \"Head of Sales\"\n ],\n \"excluded_job_titles\": [\n \"Assistant\"\n ],\n \"functions\": [\n \"25\"\n ],\n \"seniority_levels\": [\n \"300\",\n \"310\"\n ],\n \"excluded_seniority_levels\": [\n \"100\",\n \"110\"\n ],\n \"years_in_current_position\": [\n \"3\"\n ],\n \"years_at_current_company\": [\n \"2\",\n \"3\"\n ],\n \"keyword\": \"saas\",\n \"hire_type\": \"new_hire\",\n \"company_size\": [\n \"51-200\",\n \"201-500\"\n ],\n \"included_locations\": [\n \"country:fr\"\n ],\n \"excluded_locations\": [],\n \"included_industries\": [\n \"4\"\n ],\n \"excluded_industries\": [],\n \"frequency\": \"weekly\",\n \"live\": false,\n \"skip_first_run\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.pipecorn.com/api/v2/intents/leads/find_new_hires")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"webhook_url\": \"https://your-company.com/webhooks/new_hires\",\n \"included_job_titles\": [\n \"VP of Sales\",\n \"Head of Sales\"\n ],\n \"excluded_job_titles\": [\n \"Assistant\"\n ],\n \"functions\": [\n \"25\"\n ],\n \"seniority_levels\": [\n \"300\",\n \"310\"\n ],\n \"excluded_seniority_levels\": [\n \"100\",\n \"110\"\n ],\n \"years_in_current_position\": [\n \"3\"\n ],\n \"years_at_current_company\": [\n \"2\",\n \"3\"\n ],\n \"keyword\": \"saas\",\n \"hire_type\": \"new_hire\",\n \"company_size\": [\n \"51-200\",\n \"201-500\"\n ],\n \"included_locations\": [\n \"country:fr\"\n ],\n \"excluded_locations\": [],\n \"included_industries\": [\n \"4\"\n ],\n \"excluded_industries\": [],\n \"frequency\": \"weekly\",\n \"live\": false,\n \"skip_first_run\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pipecorn.com/api/v2/intents/leads/find_new_hires")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"webhook_url\": \"https://your-company.com/webhooks/new_hires\",\n \"included_job_titles\": [\n \"VP of Sales\",\n \"Head of Sales\"\n ],\n \"excluded_job_titles\": [\n \"Assistant\"\n ],\n \"functions\": [\n \"25\"\n ],\n \"seniority_levels\": [\n \"300\",\n \"310\"\n ],\n \"excluded_seniority_levels\": [\n \"100\",\n \"110\"\n ],\n \"years_in_current_position\": [\n \"3\"\n ],\n \"years_at_current_company\": [\n \"2\",\n \"3\"\n ],\n \"keyword\": \"saas\",\n \"hire_type\": \"new_hire\",\n \"company_size\": [\n \"51-200\",\n \"201-500\"\n ],\n \"included_locations\": [\n \"country:fr\"\n ],\n \"excluded_locations\": [],\n \"included_industries\": [\n \"4\"\n ],\n \"excluded_industries\": [],\n \"frequency\": \"weekly\",\n \"live\": false,\n \"skip_first_run\": true\n}"
response = http.request(request)
puts response.read_body{
"message": "New hires tracking created successfully. It runs daily.",
"alert_id": "6f1d2c3b-0000-4000-8000-000000000001",
"status_url": "https://app.pipecorn.com/api/v2/alerts/6f1d2c3b-0000-4000-8000-000000000001"
}POST /alerts and type: new_hires instead: it
takes the same filters and returns the alert. Existing integrations keep working.frequency (daily, weekly or monthly, case-insensitive) to change that. Any other value answers 422 with "frequency must be one of: daily, weekly, monthly". The 201 response confirms the schedule, e.g. "New hires tracking created successfully. It runs weekly." It also returns the alert_id of the alert it created and a status_url: read the alert’s runs with GET /alerts/{id}.
included_job_titles and webhook_url are required. Narrow the search with excluded_job_titles, company_size, included_locations/excluded_locations and included_industries/excluded_industries.
It runs on the Pipecorn database by default, which also takes functions, seniority_levels, excluded_seniority_levels, years_in_current_position, years_at_current_company, keyword and hire_type. Pass live: true to run it on a Sales Navigator saved search instead. It takes the same live and filters as POST /alerts with type: new_hires: see New hires for what each source needs and how it finds new hires.
A database tracking runs right away, on everyone matching who started their role in the last 90 days. Send skip_first_run: true to only receive the people who are new since it was created.
Use Cases
- Monitor when competitors hire for specific roles
- Track hiring trends in your target market
- Identify companies expanding specific departments
- Get notified about potential customer expansion signals
Important Notes
- With
live: true, the tracking runs as a LinkedIn Sales Navigator saved search on your connected account. An account can hold at most 50 saved searches. - Each tracking task counts as one alert against your plan’s alert limit.
Location IDs Reference
Location IDs used in this endpoint can be retrieved using the Location Ids endpoint. Simply provide a location name (e.g., “San Francisco”) and the API will return all matching locations with their IDs. Use"source": "database" by default, and "source": "live" with live: true.Headers
A unique value you generate per operation, such as a UUID. Retrying with the same key and the same body returns the stored response instead of running the request again, so a retry after a timeout never charges twice. Successful responses are kept for 24 hours; a failed request is not stored and can be retried with the same key.
255"4f1c2e9a-8a7d-4c1b-9f63-2d6e0b5a7c11"
Body
live: false only. LinkedIn function (department) IDs (FUNCTION). Multiple IDs are combined with OR logic.
ID → value: 1 Accounting; 2 Administrative; 3 Arts and Design; 4 Business Development; 5 Community and Social Services; 6 Consulting; 7 Education; 8 Engineering; 9 Entrepreneurship; 10 Finance; 11 Healthcare Services; 12 Human Resources; 13 Information Technology; 14 Legal; 15 Marketing; 16 Media and Communication; 17 Military and Protective Services; 18 Operations; 19 Product Management; 20 Program and Project Management; 21 Purchasing; 22 Quality Assurance; 23 Real Estate; 24 Research; 25 Sales; 26 Customer Success and Support.
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ["25"]
live: false only. LinkedIn seniority level IDs (SENIORITY_LEVEL).
ID → value: 100 In Training; 110 Entry Level; 120 Senior; 130 Strategic; 200 Entry Level Manager; 210 Experienced Manager; 220 Director; 300 Vice President; 310 CXO; 320 Owner / Partner.
100, 110, 120, 130, 200, 210, 220, 300, 310, 320 ["300", "310"]
false (default) runs the alert on the Pipecorn people database: no LinkedIn connection needed, and locations are Pipecorn database location IDs (POST /locations with "source": "database"). true runs it on a Sales Navigator saved search instead: it needs a connected LinkedIn account with Sales Navigator, counts against its 50 saved searches, and locations are Sales Navigator location IDs ("source": "live"). functions, seniority_levels, excluded_seniority_levels, years_in_current_position, years_at_current_company, keyword and hire_type only work with live: false: with live: true they return 422. A non-boolean value returns 422.
false
When true, the tracking starts from now: it does not run right away, and its first run only brings the people who are new since it was created. When false, a database tracking runs right away on everyone matching who started their role in the last 90 days.
true
Response
New hires tracking created
Was this page helpful?