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"
],
"company_size": [
"51-200",
"201-500"
],
"included_locations": [
"105015875"
],
"excluded_locations": [],
"included_industries": [
"4"
],
"excluded_industries": [],
"frequency": "weekly"
}
'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"],
"company_size": ["51-200", "201-500"],
"included_locations": ["105015875"],
"excluded_locations": [],
"included_industries": ["4"],
"excluded_industries": [],
"frequency": "weekly"
}
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'],
company_size: ['51-200', '201-500'],
included_locations: ['105015875'],
excluded_locations: [],
included_industries: ['4'],
excluded_industries: [],
frequency: 'weekly'
})
};
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'
],
'company_size' => [
'51-200',
'201-500'
],
'included_locations' => [
'105015875'
],
'excluded_locations' => [
],
'included_industries' => [
'4'
],
'excluded_industries' => [
],
'frequency' => 'weekly'
]),
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 \"company_size\": [\n \"51-200\",\n \"201-500\"\n ],\n \"included_locations\": [\n \"105015875\"\n ],\n \"excluded_locations\": [],\n \"included_industries\": [\n \"4\"\n ],\n \"excluded_industries\": [],\n \"frequency\": \"weekly\"\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 \"company_size\": [\n \"51-200\",\n \"201-500\"\n ],\n \"included_locations\": [\n \"105015875\"\n ],\n \"excluded_locations\": [],\n \"included_industries\": [\n \"4\"\n ],\n \"excluded_industries\": [],\n \"frequency\": \"weekly\"\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 \"company_size\": [\n \"51-200\",\n \"201-500\"\n ],\n \"included_locations\": [\n \"105015875\"\n ],\n \"excluded_locations\": [],\n \"included_industries\": [\n \"4\"\n ],\n \"excluded_industries\": [],\n \"frequency\": \"weekly\"\n}"
response = http.request(request)
puts response.read_bodyFind new hires
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"
],
"company_size": [
"51-200",
"201-500"
],
"included_locations": [
"105015875"
],
"excluded_locations": [],
"included_industries": [
"4"
],
"excluded_industries": [],
"frequency": "weekly"
}
'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"],
"company_size": ["51-200", "201-500"],
"included_locations": ["105015875"],
"excluded_locations": [],
"included_industries": ["4"],
"excluded_industries": [],
"frequency": "weekly"
}
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'],
company_size: ['51-200', '201-500'],
included_locations: ['105015875'],
excluded_locations: [],
included_industries: ['4'],
excluded_industries: [],
frequency: 'weekly'
})
};
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'
],
'company_size' => [
'51-200',
'201-500'
],
'included_locations' => [
'105015875'
],
'excluded_locations' => [
],
'included_industries' => [
'4'
],
'excluded_industries' => [
],
'frequency' => 'weekly'
]),
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 \"company_size\": [\n \"51-200\",\n \"201-500\"\n ],\n \"included_locations\": [\n \"105015875\"\n ],\n \"excluded_locations\": [],\n \"included_industries\": [\n \"4\"\n ],\n \"excluded_industries\": [],\n \"frequency\": \"weekly\"\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 \"company_size\": [\n \"51-200\",\n \"201-500\"\n ],\n \"included_locations\": [\n \"105015875\"\n ],\n \"excluded_locations\": [],\n \"included_industries\": [\n \"4\"\n ],\n \"excluded_industries\": [],\n \"frequency\": \"weekly\"\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 \"company_size\": [\n \"51-200\",\n \"201-500\"\n ],\n \"included_locations\": [\n \"105015875\"\n ],\n \"excluded_locations\": [],\n \"included_industries\": [\n \"4\"\n ],\n \"excluded_industries\": [],\n \"frequency\": \"weekly\"\n}"
response = http.request(request)
puts response.read_bodyfrequency (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."
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.
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
- 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.Authorizations
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
URL that receives the new hires
"https://your-company.com/webhooks/new_hires"
Job titles the new hires must hold
["VP of Sales", "Head of Sales"]
Job titles to exclude
["Assistant"]
LinkedIn company size ranges: Self-employed, 1-10, 11-50, 51-200, 201-500, 501-1000, 1001-5000, 5001-10000, 10001+. En-dashes are normalized to hyphens
["51-200", "201-500"]
Location IDs to include (see the Location IDs endpoint)
["105015875"]
Location IDs to exclude
[]
LinkedIn industry IDs to include
["4"]
LinkedIn industry IDs to exclude
[]
How often the tracking runs. Case-insensitive
daily, weekly, monthly "weekly"
Response
New hires tracking created
"New hires tracking created successfully. It runs daily."
Was this page helpful?