curl --request POST \
--url https://app.pipecorn.com/api/v2/personas \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"name": "VP Engineering France",
"job_titles": [
"VP of Engineering",
"CTO"
],
"excluded_job_titles": [
"Assistant"
],
"included_locations": [
"105015875"
],
"company_size": [
"51-200",
"201-500"
]
}
'import requests
url = "https://app.pipecorn.com/api/v2/personas"
payload = {
"name": "VP Engineering France",
"job_titles": ["VP of Engineering", "CTO"],
"excluded_job_titles": ["Assistant"],
"included_locations": ["105015875"],
"company_size": ["51-200", "201-500"]
}
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({
name: 'VP Engineering France',
job_titles: ['VP of Engineering', 'CTO'],
excluded_job_titles: ['Assistant'],
included_locations: ['105015875'],
company_size: ['51-200', '201-500']
})
};
fetch('https://app.pipecorn.com/api/v2/personas', 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/personas",
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([
'name' => 'VP Engineering France',
'job_titles' => [
'VP of Engineering',
'CTO'
],
'excluded_job_titles' => [
'Assistant'
],
'included_locations' => [
'105015875'
],
'company_size' => [
'51-200',
'201-500'
]
]),
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/personas"
payload := strings.NewReader("{\n \"name\": \"VP Engineering France\",\n \"job_titles\": [\n \"VP of Engineering\",\n \"CTO\"\n ],\n \"excluded_job_titles\": [\n \"Assistant\"\n ],\n \"included_locations\": [\n \"105015875\"\n ],\n \"company_size\": [\n \"51-200\",\n \"201-500\"\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/personas")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"VP Engineering France\",\n \"job_titles\": [\n \"VP of Engineering\",\n \"CTO\"\n ],\n \"excluded_job_titles\": [\n \"Assistant\"\n ],\n \"included_locations\": [\n \"105015875\"\n ],\n \"company_size\": [\n \"51-200\",\n \"201-500\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pipecorn.com/api/v2/personas")
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 \"name\": \"VP Engineering France\",\n \"job_titles\": [\n \"VP of Engineering\",\n \"CTO\"\n ],\n \"excluded_job_titles\": [\n \"Assistant\"\n ],\n \"included_locations\": [\n \"105015875\"\n ],\n \"company_size\": [\n \"51-200\",\n \"201-500\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"uuid": "8e1dcba0-f0bb-4071-99fc-f18ba6559ccc",
"name": "VP Engineering France",
"description": "Engineering leaders at French SaaS scale-ups",
"included_job_titles": [
"VP of Engineering",
"CTO"
],
"excluded_job_titles": [
"Assistant"
],
"included_industries": [
"4"
],
"excluded_industries": [],
"included_locations": [
"105015875"
],
"excluded_locations": [],
"company_size": [
"51-200",
"201-500"
],
"sales_nav_url": "https://www.linkedin.com/sales/search/people?query=...",
"created_at": "2025-01-03T17:35:33.073Z",
"updated_at": "2025-01-03T17:35:33.073Z"
}Create Persona
Create a persona from job titles, industries, locations and company sizes
curl --request POST \
--url https://app.pipecorn.com/api/v2/personas \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"name": "VP Engineering France",
"job_titles": [
"VP of Engineering",
"CTO"
],
"excluded_job_titles": [
"Assistant"
],
"included_locations": [
"105015875"
],
"company_size": [
"51-200",
"201-500"
]
}
'import requests
url = "https://app.pipecorn.com/api/v2/personas"
payload = {
"name": "VP Engineering France",
"job_titles": ["VP of Engineering", "CTO"],
"excluded_job_titles": ["Assistant"],
"included_locations": ["105015875"],
"company_size": ["51-200", "201-500"]
}
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({
name: 'VP Engineering France',
job_titles: ['VP of Engineering', 'CTO'],
excluded_job_titles: ['Assistant'],
included_locations: ['105015875'],
company_size: ['51-200', '201-500']
})
};
fetch('https://app.pipecorn.com/api/v2/personas', 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/personas",
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([
'name' => 'VP Engineering France',
'job_titles' => [
'VP of Engineering',
'CTO'
],
'excluded_job_titles' => [
'Assistant'
],
'included_locations' => [
'105015875'
],
'company_size' => [
'51-200',
'201-500'
]
]),
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/personas"
payload := strings.NewReader("{\n \"name\": \"VP Engineering France\",\n \"job_titles\": [\n \"VP of Engineering\",\n \"CTO\"\n ],\n \"excluded_job_titles\": [\n \"Assistant\"\n ],\n \"included_locations\": [\n \"105015875\"\n ],\n \"company_size\": [\n \"51-200\",\n \"201-500\"\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/personas")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"VP Engineering France\",\n \"job_titles\": [\n \"VP of Engineering\",\n \"CTO\"\n ],\n \"excluded_job_titles\": [\n \"Assistant\"\n ],\n \"included_locations\": [\n \"105015875\"\n ],\n \"company_size\": [\n \"51-200\",\n \"201-500\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pipecorn.com/api/v2/personas")
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 \"name\": \"VP Engineering France\",\n \"job_titles\": [\n \"VP of Engineering\",\n \"CTO\"\n ],\n \"excluded_job_titles\": [\n \"Assistant\"\n ],\n \"included_locations\": [\n \"105015875\"\n ],\n \"company_size\": [\n \"51-200\",\n \"201-500\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"uuid": "8e1dcba0-f0bb-4071-99fc-f18ba6559ccc",
"name": "VP Engineering France",
"description": "Engineering leaders at French SaaS scale-ups",
"included_job_titles": [
"VP of Engineering",
"CTO"
],
"excluded_job_titles": [
"Assistant"
],
"included_industries": [
"4"
],
"excluded_industries": [],
"included_locations": [
"105015875"
],
"excluded_locations": [],
"company_size": [
"51-200",
"201-500"
],
"sales_nav_url": "https://www.linkedin.com/sales/search/people?query=...",
"created_at": "2025-01-03T17:35:33.073Z",
"updated_at": "2025-01-03T17:35:33.073Z"
}name and at least one entry in job_titles are required. The Sales Navigator URL returned in sales_nav_url is built from the filters you send.
Set ai_expand_job_titles to true to expand job_titles with AI-generated variations (other seniority levels and languages); the suggested exclusions are added to excluded_job_titles. Get location IDs from the Location IDs endpoint.Authorizations
Your API key
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
Name of the persona
"VP Engineering France"
Job titles to include. At least one is required
["VP of Engineering", "CTO"]
Free-text description of the persona
"Engineering leaders at French SaaS scale-ups"
Job titles to exclude
["Assistant", "Intern"]
When true, the titles in job_titles are expanded with AI into variations (other seniority levels and languages, based on your agent language preferences). Suggested exclusions are added to excluded_job_titles.
LinkedIn industry IDs to include
["4"]
LinkedIn industry IDs to exclude
[]
Location IDs to include (see the Location IDs endpoint)
["105015875"]
Location IDs to exclude
[]
Company headcount ranges. The LinkedIn size codes A–I are also accepted for older integrations, and are returned as sent.
Self-employed, 1-10, 11-50, 51-200, 201-500, 501-1000, 1001-5000, 5001-10000, 10001+ ["51-200", "201-500"]
Response
Persona created
Unique identifier of the persona
"8e1dcba0-f0bb-4071-99fc-f18ba6559ccc"
Name of the persona
"VP Engineering France"
Free-text description
"Engineering leaders at French SaaS scale-ups"
Job titles to include
["VP of Engineering", "CTO"]
Job titles to exclude
["Assistant"]
LinkedIn industry IDs to include
["4"]
LinkedIn industry IDs to exclude
[]
Location IDs to include
["105015875"]
Location IDs to exclude
[]
Company size ranges
["51-200", "201-500"]
Sales Navigator search URL derived from the filters
"https://www.linkedin.com/sales/search/people?query=..."
The creation date of the persona
"2025-01-03T17:35:33.073Z"
The last modified date of the persona
"2025-01-03T17:35:33.073Z"
Was this page helpful?