curl --request POST \
--url https://api.stardex.ai/v1/persons/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"offset": 0,
"limit": 100,
"sort_by": "created_at",
"sort_order": "desc",
"email": "jsmith@example.com",
"name": "<string>",
"phone": "<string>",
"linkedin_url": "<string>",
"vector_search": "<string>",
"include": [],
"keywords": [
"<string>"
],
"job_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"job_ids_included": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"job_ids_excluded": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"filter_out_if_not_in_job": true,
"exclude_archived_jobs": true,
"job_titles_included": [
"<string>"
],
"job_titles_excluded": [
"<string>"
],
"departments_included": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"departments_excluded": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"current_company_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"current_company_ids_excluded": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"past_company_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"past_company_ids_excluded": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"pipeline_stage_ids_included": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"pipeline_stage_ids_excluded": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"pipeline_stage_history_included": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"pipeline_stage_history_excluded": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"job_page_pipeline_stages_in": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"job_page_pipeline_stages_ex": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"activity_types_included": [
"<string>"
],
"activity_types_excluded": [
"<string>"
],
"activity_content_keywords": [
"<string>"
],
"person_owner_ids_included": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"person_owner_ids_excluded": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"candidate_owner_ids_included": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"candidate_owner_ids_excluded": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"sourced_by_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"sourced_by_include_empty": true,
"list_ids_included": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"list_ids_excluded": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"hide_client_contacts": true,
"engagement_value": 123,
"engagement_start_date": "<string>",
"engagement_end_date": "<string>",
"added_to_job_start_date": "<string>",
"added_to_job_end_date": "<string>",
"locations_included": [
{
"value": "<string>",
"label": "<string>",
"lat": 123,
"lng": 123,
"bounds": {
"south": 123,
"west": 123,
"north": 123,
"east": 123
}
}
],
"locations_excluded": [
{
"value": "<string>",
"label": "<string>",
"lat": 123,
"lng": 123,
"bounds": {
"south": 123,
"west": 123,
"north": 123,
"east": 123
}
}
],
"select_attribute_filters": [
{
"attribute_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"values": [],
"excluded_values": [],
"require_all": false,
"include_empty": false
}
],
"numeric_attribute_filters": [
{
"attribute_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"min": 123,
"max": 123,
"include_empty": false
}
],
"date_attribute_filters": [
{
"attribute_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"start_date": "<string>",
"end_date": "<string>",
"include_empty": false
}
],
"team_member_attribute_filters": [
{
"attribute_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"values": [],
"excluded_values": [],
"require_all": false,
"include_empty": false
}
],
"created_at_gte": "<string>",
"created_at_lte": "<string>",
"updated_at_gte": "<string>",
"updated_at_lte": "<string>",
"current_company_attribute_filters": {
"select_attribute_filters": [
{
"attribute_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"values": [],
"excluded_values": [],
"require_all": false,
"include_empty": false
}
],
"numeric_attribute_filters": [
{
"attribute_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"min": 123,
"max": 123,
"include_empty": false
}
],
"date_attribute_filters": [
{
"attribute_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"start_date": "<string>",
"end_date": "<string>",
"include_empty": false
}
],
"team_member_attribute_filters": [
{
"attribute_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"values": [],
"excluded_values": [],
"require_all": false,
"include_empty": false
}
]
}
}
'import requests
url = "https://api.stardex.ai/v1/persons/search"
payload = {
"offset": 0,
"limit": 100,
"sort_by": "created_at",
"sort_order": "desc",
"email": "jsmith@example.com",
"name": "<string>",
"phone": "<string>",
"linkedin_url": "<string>",
"vector_search": "<string>",
"include": [],
"keywords": ["<string>"],
"job_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"job_ids_included": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"job_ids_excluded": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"filter_out_if_not_in_job": True,
"exclude_archived_jobs": True,
"job_titles_included": ["<string>"],
"job_titles_excluded": ["<string>"],
"departments_included": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"departments_excluded": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"current_company_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"current_company_ids_excluded": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"past_company_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"past_company_ids_excluded": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"pipeline_stage_ids_included": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"pipeline_stage_ids_excluded": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"pipeline_stage_history_included": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"pipeline_stage_history_excluded": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"job_page_pipeline_stages_in": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"job_page_pipeline_stages_ex": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"activity_types_included": ["<string>"],
"activity_types_excluded": ["<string>"],
"activity_content_keywords": ["<string>"],
"person_owner_ids_included": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"person_owner_ids_excluded": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"candidate_owner_ids_included": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"candidate_owner_ids_excluded": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"sourced_by_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"sourced_by_include_empty": True,
"list_ids_included": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"list_ids_excluded": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"hide_client_contacts": True,
"engagement_value": 123,
"engagement_start_date": "<string>",
"engagement_end_date": "<string>",
"added_to_job_start_date": "<string>",
"added_to_job_end_date": "<string>",
"locations_included": [
{
"value": "<string>",
"label": "<string>",
"lat": 123,
"lng": 123,
"bounds": {
"south": 123,
"west": 123,
"north": 123,
"east": 123
}
}
],
"locations_excluded": [
{
"value": "<string>",
"label": "<string>",
"lat": 123,
"lng": 123,
"bounds": {
"south": 123,
"west": 123,
"north": 123,
"east": 123
}
}
],
"select_attribute_filters": [
{
"attribute_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"values": [],
"excluded_values": [],
"require_all": False,
"include_empty": False
}
],
"numeric_attribute_filters": [
{
"attribute_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"min": 123,
"max": 123,
"include_empty": False
}
],
"date_attribute_filters": [
{
"attribute_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"start_date": "<string>",
"end_date": "<string>",
"include_empty": False
}
],
"team_member_attribute_filters": [
{
"attribute_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"values": [],
"excluded_values": [],
"require_all": False,
"include_empty": False
}
],
"created_at_gte": "<string>",
"created_at_lte": "<string>",
"updated_at_gte": "<string>",
"updated_at_lte": "<string>",
"current_company_attribute_filters": {
"select_attribute_filters": [
{
"attribute_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"values": [],
"excluded_values": [],
"require_all": False,
"include_empty": False
}
],
"numeric_attribute_filters": [
{
"attribute_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"min": 123,
"max": 123,
"include_empty": False
}
],
"date_attribute_filters": [
{
"attribute_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"start_date": "<string>",
"end_date": "<string>",
"include_empty": False
}
],
"team_member_attribute_filters": [
{
"attribute_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"values": [],
"excluded_values": [],
"require_all": False,
"include_empty": False
}
]
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
offset: 0,
limit: 100,
sort_by: 'created_at',
sort_order: 'desc',
email: 'jsmith@example.com',
name: '<string>',
phone: '<string>',
linkedin_url: '<string>',
vector_search: '<string>',
include: [],
keywords: ['<string>'],
job_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
job_ids_included: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
job_ids_excluded: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
filter_out_if_not_in_job: true,
exclude_archived_jobs: true,
job_titles_included: ['<string>'],
job_titles_excluded: ['<string>'],
departments_included: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
departments_excluded: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
current_company_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
current_company_ids_excluded: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
past_company_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
past_company_ids_excluded: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
pipeline_stage_ids_included: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
pipeline_stage_ids_excluded: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
pipeline_stage_history_included: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
pipeline_stage_history_excluded: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
job_page_pipeline_stages_in: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
job_page_pipeline_stages_ex: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
activity_types_included: ['<string>'],
activity_types_excluded: ['<string>'],
activity_content_keywords: ['<string>'],
person_owner_ids_included: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
person_owner_ids_excluded: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
candidate_owner_ids_included: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
candidate_owner_ids_excluded: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
sourced_by_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
sourced_by_include_empty: true,
list_ids_included: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
list_ids_excluded: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
hide_client_contacts: true,
engagement_value: 123,
engagement_start_date: '<string>',
engagement_end_date: '<string>',
added_to_job_start_date: '<string>',
added_to_job_end_date: '<string>',
locations_included: [
{
value: '<string>',
label: '<string>',
lat: 123,
lng: 123,
bounds: {south: 123, west: 123, north: 123, east: 123}
}
],
locations_excluded: [
{
value: '<string>',
label: '<string>',
lat: 123,
lng: 123,
bounds: {south: 123, west: 123, north: 123, east: 123}
}
],
select_attribute_filters: [
{
attribute_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
values: [],
excluded_values: [],
require_all: false,
include_empty: false
}
],
numeric_attribute_filters: [
{
attribute_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
min: 123,
max: 123,
include_empty: false
}
],
date_attribute_filters: [
{
attribute_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
start_date: '<string>',
end_date: '<string>',
include_empty: false
}
],
team_member_attribute_filters: [
{
attribute_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
values: [],
excluded_values: [],
require_all: false,
include_empty: false
}
],
created_at_gte: '<string>',
created_at_lte: '<string>',
updated_at_gte: '<string>',
updated_at_lte: '<string>',
current_company_attribute_filters: {
select_attribute_filters: [
{
attribute_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
values: [],
excluded_values: [],
require_all: false,
include_empty: false
}
],
numeric_attribute_filters: [
{
attribute_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
min: 123,
max: 123,
include_empty: false
}
],
date_attribute_filters: [
{
attribute_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
start_date: '<string>',
end_date: '<string>',
include_empty: false
}
],
team_member_attribute_filters: [
{
attribute_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
values: [],
excluded_values: [],
require_all: false,
include_empty: false
}
]
}
})
};
fetch('https://api.stardex.ai/v1/persons/search', 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://api.stardex.ai/v1/persons/search",
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([
'offset' => 0,
'limit' => 100,
'sort_by' => 'created_at',
'sort_order' => 'desc',
'email' => 'jsmith@example.com',
'name' => '<string>',
'phone' => '<string>',
'linkedin_url' => '<string>',
'vector_search' => '<string>',
'include' => [
],
'keywords' => [
'<string>'
],
'job_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'job_ids_included' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'job_ids_excluded' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'filter_out_if_not_in_job' => true,
'exclude_archived_jobs' => true,
'job_titles_included' => [
'<string>'
],
'job_titles_excluded' => [
'<string>'
],
'departments_included' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'departments_excluded' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'current_company_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'current_company_ids_excluded' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'past_company_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'past_company_ids_excluded' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'pipeline_stage_ids_included' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'pipeline_stage_ids_excluded' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'pipeline_stage_history_included' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'pipeline_stage_history_excluded' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'job_page_pipeline_stages_in' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'job_page_pipeline_stages_ex' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'activity_types_included' => [
'<string>'
],
'activity_types_excluded' => [
'<string>'
],
'activity_content_keywords' => [
'<string>'
],
'person_owner_ids_included' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'person_owner_ids_excluded' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'candidate_owner_ids_included' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'candidate_owner_ids_excluded' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'sourced_by_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'sourced_by_include_empty' => true,
'list_ids_included' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'list_ids_excluded' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'hide_client_contacts' => true,
'engagement_value' => 123,
'engagement_start_date' => '<string>',
'engagement_end_date' => '<string>',
'added_to_job_start_date' => '<string>',
'added_to_job_end_date' => '<string>',
'locations_included' => [
[
'value' => '<string>',
'label' => '<string>',
'lat' => 123,
'lng' => 123,
'bounds' => [
'south' => 123,
'west' => 123,
'north' => 123,
'east' => 123
]
]
],
'locations_excluded' => [
[
'value' => '<string>',
'label' => '<string>',
'lat' => 123,
'lng' => 123,
'bounds' => [
'south' => 123,
'west' => 123,
'north' => 123,
'east' => 123
]
]
],
'select_attribute_filters' => [
[
'attribute_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'values' => [
],
'excluded_values' => [
],
'require_all' => false,
'include_empty' => false
]
],
'numeric_attribute_filters' => [
[
'attribute_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'min' => 123,
'max' => 123,
'include_empty' => false
]
],
'date_attribute_filters' => [
[
'attribute_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'start_date' => '<string>',
'end_date' => '<string>',
'include_empty' => false
]
],
'team_member_attribute_filters' => [
[
'attribute_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'values' => [
],
'excluded_values' => [
],
'require_all' => false,
'include_empty' => false
]
],
'created_at_gte' => '<string>',
'created_at_lte' => '<string>',
'updated_at_gte' => '<string>',
'updated_at_lte' => '<string>',
'current_company_attribute_filters' => [
'select_attribute_filters' => [
[
'attribute_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'values' => [
],
'excluded_values' => [
],
'require_all' => false,
'include_empty' => false
]
],
'numeric_attribute_filters' => [
[
'attribute_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'min' => 123,
'max' => 123,
'include_empty' => false
]
],
'date_attribute_filters' => [
[
'attribute_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'start_date' => '<string>',
'end_date' => '<string>',
'include_empty' => false
]
],
'team_member_attribute_filters' => [
[
'attribute_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'values' => [
],
'excluded_values' => [
],
'require_all' => false,
'include_empty' => false
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://api.stardex.ai/v1/persons/search"
payload := strings.NewReader("{\n \"offset\": 0,\n \"limit\": 100,\n \"sort_by\": \"created_at\",\n \"sort_order\": \"desc\",\n \"email\": \"jsmith@example.com\",\n \"name\": \"<string>\",\n \"phone\": \"<string>\",\n \"linkedin_url\": \"<string>\",\n \"vector_search\": \"<string>\",\n \"include\": [],\n \"keywords\": [\n \"<string>\"\n ],\n \"job_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"job_ids_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"job_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"filter_out_if_not_in_job\": true,\n \"exclude_archived_jobs\": true,\n \"job_titles_included\": [\n \"<string>\"\n ],\n \"job_titles_excluded\": [\n \"<string>\"\n ],\n \"departments_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"departments_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"current_company_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"current_company_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"past_company_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"past_company_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"pipeline_stage_ids_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"pipeline_stage_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"pipeline_stage_history_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"pipeline_stage_history_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"job_page_pipeline_stages_in\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"job_page_pipeline_stages_ex\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"activity_types_included\": [\n \"<string>\"\n ],\n \"activity_types_excluded\": [\n \"<string>\"\n ],\n \"activity_content_keywords\": [\n \"<string>\"\n ],\n \"person_owner_ids_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"person_owner_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"candidate_owner_ids_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"candidate_owner_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"sourced_by_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"sourced_by_include_empty\": true,\n \"list_ids_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"list_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"hide_client_contacts\": true,\n \"engagement_value\": 123,\n \"engagement_start_date\": \"<string>\",\n \"engagement_end_date\": \"<string>\",\n \"added_to_job_start_date\": \"<string>\",\n \"added_to_job_end_date\": \"<string>\",\n \"locations_included\": [\n {\n \"value\": \"<string>\",\n \"label\": \"<string>\",\n \"lat\": 123,\n \"lng\": 123,\n \"bounds\": {\n \"south\": 123,\n \"west\": 123,\n \"north\": 123,\n \"east\": 123\n }\n }\n ],\n \"locations_excluded\": [\n {\n \"value\": \"<string>\",\n \"label\": \"<string>\",\n \"lat\": 123,\n \"lng\": 123,\n \"bounds\": {\n \"south\": 123,\n \"west\": 123,\n \"north\": 123,\n \"east\": 123\n }\n }\n ],\n \"select_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"values\": [],\n \"excluded_values\": [],\n \"require_all\": false,\n \"include_empty\": false\n }\n ],\n \"numeric_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"min\": 123,\n \"max\": 123,\n \"include_empty\": false\n }\n ],\n \"date_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"start_date\": \"<string>\",\n \"end_date\": \"<string>\",\n \"include_empty\": false\n }\n ],\n \"team_member_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"values\": [],\n \"excluded_values\": [],\n \"require_all\": false,\n \"include_empty\": false\n }\n ],\n \"created_at_gte\": \"<string>\",\n \"created_at_lte\": \"<string>\",\n \"updated_at_gte\": \"<string>\",\n \"updated_at_lte\": \"<string>\",\n \"current_company_attribute_filters\": {\n \"select_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"values\": [],\n \"excluded_values\": [],\n \"require_all\": false,\n \"include_empty\": false\n }\n ],\n \"numeric_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"min\": 123,\n \"max\": 123,\n \"include_empty\": false\n }\n ],\n \"date_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"start_date\": \"<string>\",\n \"end_date\": \"<string>\",\n \"include_empty\": false\n }\n ],\n \"team_member_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"values\": [],\n \"excluded_values\": [],\n \"require_all\": false,\n \"include_empty\": false\n }\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.stardex.ai/v1/persons/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"offset\": 0,\n \"limit\": 100,\n \"sort_by\": \"created_at\",\n \"sort_order\": \"desc\",\n \"email\": \"jsmith@example.com\",\n \"name\": \"<string>\",\n \"phone\": \"<string>\",\n \"linkedin_url\": \"<string>\",\n \"vector_search\": \"<string>\",\n \"include\": [],\n \"keywords\": [\n \"<string>\"\n ],\n \"job_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"job_ids_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"job_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"filter_out_if_not_in_job\": true,\n \"exclude_archived_jobs\": true,\n \"job_titles_included\": [\n \"<string>\"\n ],\n \"job_titles_excluded\": [\n \"<string>\"\n ],\n \"departments_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"departments_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"current_company_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"current_company_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"past_company_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"past_company_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"pipeline_stage_ids_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"pipeline_stage_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"pipeline_stage_history_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"pipeline_stage_history_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"job_page_pipeline_stages_in\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"job_page_pipeline_stages_ex\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"activity_types_included\": [\n \"<string>\"\n ],\n \"activity_types_excluded\": [\n \"<string>\"\n ],\n \"activity_content_keywords\": [\n \"<string>\"\n ],\n \"person_owner_ids_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"person_owner_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"candidate_owner_ids_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"candidate_owner_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"sourced_by_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"sourced_by_include_empty\": true,\n \"list_ids_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"list_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"hide_client_contacts\": true,\n \"engagement_value\": 123,\n \"engagement_start_date\": \"<string>\",\n \"engagement_end_date\": \"<string>\",\n \"added_to_job_start_date\": \"<string>\",\n \"added_to_job_end_date\": \"<string>\",\n \"locations_included\": [\n {\n \"value\": \"<string>\",\n \"label\": \"<string>\",\n \"lat\": 123,\n \"lng\": 123,\n \"bounds\": {\n \"south\": 123,\n \"west\": 123,\n \"north\": 123,\n \"east\": 123\n }\n }\n ],\n \"locations_excluded\": [\n {\n \"value\": \"<string>\",\n \"label\": \"<string>\",\n \"lat\": 123,\n \"lng\": 123,\n \"bounds\": {\n \"south\": 123,\n \"west\": 123,\n \"north\": 123,\n \"east\": 123\n }\n }\n ],\n \"select_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"values\": [],\n \"excluded_values\": [],\n \"require_all\": false,\n \"include_empty\": false\n }\n ],\n \"numeric_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"min\": 123,\n \"max\": 123,\n \"include_empty\": false\n }\n ],\n \"date_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"start_date\": \"<string>\",\n \"end_date\": \"<string>\",\n \"include_empty\": false\n }\n ],\n \"team_member_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"values\": [],\n \"excluded_values\": [],\n \"require_all\": false,\n \"include_empty\": false\n }\n ],\n \"created_at_gte\": \"<string>\",\n \"created_at_lte\": \"<string>\",\n \"updated_at_gte\": \"<string>\",\n \"updated_at_lte\": \"<string>\",\n \"current_company_attribute_filters\": {\n \"select_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"values\": [],\n \"excluded_values\": [],\n \"require_all\": false,\n \"include_empty\": false\n }\n ],\n \"numeric_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"min\": 123,\n \"max\": 123,\n \"include_empty\": false\n }\n ],\n \"date_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"start_date\": \"<string>\",\n \"end_date\": \"<string>\",\n \"include_empty\": false\n }\n ],\n \"team_member_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"values\": [],\n \"excluded_values\": [],\n \"require_all\": false,\n \"include_empty\": false\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stardex.ai/v1/persons/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"offset\": 0,\n \"limit\": 100,\n \"sort_by\": \"created_at\",\n \"sort_order\": \"desc\",\n \"email\": \"jsmith@example.com\",\n \"name\": \"<string>\",\n \"phone\": \"<string>\",\n \"linkedin_url\": \"<string>\",\n \"vector_search\": \"<string>\",\n \"include\": [],\n \"keywords\": [\n \"<string>\"\n ],\n \"job_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"job_ids_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"job_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"filter_out_if_not_in_job\": true,\n \"exclude_archived_jobs\": true,\n \"job_titles_included\": [\n \"<string>\"\n ],\n \"job_titles_excluded\": [\n \"<string>\"\n ],\n \"departments_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"departments_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"current_company_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"current_company_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"past_company_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"past_company_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"pipeline_stage_ids_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"pipeline_stage_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"pipeline_stage_history_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"pipeline_stage_history_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"job_page_pipeline_stages_in\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"job_page_pipeline_stages_ex\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"activity_types_included\": [\n \"<string>\"\n ],\n \"activity_types_excluded\": [\n \"<string>\"\n ],\n \"activity_content_keywords\": [\n \"<string>\"\n ],\n \"person_owner_ids_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"person_owner_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"candidate_owner_ids_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"candidate_owner_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"sourced_by_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"sourced_by_include_empty\": true,\n \"list_ids_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"list_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"hide_client_contacts\": true,\n \"engagement_value\": 123,\n \"engagement_start_date\": \"<string>\",\n \"engagement_end_date\": \"<string>\",\n \"added_to_job_start_date\": \"<string>\",\n \"added_to_job_end_date\": \"<string>\",\n \"locations_included\": [\n {\n \"value\": \"<string>\",\n \"label\": \"<string>\",\n \"lat\": 123,\n \"lng\": 123,\n \"bounds\": {\n \"south\": 123,\n \"west\": 123,\n \"north\": 123,\n \"east\": 123\n }\n }\n ],\n \"locations_excluded\": [\n {\n \"value\": \"<string>\",\n \"label\": \"<string>\",\n \"lat\": 123,\n \"lng\": 123,\n \"bounds\": {\n \"south\": 123,\n \"west\": 123,\n \"north\": 123,\n \"east\": 123\n }\n }\n ],\n \"select_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"values\": [],\n \"excluded_values\": [],\n \"require_all\": false,\n \"include_empty\": false\n }\n ],\n \"numeric_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"min\": 123,\n \"max\": 123,\n \"include_empty\": false\n }\n ],\n \"date_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"start_date\": \"<string>\",\n \"end_date\": \"<string>\",\n \"include_empty\": false\n }\n ],\n \"team_member_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"values\": [],\n \"excluded_values\": [],\n \"require_all\": false,\n \"include_empty\": false\n }\n ],\n \"created_at_gte\": \"<string>\",\n \"created_at_lte\": \"<string>\",\n \"updated_at_gte\": \"<string>\",\n \"updated_at_lte\": \"<string>\",\n \"current_company_attribute_filters\": {\n \"select_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"values\": [],\n \"excluded_values\": [],\n \"require_all\": false,\n \"include_empty\": false\n }\n ],\n \"numeric_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"min\": 123,\n \"max\": 123,\n \"include_empty\": false\n }\n ],\n \"date_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"start_date\": \"<string>\",\n \"end_date\": \"<string>\",\n \"include_empty\": false\n }\n ],\n \"team_member_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"values\": [],\n \"excluded_values\": [],\n \"require_all\": false,\n \"include_empty\": false\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "John Doe",
"linkedin_public_id": "johndoe",
"first_name": "John",
"last_name": "Doe",
"current_job_title": "Software Engineer",
"current_company_name": "Tech Corp",
"current_company_id": "456e7890-e12b-34d5-a678-901234567890",
"external_source_id": null,
"created_at": "2024-01-15T10:30:00.000Z",
"updated_at": "2024-06-20T14:45:00.000Z",
"image_url": "https://media.samplecdn.com/dms/image/example.jpg",
"location": "San Francisco, CA",
"latitude": 37.7749,
"longitude": -122.4194,
"date_of_last_engagement": "2024-06-18T09:00:00.000Z",
"last_activity_type": "email",
"do_not_contact": false,
"do_not_contact_reason": null,
"owner_id": null,
"emails": [
{
"contact_data_type": "work",
"value": "john@techcorp.com"
}
],
"phones": [
{
"contact_data_type": "mobile",
"value": "+1-555-0123"
}
],
"work_experience": [
{
"company_name": "Tech Corp",
"company_linkedin_url": "https://www.linkedin.com/company/techcorp",
"company_linkedin_id": 12345678,
"company_id": "456e7890-e12b-34d5-a678-901234567890",
"duration_in_months": 36,
"positions": [
{
"title": "Software Engineer",
"start_date": "2022-01-01",
"end_date": null,
"duration_in_months": 36,
"description": "Full-stack development",
"location": "San Francisco, CA",
"position_type": "Full-time"
}
]
}
],
"education_experience": [
{
"company_name": "Stanford University",
"start_date": "2016-09-01",
"end_date": "2020-06-01",
"description": null,
"degree": "B.S. Computer Science",
"company_linkedin_url": "https://www.linkedin.com/school/stanford",
"company_linkedin_id": 1234,
"company_id": null
}
],
"certifications": [
{
"name": "AWS Solutions Architect",
"credential_id": "AWS-SA-001",
"start_date": "2023-06-01",
"end_date": "2026-06-01",
"company_name": "Amazon Web Services",
"company_linkedin_url": null,
"company_linkedin_id": null,
"company_id": null
}
],
"candidates": [
{
"candidate_id": "789e0123-e45f-67a8-b901-234567890123",
"job_name": "Senior Software Engineer",
"job_id": "345e6789-e01b-23c4-d567-890123456789",
"job_client_company_name": "StartupXYZ",
"current_pipeline_stage_name": "Technical Interview",
"current_pipeline_stage_id": "567e8901-e23c-45d6-e789-012345678901",
"is_archived": false,
"created_at": "2024-01-12T14:30:00Z",
"sourced_by": "234e5678-e90a-12b3-c456-789012345678",
"owner_id": null
}
],
"custom_fields": [
{
"attribute_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"attribute_name": "Seniority Level",
"data_type": "single-select",
"value": null,
"tag": {
"id": "f1e2d3c4-b5a6-7890-abcd-ef1234567890",
"name": "Senior"
},
"team_member": null
},
{
"attribute_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"attribute_name": "Years of Experience",
"data_type": "number",
"value": 8,
"tag": null,
"team_member": null
}
],
"activities": [
{
"id": "fff66666-0000-1111-2222-333333336666",
"activity_type": "pipeline_status",
"created_at": "2024-01-15T10:00:00Z",
"updated_at": "2024-01-15T10:00:00Z",
"activity_content": "Moved to Technical Interview",
"team_member": {
"id": "234e5678-e90a-12b3-c456-789012345678",
"name": "Jane Smith"
},
"job": {
"id": "345e6789-e01b-23c4-d567-890123456789",
"title": "Senior Software Engineer",
"company_name": "StartupXYZ"
},
"pipeline_status_details": {
"stage_name": "Technical Interview",
"is_rejection_stage": false,
"entered_at": "2024-01-15T10:00:00Z",
"exited_at": null,
"reason_text": null
}
},
{
"id": "901e2345-e67f-89a0-b123-456789012345",
"activity_type": "secondary_note",
"created_at": "2024-01-14T16:00:00Z",
"updated_at": "2024-01-14T16:45:00Z",
"activity_content": "Great initial call. Strong system design skills.",
"team_member": {
"id": "234e5678-e90a-12b3-c456-789012345678",
"name": "Jane Smith"
},
"job": {
"id": "345e6789-e01b-23c4-d567-890123456789",
"title": "Senior Software Engineer",
"company_name": "StartupXYZ"
}
},
{
"id": "902e3456-f78a-90b1-c234-567890123456",
"activity_type": "email",
"created_at": "2024-01-13T11:00:00Z",
"updated_at": "2024-01-13T11:00:00Z",
"activity_content": "Hi John, following up on our conversation...",
"team_member": {
"id": "234e5678-e90a-12b3-c456-789012345678",
"name": "Jane Smith"
},
"job": {
"id": "345e6789-e01b-23c4-d567-890123456789",
"title": "Senior Software Engineer",
"company_name": "StartupXYZ"
},
"email_details": {
"subject": "Following up — Senior SWE role",
"from_email": "jane@startup.xyz",
"to_email": "john@techcorp.com",
"status": "sent"
}
}
],
"compensation": [
{
"id": "678e9012-e34d-56f7-a890-123456789012",
"compensation_type": "actual",
"currency_code": "USD",
"current_compensation_base": 180000,
"current_compensation_bonus": 20000,
"equity_percent": null,
"equity_amount": 50000,
"compensation_year": 2024,
"total_estimated_compensation": 250000,
"note": "Current package at Tech Corp",
"job_id": null,
"job_name": null,
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}
],
"related_people": [
{
"relation_id": "rel-1111-2222-3333-444444444444",
"person_id": "567e8901-e23c-45d6-e789-012345678901",
"name": "Jane Smith",
"current_job_title": "Engineering Manager",
"linkedin_public_id": "janesmith",
"current_company_name": "Tech Corp",
"current_company_id": "456e7890-e12b-34d5-a678-901234567890",
"relation_type": "colleague",
"note": "Worked together on Platform team",
"direction": "outgoing",
"created_at": "2024-01-05T10:00:00Z"
}
],
"offers": [
{
"id": "offer-1111-2222-3333-444444444444",
"job_id": "345e6789-e01b-23c4-d567-890123456789",
"job_name": "Senior Software Engineer",
"job_company_name": "StartupXYZ",
"candidate_id": "789e0123-e45f-67a8-b901-234567890123",
"status": {
"id": "status-1111",
"name": "Extended",
"color": "#22c55e"
},
"extended_date": "2024-02-01T00:00:00Z",
"accepted_date": null,
"candidate_start_date": "2024-03-01T00:00:00Z",
"compensation_currency": "USD",
"compensation_base": 200000,
"compensation_bonus": 30000,
"bonus_type": "fixed",
"annual_equity_grant_percent": null,
"annual_equity_grant_amount": 50000,
"initial_equity_grant_percent": null,
"initial_equity_grant_amount": 100000,
"relocation_bonus": 10000,
"total_estimated_compensation": 290000,
"note": "Competitive offer with strong equity component",
"created_at": "2024-02-01T00:00:00Z",
"updated_at": "2024-02-01T00:00:00Z"
}
]
}
],
"meta": {
"total": 100,
"offset": 0,
"limit": 20
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}Advanced person search
The primary tool for finding and filtering persons across the entire database. All filters are optional and combinable. Use this instead of list-persons for any filtered query.
Direct search fields: email (exact match), name (partial, case-insensitive), phone (tiered matching: exact → normalized → last-7-digits), linkedin_url (exact profile match), vector_search (AI semantic search, min 5 chars).
Filter categories: jobs & pipeline stages, job titles, departments, companies (current/past), activity types & content keywords, owners (person/candidate), source, lists, contact presence, engagement recency, date ranges (created_at, updated_at, added-to-job), locations, and custom attributes (select, numeric, date, team member).
Custom field / tag filtering: To filter by person tags or select-type attributes (e.g. “banking” tag), use select_attribute_filters with attribute_id and values (tag UUIDs). To discover attribute IDs and tag option IDs, call GET /v1/custom-fields/persons first.
Sorting: Set sort_by to one of: name, created_at, updated_at, current_job_title, company, location, date_of_last_engagement, person_owner, last_activity_type, contact_email, or custom_<attribute_id>. Job-context sort columns (require job_id or exactly 1 job in job_ids_included): pipeline_stage, stage_date, added_to_job_at, rating, rating_note, candidate_owner. Use sort_order (asc or desc, default desc).
Include control: The include body array controls which sections appear in each person record. Allowed values: work_experience, education_experience, certifications, candidates, custom_fields, activities, compensation, related_people, offers. When omitted, returns only base fields (id, name, emails, phones, current_job_title, etc.). Pass an empty array [] to explicitly request base fields only.
API-key scope requirements: Requests missing a required scope succeed with inaccessible include sections omitted: activities requires notes:read, candidates requires candidates:read, and compensation and offers require compensation:read.
Job-scoped search: Pass job_id to scope results to candidates in a specific job. This enables job-context sort columns and automatically filters to persons in that job. Combine with include: ["candidates"] to get candidate-level fields (pipeline stage, sourced_by, etc.).
curl --request POST \
--url https://api.stardex.ai/v1/persons/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"offset": 0,
"limit": 100,
"sort_by": "created_at",
"sort_order": "desc",
"email": "jsmith@example.com",
"name": "<string>",
"phone": "<string>",
"linkedin_url": "<string>",
"vector_search": "<string>",
"include": [],
"keywords": [
"<string>"
],
"job_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"job_ids_included": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"job_ids_excluded": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"filter_out_if_not_in_job": true,
"exclude_archived_jobs": true,
"job_titles_included": [
"<string>"
],
"job_titles_excluded": [
"<string>"
],
"departments_included": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"departments_excluded": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"current_company_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"current_company_ids_excluded": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"past_company_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"past_company_ids_excluded": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"pipeline_stage_ids_included": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"pipeline_stage_ids_excluded": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"pipeline_stage_history_included": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"pipeline_stage_history_excluded": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"job_page_pipeline_stages_in": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"job_page_pipeline_stages_ex": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"activity_types_included": [
"<string>"
],
"activity_types_excluded": [
"<string>"
],
"activity_content_keywords": [
"<string>"
],
"person_owner_ids_included": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"person_owner_ids_excluded": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"candidate_owner_ids_included": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"candidate_owner_ids_excluded": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"sourced_by_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"sourced_by_include_empty": true,
"list_ids_included": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"list_ids_excluded": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"hide_client_contacts": true,
"engagement_value": 123,
"engagement_start_date": "<string>",
"engagement_end_date": "<string>",
"added_to_job_start_date": "<string>",
"added_to_job_end_date": "<string>",
"locations_included": [
{
"value": "<string>",
"label": "<string>",
"lat": 123,
"lng": 123,
"bounds": {
"south": 123,
"west": 123,
"north": 123,
"east": 123
}
}
],
"locations_excluded": [
{
"value": "<string>",
"label": "<string>",
"lat": 123,
"lng": 123,
"bounds": {
"south": 123,
"west": 123,
"north": 123,
"east": 123
}
}
],
"select_attribute_filters": [
{
"attribute_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"values": [],
"excluded_values": [],
"require_all": false,
"include_empty": false
}
],
"numeric_attribute_filters": [
{
"attribute_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"min": 123,
"max": 123,
"include_empty": false
}
],
"date_attribute_filters": [
{
"attribute_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"start_date": "<string>",
"end_date": "<string>",
"include_empty": false
}
],
"team_member_attribute_filters": [
{
"attribute_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"values": [],
"excluded_values": [],
"require_all": false,
"include_empty": false
}
],
"created_at_gte": "<string>",
"created_at_lte": "<string>",
"updated_at_gte": "<string>",
"updated_at_lte": "<string>",
"current_company_attribute_filters": {
"select_attribute_filters": [
{
"attribute_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"values": [],
"excluded_values": [],
"require_all": false,
"include_empty": false
}
],
"numeric_attribute_filters": [
{
"attribute_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"min": 123,
"max": 123,
"include_empty": false
}
],
"date_attribute_filters": [
{
"attribute_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"start_date": "<string>",
"end_date": "<string>",
"include_empty": false
}
],
"team_member_attribute_filters": [
{
"attribute_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"values": [],
"excluded_values": [],
"require_all": false,
"include_empty": false
}
]
}
}
'import requests
url = "https://api.stardex.ai/v1/persons/search"
payload = {
"offset": 0,
"limit": 100,
"sort_by": "created_at",
"sort_order": "desc",
"email": "jsmith@example.com",
"name": "<string>",
"phone": "<string>",
"linkedin_url": "<string>",
"vector_search": "<string>",
"include": [],
"keywords": ["<string>"],
"job_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"job_ids_included": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"job_ids_excluded": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"filter_out_if_not_in_job": True,
"exclude_archived_jobs": True,
"job_titles_included": ["<string>"],
"job_titles_excluded": ["<string>"],
"departments_included": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"departments_excluded": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"current_company_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"current_company_ids_excluded": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"past_company_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"past_company_ids_excluded": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"pipeline_stage_ids_included": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"pipeline_stage_ids_excluded": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"pipeline_stage_history_included": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"pipeline_stage_history_excluded": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"job_page_pipeline_stages_in": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"job_page_pipeline_stages_ex": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"activity_types_included": ["<string>"],
"activity_types_excluded": ["<string>"],
"activity_content_keywords": ["<string>"],
"person_owner_ids_included": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"person_owner_ids_excluded": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"candidate_owner_ids_included": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"candidate_owner_ids_excluded": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"sourced_by_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"sourced_by_include_empty": True,
"list_ids_included": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"list_ids_excluded": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"hide_client_contacts": True,
"engagement_value": 123,
"engagement_start_date": "<string>",
"engagement_end_date": "<string>",
"added_to_job_start_date": "<string>",
"added_to_job_end_date": "<string>",
"locations_included": [
{
"value": "<string>",
"label": "<string>",
"lat": 123,
"lng": 123,
"bounds": {
"south": 123,
"west": 123,
"north": 123,
"east": 123
}
}
],
"locations_excluded": [
{
"value": "<string>",
"label": "<string>",
"lat": 123,
"lng": 123,
"bounds": {
"south": 123,
"west": 123,
"north": 123,
"east": 123
}
}
],
"select_attribute_filters": [
{
"attribute_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"values": [],
"excluded_values": [],
"require_all": False,
"include_empty": False
}
],
"numeric_attribute_filters": [
{
"attribute_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"min": 123,
"max": 123,
"include_empty": False
}
],
"date_attribute_filters": [
{
"attribute_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"start_date": "<string>",
"end_date": "<string>",
"include_empty": False
}
],
"team_member_attribute_filters": [
{
"attribute_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"values": [],
"excluded_values": [],
"require_all": False,
"include_empty": False
}
],
"created_at_gte": "<string>",
"created_at_lte": "<string>",
"updated_at_gte": "<string>",
"updated_at_lte": "<string>",
"current_company_attribute_filters": {
"select_attribute_filters": [
{
"attribute_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"values": [],
"excluded_values": [],
"require_all": False,
"include_empty": False
}
],
"numeric_attribute_filters": [
{
"attribute_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"min": 123,
"max": 123,
"include_empty": False
}
],
"date_attribute_filters": [
{
"attribute_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"start_date": "<string>",
"end_date": "<string>",
"include_empty": False
}
],
"team_member_attribute_filters": [
{
"attribute_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"values": [],
"excluded_values": [],
"require_all": False,
"include_empty": False
}
]
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
offset: 0,
limit: 100,
sort_by: 'created_at',
sort_order: 'desc',
email: 'jsmith@example.com',
name: '<string>',
phone: '<string>',
linkedin_url: '<string>',
vector_search: '<string>',
include: [],
keywords: ['<string>'],
job_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
job_ids_included: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
job_ids_excluded: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
filter_out_if_not_in_job: true,
exclude_archived_jobs: true,
job_titles_included: ['<string>'],
job_titles_excluded: ['<string>'],
departments_included: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
departments_excluded: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
current_company_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
current_company_ids_excluded: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
past_company_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
past_company_ids_excluded: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
pipeline_stage_ids_included: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
pipeline_stage_ids_excluded: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
pipeline_stage_history_included: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
pipeline_stage_history_excluded: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
job_page_pipeline_stages_in: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
job_page_pipeline_stages_ex: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
activity_types_included: ['<string>'],
activity_types_excluded: ['<string>'],
activity_content_keywords: ['<string>'],
person_owner_ids_included: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
person_owner_ids_excluded: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
candidate_owner_ids_included: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
candidate_owner_ids_excluded: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
sourced_by_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
sourced_by_include_empty: true,
list_ids_included: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
list_ids_excluded: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
hide_client_contacts: true,
engagement_value: 123,
engagement_start_date: '<string>',
engagement_end_date: '<string>',
added_to_job_start_date: '<string>',
added_to_job_end_date: '<string>',
locations_included: [
{
value: '<string>',
label: '<string>',
lat: 123,
lng: 123,
bounds: {south: 123, west: 123, north: 123, east: 123}
}
],
locations_excluded: [
{
value: '<string>',
label: '<string>',
lat: 123,
lng: 123,
bounds: {south: 123, west: 123, north: 123, east: 123}
}
],
select_attribute_filters: [
{
attribute_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
values: [],
excluded_values: [],
require_all: false,
include_empty: false
}
],
numeric_attribute_filters: [
{
attribute_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
min: 123,
max: 123,
include_empty: false
}
],
date_attribute_filters: [
{
attribute_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
start_date: '<string>',
end_date: '<string>',
include_empty: false
}
],
team_member_attribute_filters: [
{
attribute_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
values: [],
excluded_values: [],
require_all: false,
include_empty: false
}
],
created_at_gte: '<string>',
created_at_lte: '<string>',
updated_at_gte: '<string>',
updated_at_lte: '<string>',
current_company_attribute_filters: {
select_attribute_filters: [
{
attribute_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
values: [],
excluded_values: [],
require_all: false,
include_empty: false
}
],
numeric_attribute_filters: [
{
attribute_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
min: 123,
max: 123,
include_empty: false
}
],
date_attribute_filters: [
{
attribute_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
start_date: '<string>',
end_date: '<string>',
include_empty: false
}
],
team_member_attribute_filters: [
{
attribute_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
values: [],
excluded_values: [],
require_all: false,
include_empty: false
}
]
}
})
};
fetch('https://api.stardex.ai/v1/persons/search', 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://api.stardex.ai/v1/persons/search",
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([
'offset' => 0,
'limit' => 100,
'sort_by' => 'created_at',
'sort_order' => 'desc',
'email' => 'jsmith@example.com',
'name' => '<string>',
'phone' => '<string>',
'linkedin_url' => '<string>',
'vector_search' => '<string>',
'include' => [
],
'keywords' => [
'<string>'
],
'job_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'job_ids_included' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'job_ids_excluded' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'filter_out_if_not_in_job' => true,
'exclude_archived_jobs' => true,
'job_titles_included' => [
'<string>'
],
'job_titles_excluded' => [
'<string>'
],
'departments_included' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'departments_excluded' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'current_company_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'current_company_ids_excluded' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'past_company_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'past_company_ids_excluded' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'pipeline_stage_ids_included' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'pipeline_stage_ids_excluded' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'pipeline_stage_history_included' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'pipeline_stage_history_excluded' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'job_page_pipeline_stages_in' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'job_page_pipeline_stages_ex' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'activity_types_included' => [
'<string>'
],
'activity_types_excluded' => [
'<string>'
],
'activity_content_keywords' => [
'<string>'
],
'person_owner_ids_included' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'person_owner_ids_excluded' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'candidate_owner_ids_included' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'candidate_owner_ids_excluded' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'sourced_by_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'sourced_by_include_empty' => true,
'list_ids_included' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'list_ids_excluded' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'hide_client_contacts' => true,
'engagement_value' => 123,
'engagement_start_date' => '<string>',
'engagement_end_date' => '<string>',
'added_to_job_start_date' => '<string>',
'added_to_job_end_date' => '<string>',
'locations_included' => [
[
'value' => '<string>',
'label' => '<string>',
'lat' => 123,
'lng' => 123,
'bounds' => [
'south' => 123,
'west' => 123,
'north' => 123,
'east' => 123
]
]
],
'locations_excluded' => [
[
'value' => '<string>',
'label' => '<string>',
'lat' => 123,
'lng' => 123,
'bounds' => [
'south' => 123,
'west' => 123,
'north' => 123,
'east' => 123
]
]
],
'select_attribute_filters' => [
[
'attribute_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'values' => [
],
'excluded_values' => [
],
'require_all' => false,
'include_empty' => false
]
],
'numeric_attribute_filters' => [
[
'attribute_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'min' => 123,
'max' => 123,
'include_empty' => false
]
],
'date_attribute_filters' => [
[
'attribute_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'start_date' => '<string>',
'end_date' => '<string>',
'include_empty' => false
]
],
'team_member_attribute_filters' => [
[
'attribute_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'values' => [
],
'excluded_values' => [
],
'require_all' => false,
'include_empty' => false
]
],
'created_at_gte' => '<string>',
'created_at_lte' => '<string>',
'updated_at_gte' => '<string>',
'updated_at_lte' => '<string>',
'current_company_attribute_filters' => [
'select_attribute_filters' => [
[
'attribute_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'values' => [
],
'excluded_values' => [
],
'require_all' => false,
'include_empty' => false
]
],
'numeric_attribute_filters' => [
[
'attribute_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'min' => 123,
'max' => 123,
'include_empty' => false
]
],
'date_attribute_filters' => [
[
'attribute_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'start_date' => '<string>',
'end_date' => '<string>',
'include_empty' => false
]
],
'team_member_attribute_filters' => [
[
'attribute_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'values' => [
],
'excluded_values' => [
],
'require_all' => false,
'include_empty' => false
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://api.stardex.ai/v1/persons/search"
payload := strings.NewReader("{\n \"offset\": 0,\n \"limit\": 100,\n \"sort_by\": \"created_at\",\n \"sort_order\": \"desc\",\n \"email\": \"jsmith@example.com\",\n \"name\": \"<string>\",\n \"phone\": \"<string>\",\n \"linkedin_url\": \"<string>\",\n \"vector_search\": \"<string>\",\n \"include\": [],\n \"keywords\": [\n \"<string>\"\n ],\n \"job_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"job_ids_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"job_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"filter_out_if_not_in_job\": true,\n \"exclude_archived_jobs\": true,\n \"job_titles_included\": [\n \"<string>\"\n ],\n \"job_titles_excluded\": [\n \"<string>\"\n ],\n \"departments_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"departments_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"current_company_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"current_company_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"past_company_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"past_company_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"pipeline_stage_ids_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"pipeline_stage_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"pipeline_stage_history_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"pipeline_stage_history_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"job_page_pipeline_stages_in\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"job_page_pipeline_stages_ex\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"activity_types_included\": [\n \"<string>\"\n ],\n \"activity_types_excluded\": [\n \"<string>\"\n ],\n \"activity_content_keywords\": [\n \"<string>\"\n ],\n \"person_owner_ids_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"person_owner_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"candidate_owner_ids_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"candidate_owner_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"sourced_by_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"sourced_by_include_empty\": true,\n \"list_ids_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"list_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"hide_client_contacts\": true,\n \"engagement_value\": 123,\n \"engagement_start_date\": \"<string>\",\n \"engagement_end_date\": \"<string>\",\n \"added_to_job_start_date\": \"<string>\",\n \"added_to_job_end_date\": \"<string>\",\n \"locations_included\": [\n {\n \"value\": \"<string>\",\n \"label\": \"<string>\",\n \"lat\": 123,\n \"lng\": 123,\n \"bounds\": {\n \"south\": 123,\n \"west\": 123,\n \"north\": 123,\n \"east\": 123\n }\n }\n ],\n \"locations_excluded\": [\n {\n \"value\": \"<string>\",\n \"label\": \"<string>\",\n \"lat\": 123,\n \"lng\": 123,\n \"bounds\": {\n \"south\": 123,\n \"west\": 123,\n \"north\": 123,\n \"east\": 123\n }\n }\n ],\n \"select_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"values\": [],\n \"excluded_values\": [],\n \"require_all\": false,\n \"include_empty\": false\n }\n ],\n \"numeric_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"min\": 123,\n \"max\": 123,\n \"include_empty\": false\n }\n ],\n \"date_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"start_date\": \"<string>\",\n \"end_date\": \"<string>\",\n \"include_empty\": false\n }\n ],\n \"team_member_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"values\": [],\n \"excluded_values\": [],\n \"require_all\": false,\n \"include_empty\": false\n }\n ],\n \"created_at_gte\": \"<string>\",\n \"created_at_lte\": \"<string>\",\n \"updated_at_gte\": \"<string>\",\n \"updated_at_lte\": \"<string>\",\n \"current_company_attribute_filters\": {\n \"select_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"values\": [],\n \"excluded_values\": [],\n \"require_all\": false,\n \"include_empty\": false\n }\n ],\n \"numeric_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"min\": 123,\n \"max\": 123,\n \"include_empty\": false\n }\n ],\n \"date_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"start_date\": \"<string>\",\n \"end_date\": \"<string>\",\n \"include_empty\": false\n }\n ],\n \"team_member_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"values\": [],\n \"excluded_values\": [],\n \"require_all\": false,\n \"include_empty\": false\n }\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.stardex.ai/v1/persons/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"offset\": 0,\n \"limit\": 100,\n \"sort_by\": \"created_at\",\n \"sort_order\": \"desc\",\n \"email\": \"jsmith@example.com\",\n \"name\": \"<string>\",\n \"phone\": \"<string>\",\n \"linkedin_url\": \"<string>\",\n \"vector_search\": \"<string>\",\n \"include\": [],\n \"keywords\": [\n \"<string>\"\n ],\n \"job_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"job_ids_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"job_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"filter_out_if_not_in_job\": true,\n \"exclude_archived_jobs\": true,\n \"job_titles_included\": [\n \"<string>\"\n ],\n \"job_titles_excluded\": [\n \"<string>\"\n ],\n \"departments_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"departments_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"current_company_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"current_company_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"past_company_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"past_company_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"pipeline_stage_ids_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"pipeline_stage_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"pipeline_stage_history_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"pipeline_stage_history_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"job_page_pipeline_stages_in\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"job_page_pipeline_stages_ex\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"activity_types_included\": [\n \"<string>\"\n ],\n \"activity_types_excluded\": [\n \"<string>\"\n ],\n \"activity_content_keywords\": [\n \"<string>\"\n ],\n \"person_owner_ids_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"person_owner_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"candidate_owner_ids_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"candidate_owner_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"sourced_by_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"sourced_by_include_empty\": true,\n \"list_ids_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"list_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"hide_client_contacts\": true,\n \"engagement_value\": 123,\n \"engagement_start_date\": \"<string>\",\n \"engagement_end_date\": \"<string>\",\n \"added_to_job_start_date\": \"<string>\",\n \"added_to_job_end_date\": \"<string>\",\n \"locations_included\": [\n {\n \"value\": \"<string>\",\n \"label\": \"<string>\",\n \"lat\": 123,\n \"lng\": 123,\n \"bounds\": {\n \"south\": 123,\n \"west\": 123,\n \"north\": 123,\n \"east\": 123\n }\n }\n ],\n \"locations_excluded\": [\n {\n \"value\": \"<string>\",\n \"label\": \"<string>\",\n \"lat\": 123,\n \"lng\": 123,\n \"bounds\": {\n \"south\": 123,\n \"west\": 123,\n \"north\": 123,\n \"east\": 123\n }\n }\n ],\n \"select_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"values\": [],\n \"excluded_values\": [],\n \"require_all\": false,\n \"include_empty\": false\n }\n ],\n \"numeric_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"min\": 123,\n \"max\": 123,\n \"include_empty\": false\n }\n ],\n \"date_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"start_date\": \"<string>\",\n \"end_date\": \"<string>\",\n \"include_empty\": false\n }\n ],\n \"team_member_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"values\": [],\n \"excluded_values\": [],\n \"require_all\": false,\n \"include_empty\": false\n }\n ],\n \"created_at_gte\": \"<string>\",\n \"created_at_lte\": \"<string>\",\n \"updated_at_gte\": \"<string>\",\n \"updated_at_lte\": \"<string>\",\n \"current_company_attribute_filters\": {\n \"select_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"values\": [],\n \"excluded_values\": [],\n \"require_all\": false,\n \"include_empty\": false\n }\n ],\n \"numeric_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"min\": 123,\n \"max\": 123,\n \"include_empty\": false\n }\n ],\n \"date_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"start_date\": \"<string>\",\n \"end_date\": \"<string>\",\n \"include_empty\": false\n }\n ],\n \"team_member_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"values\": [],\n \"excluded_values\": [],\n \"require_all\": false,\n \"include_empty\": false\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stardex.ai/v1/persons/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"offset\": 0,\n \"limit\": 100,\n \"sort_by\": \"created_at\",\n \"sort_order\": \"desc\",\n \"email\": \"jsmith@example.com\",\n \"name\": \"<string>\",\n \"phone\": \"<string>\",\n \"linkedin_url\": \"<string>\",\n \"vector_search\": \"<string>\",\n \"include\": [],\n \"keywords\": [\n \"<string>\"\n ],\n \"job_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"job_ids_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"job_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"filter_out_if_not_in_job\": true,\n \"exclude_archived_jobs\": true,\n \"job_titles_included\": [\n \"<string>\"\n ],\n \"job_titles_excluded\": [\n \"<string>\"\n ],\n \"departments_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"departments_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"current_company_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"current_company_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"past_company_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"past_company_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"pipeline_stage_ids_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"pipeline_stage_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"pipeline_stage_history_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"pipeline_stage_history_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"job_page_pipeline_stages_in\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"job_page_pipeline_stages_ex\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"activity_types_included\": [\n \"<string>\"\n ],\n \"activity_types_excluded\": [\n \"<string>\"\n ],\n \"activity_content_keywords\": [\n \"<string>\"\n ],\n \"person_owner_ids_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"person_owner_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"candidate_owner_ids_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"candidate_owner_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"sourced_by_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"sourced_by_include_empty\": true,\n \"list_ids_included\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"list_ids_excluded\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"hide_client_contacts\": true,\n \"engagement_value\": 123,\n \"engagement_start_date\": \"<string>\",\n \"engagement_end_date\": \"<string>\",\n \"added_to_job_start_date\": \"<string>\",\n \"added_to_job_end_date\": \"<string>\",\n \"locations_included\": [\n {\n \"value\": \"<string>\",\n \"label\": \"<string>\",\n \"lat\": 123,\n \"lng\": 123,\n \"bounds\": {\n \"south\": 123,\n \"west\": 123,\n \"north\": 123,\n \"east\": 123\n }\n }\n ],\n \"locations_excluded\": [\n {\n \"value\": \"<string>\",\n \"label\": \"<string>\",\n \"lat\": 123,\n \"lng\": 123,\n \"bounds\": {\n \"south\": 123,\n \"west\": 123,\n \"north\": 123,\n \"east\": 123\n }\n }\n ],\n \"select_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"values\": [],\n \"excluded_values\": [],\n \"require_all\": false,\n \"include_empty\": false\n }\n ],\n \"numeric_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"min\": 123,\n \"max\": 123,\n \"include_empty\": false\n }\n ],\n \"date_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"start_date\": \"<string>\",\n \"end_date\": \"<string>\",\n \"include_empty\": false\n }\n ],\n \"team_member_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"values\": [],\n \"excluded_values\": [],\n \"require_all\": false,\n \"include_empty\": false\n }\n ],\n \"created_at_gte\": \"<string>\",\n \"created_at_lte\": \"<string>\",\n \"updated_at_gte\": \"<string>\",\n \"updated_at_lte\": \"<string>\",\n \"current_company_attribute_filters\": {\n \"select_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"values\": [],\n \"excluded_values\": [],\n \"require_all\": false,\n \"include_empty\": false\n }\n ],\n \"numeric_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"min\": 123,\n \"max\": 123,\n \"include_empty\": false\n }\n ],\n \"date_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"start_date\": \"<string>\",\n \"end_date\": \"<string>\",\n \"include_empty\": false\n }\n ],\n \"team_member_attribute_filters\": [\n {\n \"attribute_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"values\": [],\n \"excluded_values\": [],\n \"require_all\": false,\n \"include_empty\": false\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "John Doe",
"linkedin_public_id": "johndoe",
"first_name": "John",
"last_name": "Doe",
"current_job_title": "Software Engineer",
"current_company_name": "Tech Corp",
"current_company_id": "456e7890-e12b-34d5-a678-901234567890",
"external_source_id": null,
"created_at": "2024-01-15T10:30:00.000Z",
"updated_at": "2024-06-20T14:45:00.000Z",
"image_url": "https://media.samplecdn.com/dms/image/example.jpg",
"location": "San Francisco, CA",
"latitude": 37.7749,
"longitude": -122.4194,
"date_of_last_engagement": "2024-06-18T09:00:00.000Z",
"last_activity_type": "email",
"do_not_contact": false,
"do_not_contact_reason": null,
"owner_id": null,
"emails": [
{
"contact_data_type": "work",
"value": "john@techcorp.com"
}
],
"phones": [
{
"contact_data_type": "mobile",
"value": "+1-555-0123"
}
],
"work_experience": [
{
"company_name": "Tech Corp",
"company_linkedin_url": "https://www.linkedin.com/company/techcorp",
"company_linkedin_id": 12345678,
"company_id": "456e7890-e12b-34d5-a678-901234567890",
"duration_in_months": 36,
"positions": [
{
"title": "Software Engineer",
"start_date": "2022-01-01",
"end_date": null,
"duration_in_months": 36,
"description": "Full-stack development",
"location": "San Francisco, CA",
"position_type": "Full-time"
}
]
}
],
"education_experience": [
{
"company_name": "Stanford University",
"start_date": "2016-09-01",
"end_date": "2020-06-01",
"description": null,
"degree": "B.S. Computer Science",
"company_linkedin_url": "https://www.linkedin.com/school/stanford",
"company_linkedin_id": 1234,
"company_id": null
}
],
"certifications": [
{
"name": "AWS Solutions Architect",
"credential_id": "AWS-SA-001",
"start_date": "2023-06-01",
"end_date": "2026-06-01",
"company_name": "Amazon Web Services",
"company_linkedin_url": null,
"company_linkedin_id": null,
"company_id": null
}
],
"candidates": [
{
"candidate_id": "789e0123-e45f-67a8-b901-234567890123",
"job_name": "Senior Software Engineer",
"job_id": "345e6789-e01b-23c4-d567-890123456789",
"job_client_company_name": "StartupXYZ",
"current_pipeline_stage_name": "Technical Interview",
"current_pipeline_stage_id": "567e8901-e23c-45d6-e789-012345678901",
"is_archived": false,
"created_at": "2024-01-12T14:30:00Z",
"sourced_by": "234e5678-e90a-12b3-c456-789012345678",
"owner_id": null
}
],
"custom_fields": [
{
"attribute_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"attribute_name": "Seniority Level",
"data_type": "single-select",
"value": null,
"tag": {
"id": "f1e2d3c4-b5a6-7890-abcd-ef1234567890",
"name": "Senior"
},
"team_member": null
},
{
"attribute_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"attribute_name": "Years of Experience",
"data_type": "number",
"value": 8,
"tag": null,
"team_member": null
}
],
"activities": [
{
"id": "fff66666-0000-1111-2222-333333336666",
"activity_type": "pipeline_status",
"created_at": "2024-01-15T10:00:00Z",
"updated_at": "2024-01-15T10:00:00Z",
"activity_content": "Moved to Technical Interview",
"team_member": {
"id": "234e5678-e90a-12b3-c456-789012345678",
"name": "Jane Smith"
},
"job": {
"id": "345e6789-e01b-23c4-d567-890123456789",
"title": "Senior Software Engineer",
"company_name": "StartupXYZ"
},
"pipeline_status_details": {
"stage_name": "Technical Interview",
"is_rejection_stage": false,
"entered_at": "2024-01-15T10:00:00Z",
"exited_at": null,
"reason_text": null
}
},
{
"id": "901e2345-e67f-89a0-b123-456789012345",
"activity_type": "secondary_note",
"created_at": "2024-01-14T16:00:00Z",
"updated_at": "2024-01-14T16:45:00Z",
"activity_content": "Great initial call. Strong system design skills.",
"team_member": {
"id": "234e5678-e90a-12b3-c456-789012345678",
"name": "Jane Smith"
},
"job": {
"id": "345e6789-e01b-23c4-d567-890123456789",
"title": "Senior Software Engineer",
"company_name": "StartupXYZ"
}
},
{
"id": "902e3456-f78a-90b1-c234-567890123456",
"activity_type": "email",
"created_at": "2024-01-13T11:00:00Z",
"updated_at": "2024-01-13T11:00:00Z",
"activity_content": "Hi John, following up on our conversation...",
"team_member": {
"id": "234e5678-e90a-12b3-c456-789012345678",
"name": "Jane Smith"
},
"job": {
"id": "345e6789-e01b-23c4-d567-890123456789",
"title": "Senior Software Engineer",
"company_name": "StartupXYZ"
},
"email_details": {
"subject": "Following up — Senior SWE role",
"from_email": "jane@startup.xyz",
"to_email": "john@techcorp.com",
"status": "sent"
}
}
],
"compensation": [
{
"id": "678e9012-e34d-56f7-a890-123456789012",
"compensation_type": "actual",
"currency_code": "USD",
"current_compensation_base": 180000,
"current_compensation_bonus": 20000,
"equity_percent": null,
"equity_amount": 50000,
"compensation_year": 2024,
"total_estimated_compensation": 250000,
"note": "Current package at Tech Corp",
"job_id": null,
"job_name": null,
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}
],
"related_people": [
{
"relation_id": "rel-1111-2222-3333-444444444444",
"person_id": "567e8901-e23c-45d6-e789-012345678901",
"name": "Jane Smith",
"current_job_title": "Engineering Manager",
"linkedin_public_id": "janesmith",
"current_company_name": "Tech Corp",
"current_company_id": "456e7890-e12b-34d5-a678-901234567890",
"relation_type": "colleague",
"note": "Worked together on Platform team",
"direction": "outgoing",
"created_at": "2024-01-05T10:00:00Z"
}
],
"offers": [
{
"id": "offer-1111-2222-3333-444444444444",
"job_id": "345e6789-e01b-23c4-d567-890123456789",
"job_name": "Senior Software Engineer",
"job_company_name": "StartupXYZ",
"candidate_id": "789e0123-e45f-67a8-b901-234567890123",
"status": {
"id": "status-1111",
"name": "Extended",
"color": "#22c55e"
},
"extended_date": "2024-02-01T00:00:00Z",
"accepted_date": null,
"candidate_start_date": "2024-03-01T00:00:00Z",
"compensation_currency": "USD",
"compensation_base": 200000,
"compensation_bonus": 30000,
"bonus_type": "fixed",
"annual_equity_grant_percent": null,
"annual_equity_grant_amount": 50000,
"initial_equity_grant_percent": null,
"initial_equity_grant_amount": 100000,
"relocation_bonus": 10000,
"total_estimated_compensation": 290000,
"note": "Competitive offer with strong equity component",
"created_at": "2024-02-01T00:00:00Z",
"updated_at": "2024-02-01T00:00:00Z"
}
]
}
],
"meta": {
"total": 100,
"offset": 0,
"limit": 20
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}Authorizations
Authenticate with a Bearer token: API key, OAuth token, or session token.
Body
Records to skip for pagination. Defaults to 0.
x >= 0Max records to return (1–100). Defaults to 100.
1 <= x <= 100Sort column. Values: name, created_at, updated_at, current_job_title, company, location, date_of_last_engagement, person_owner, last_activity_type, contact_email. Job-context columns (require job_id or single job_ids_included): pipeline_stage, stage_date, added_to_job_at, rating, rating_note, candidate_owner. Custom field sorting: custom_<attribute_id>. Defaults to created_at.
"created_at"
Sort direction. Defaults to desc (newest first).
asc, desc Filter by exact email address match.
Filter by name (partial, case-insensitive).
Filter by phone number. Tiered matching: exact → normalized → last-7-digits.
Filter by LinkedIn profile URL. Must be a valid LinkedIn profile URL (https://www.linkedin.com/in/...)
^https?:\/\/(?:[a-z]{2}\.)?(?:www\.)?linkedin\.com\/in\/[^?#\s]+\/?(?:[?#][^\s]*)?$AI semantic search query (min 5 chars). Searches profile text via vector embeddings.
5Sections to embed in each person record. Values: work_experience, education_experience, certifications, candidates, custom_fields, activities, compensation, related_people, offers. Omit for base fields only. Pass empty array [] for base fields explicitly. For API-key callers, unavailable requested sections are omitted: activities requires notes:read, candidates requires candidates:read, and compensation and offers require compensation:read.
work_experience, education_experience, certifications, candidates, custom_fields, activities, compensation, related_people, offers Full-text keyword search across profile data.
Single job UUID to scope results to candidates in this job. Enables job-context sort columns (pipeline_stage, stage_date, etc.). Get job IDs from POST /v1/jobs/search. For multi-job filtering, use job_ids_included.
Only include candidates from these jobs. Get IDs from POST /v1/jobs/search.
Exclude candidates from these jobs.
When true, only return persons who are candidates in at least one of job_ids_included.
Exclude candidates from archived jobs. Defaults to true.
Include persons whose current_job_title partially matches any of these strings.
Exclude persons whose current_job_title matches any of these strings.
Include persons in jobs with these department UUIDs.
Exclude persons in jobs with these department UUIDs.
Include persons currently at these companies. Get IDs from GET /v1/companies.
Exclude persons currently at these companies.
Include persons who previously worked at these companies.
Exclude persons who previously worked at these companies.
Include persons currently in these pipeline stages. Get stage IDs from GET /v1/jobs/{id} → pipeline_stages.
Exclude persons currently in these pipeline stages.
Include persons who were ever in these stages (historical).
Exclude persons who were ever in these stages (historical).
Filter by current pipeline stage within a specific job context. Stage IDs from GET /v1/jobs/{id} → pipeline_stages.
Exclude these pipeline stages within a specific job context.
Include persons with activities of these types (e.g. "email", "secondary_note").
Exclude persons with activities of these types.
Filter by keywords found in activity content text.
Include persons owned by these team members. Get IDs from GET /v1/team-members.
Exclude persons owned by these team members.
Include persons whose candidate record is owned by these team members.
Exclude persons whose candidate record is owned by these team members.
Filter by team members who sourced the candidate. Get IDs from GET /v1/team-members.
When true, also include candidates with no source assigned.
Include persons in these saved lists.
Exclude persons in these saved lists.
When true, exclude persons who are client contacts.
"has_email" returns only persons with at least one email; "missing_email" returns only persons with no email.
has_email, missing_email Engagement recency filter type.
engaged_within, not_engaged_within, custom_range, never_engaged Numeric value for engagement window (e.g. 30 for "30 days").
Time unit for engagement_value.
days, months, years Start of custom engagement date range (ISO 8601).
End of custom engagement date range (ISO 8601).
Only include candidates added to a job after this date (ISO 8601).
Only include candidates added to a job before this date (ISO 8601).
Include persons within these geographic bounding boxes.
Show child attributes
Show child attributes
Exclude persons within these geographic bounding boxes.
Show child attributes
Show child attributes
Filter by select/multi-select custom fields. Get attribute_id and tag IDs from GET /v1/custom-fields/persons.
Show child attributes
Show child attributes
Filter by numeric custom fields (min/max range). Get attribute_id from GET /v1/custom-fields/persons.
Show child attributes
Show child attributes
Filter by date custom fields (date range). Get attribute_id from GET /v1/custom-fields/persons.
Show child attributes
Show child attributes
Filter by team-member custom fields. Get attribute_id from GET /v1/custom-fields/persons, team member IDs from GET /v1/team-members.
Show child attributes
Show child attributes
Only include persons created on or after this date (ISO 8601).
Only include persons created on or before this date (ISO 8601).
Only include persons updated on or after this date (ISO 8601).
Only include persons updated on or before this date (ISO 8601).
Filter by company-level custom attributes on the person's current employer. Get attribute_id from GET /v1/custom-fields/companies.
Show child attributes
Show child attributes
Was this page helpful?