Skip to main content
POST
/
intents
/
leads
/
find_new_hires
Find new hires
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",
  "persona_id": "persona_abc123",
  "headcount": [
    "C",
    "D",
    "E"
  ],
  "industries": [
    "Software Development"
  ],
  "location_ids": [
    103644278
  ],
  "domain_allow_list": [
    "acme.com"
  ],
  "domain_deny_list": [
    "competitor.com"
  ]
}
'
import requests

url = "https://app.pipecorn.com/api/v2/intents/leads/find_new_hires"

payload = {
    "webhook_url": "https://your-company.com/webhooks/new_hires",
    "persona_id": "persona_abc123",
    "headcount": ["C", "D", "E"],
    "industries": ["Software Development"],
    "location_ids": [103644278],
    "domain_allow_list": ["acme.com"],
    "domain_deny_list": ["competitor.com"]
}
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',
    persona_id: 'persona_abc123',
    headcount: ['C', 'D', 'E'],
    industries: ['Software Development'],
    location_ids: [103644278],
    domain_allow_list: ['acme.com'],
    domain_deny_list: ['competitor.com']
  })
};

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',
    'persona_id' => 'persona_abc123',
    'headcount' => [
        'C',
        'D',
        'E'
    ],
    'industries' => [
        'Software Development'
    ],
    'location_ids' => [
        103644278
    ],
    'domain_allow_list' => [
        'acme.com'
    ],
    'domain_deny_list' => [
        'competitor.com'
    ]
  ]),
  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  \"persona_id\": \"persona_abc123\",\n  \"headcount\": [\n    \"C\",\n    \"D\",\n    \"E\"\n  ],\n  \"industries\": [\n    \"Software Development\"\n  ],\n  \"location_ids\": [\n    103644278\n  ],\n  \"domain_allow_list\": [\n    \"acme.com\"\n  ],\n  \"domain_deny_list\": [\n    \"competitor.com\"\n  ]\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  \"persona_id\": \"persona_abc123\",\n  \"headcount\": [\n    \"C\",\n    \"D\",\n    \"E\"\n  ],\n  \"industries\": [\n    \"Software Development\"\n  ],\n  \"location_ids\": [\n    103644278\n  ],\n  \"domain_allow_list\": [\n    \"acme.com\"\n  ],\n  \"domain_deny_list\": [\n    \"competitor.com\"\n  ]\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  \"persona_id\": \"persona_abc123\",\n  \"headcount\": [\n    \"C\",\n    \"D\",\n    \"E\"\n  ],\n  \"industries\": [\n    \"Software Development\"\n  ],\n  \"location_ids\": [\n    103644278\n  ],\n  \"domain_allow_list\": [\n    \"acme.com\"\n  ],\n  \"domain_deny_list\": [\n    \"competitor.com\"\n  ]\n}"

response = http.request(request)
puts response.read_body
{
  "id": "abc123",
  "status": "pending"
}
{
  "error": 123,
  "message": "<string>"
}
{
  "error": 123,
  "message": "<string>"
}
Track when companies make new hires matching specific ICP. This endpoint creates a weekly tracking task that will notify you through a webhook when matching new hires are found.

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

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

X-API-KEY
string
header
required

Body

application/json
webhook_url
string<uri>
required

URL to receive new hire notifications

Example:

"https://your-company.com/webhooks/new_hires"

persona_id
string

Persona ID to target specific roles

Example:

"persona_abc123"

headcount
enum<string>[]

Company headcount range filters

Available options:
A,
B,
C,
D,
E,
F,
G,
H,
I
Example:
["C", "D", "E"]
industries
string[]

Industry filters

Example:
["Software Development"]
location_ids
integer[]

Location IDs to filter by

Example:
[103644278]
domain_allow_list
string[]

Only include companies from these domains

Example:
["acme.com"]
domain_deny_list
string[]

Exclude companies from these domains

Example:
["competitor.com"]

Response

New hire search results

id
string

Unique identifier for the search

Example:

"abc123"

status
string

Status of the search

Example:

"pending"