curl --request POST \
--url https://api.getoneprofile.ai/find-leads/assistant/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"message": "<string>",
"companies": {
"company_type": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"domain": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"headcount": {
"gte": 1,
"lte": 1
},
"headcount_growth": {
"max_percent": 4950,
"min_percent": 4950,
"timespan": "12months"
},
"identifier": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"industry": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"keyword": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"linkedin_id": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"linkedin_slug": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"location": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"name": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"revenue": {
"gte": 1,
"lte": 1
}
},
"history": [
{
"content": "<string>"
}
],
"locale": "",
"people": {
"company_headcount": {
"gte": 1,
"lte": 1
},
"company_headcount_growth": {
"max_percent": 4950,
"min_percent": 4950,
"timespan": "12months"
},
"company_identifier": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"company_industry": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"company_keyword": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"company_location": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"company_name": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"company_revenue": {
"gte": 1,
"lte": 1
},
"company_type": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"company_website": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"first_name": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"job_title": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"keyword": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"languages": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"last_name": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"location": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"past_company_headcount": {
"gte": 1,
"lte": 1
},
"past_company_headcount_growth": {
"max_percent": 4950,
"min_percent": 4950,
"timespan": "12months"
},
"past_company_identifier": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"past_company_industry": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"past_company_keyword": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"past_company_location": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"past_company_name": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"past_company_revenue": {
"gte": 1,
"lte": 1
},
"past_company_type": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"past_company_website": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"past_job_title": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"profile_location": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"school": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"skills": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"work_location": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"years_in_current_company": {
"gte": 1,
"lte": 1
},
"years_of_experience": {
"gte": 1,
"lte": 1
}
},
"timezone": ""
}
'import requests
url = "https://api.getoneprofile.ai/find-leads/assistant/"
payload = {
"message": "<string>",
"companies": {
"company_type": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"domain": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"headcount": {
"gte": 1,
"lte": 1
},
"headcount_growth": {
"max_percent": 4950,
"min_percent": 4950,
"timespan": "12months"
},
"identifier": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"industry": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"keyword": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"linkedin_id": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"linkedin_slug": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"location": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"name": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"revenue": {
"gte": 1,
"lte": 1
}
},
"history": [{ "content": "<string>" }],
"locale": "",
"people": {
"company_headcount": {
"gte": 1,
"lte": 1
},
"company_headcount_growth": {
"max_percent": 4950,
"min_percent": 4950,
"timespan": "12months"
},
"company_identifier": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"company_industry": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"company_keyword": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"company_location": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"company_name": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"company_revenue": {
"gte": 1,
"lte": 1
},
"company_type": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"company_website": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"first_name": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"job_title": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"keyword": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"languages": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"last_name": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"location": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"past_company_headcount": {
"gte": 1,
"lte": 1
},
"past_company_headcount_growth": {
"max_percent": 4950,
"min_percent": 4950,
"timespan": "12months"
},
"past_company_identifier": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"past_company_industry": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"past_company_keyword": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"past_company_location": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"past_company_name": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"past_company_revenue": {
"gte": 1,
"lte": 1
},
"past_company_type": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"past_company_website": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"past_job_title": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"profile_location": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"school": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"skills": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"work_location": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"years_in_current_company": {
"gte": 1,
"lte": 1
},
"years_of_experience": {
"gte": 1,
"lte": 1
}
},
"timezone": ""
}
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({
message: '<string>',
companies: {
company_type: {exclude: ['<string>'], include: ['<string>']},
domain: {exclude: ['<string>'], include: ['<string>']},
headcount: {gte: 1, lte: 1},
headcount_growth: {max_percent: 4950, min_percent: 4950, timespan: '12months'},
identifier: {exclude: ['<string>'], include: ['<string>']},
industry: {exclude: ['<string>'], include: ['<string>']},
keyword: {exclude: ['<string>'], include: ['<string>']},
linkedin_id: {exclude: ['<string>'], include: ['<string>']},
linkedin_slug: {exclude: ['<string>'], include: ['<string>']},
location: {exclude: ['<string>'], include: ['<string>']},
name: {exclude: ['<string>'], include: ['<string>']},
revenue: {gte: 1, lte: 1}
},
history: [{content: '<string>'}],
locale: '',
people: {
company_headcount: {gte: 1, lte: 1},
company_headcount_growth: {max_percent: 4950, min_percent: 4950, timespan: '12months'},
company_identifier: {exclude: ['<string>'], include: ['<string>']},
company_industry: {exclude: ['<string>'], include: ['<string>']},
company_keyword: {exclude: ['<string>'], include: ['<string>']},
company_location: {exclude: ['<string>'], include: ['<string>']},
company_name: {exclude: ['<string>'], include: ['<string>']},
company_revenue: {gte: 1, lte: 1},
company_type: {exclude: ['<string>'], include: ['<string>']},
company_website: {exclude: ['<string>'], include: ['<string>']},
first_name: {exclude: ['<string>'], include: ['<string>']},
job_title: {exclude: ['<string>'], include: ['<string>']},
keyword: {exclude: ['<string>'], include: ['<string>']},
languages: {exclude: ['<string>'], include: ['<string>']},
last_name: {exclude: ['<string>'], include: ['<string>']},
location: {exclude: ['<string>'], include: ['<string>']},
past_company_headcount: {gte: 1, lte: 1},
past_company_headcount_growth: {max_percent: 4950, min_percent: 4950, timespan: '12months'},
past_company_identifier: {exclude: ['<string>'], include: ['<string>']},
past_company_industry: {exclude: ['<string>'], include: ['<string>']},
past_company_keyword: {exclude: ['<string>'], include: ['<string>']},
past_company_location: {exclude: ['<string>'], include: ['<string>']},
past_company_name: {exclude: ['<string>'], include: ['<string>']},
past_company_revenue: {gte: 1, lte: 1},
past_company_type: {exclude: ['<string>'], include: ['<string>']},
past_company_website: {exclude: ['<string>'], include: ['<string>']},
past_job_title: {exclude: ['<string>'], include: ['<string>']},
profile_location: {exclude: ['<string>'], include: ['<string>']},
school: {exclude: ['<string>'], include: ['<string>']},
skills: {exclude: ['<string>'], include: ['<string>']},
work_location: {exclude: ['<string>'], include: ['<string>']},
years_in_current_company: {gte: 1, lte: 1},
years_of_experience: {gte: 1, lte: 1}
},
timezone: ''
})
};
fetch('https://api.getoneprofile.ai/find-leads/assistant/', 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.getoneprofile.ai/find-leads/assistant/",
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([
'message' => '<string>',
'companies' => [
'company_type' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'domain' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'headcount' => [
'gte' => 1,
'lte' => 1
],
'headcount_growth' => [
'max_percent' => 4950,
'min_percent' => 4950,
'timespan' => '12months'
],
'identifier' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'industry' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'keyword' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'linkedin_id' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'linkedin_slug' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'location' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'name' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'revenue' => [
'gte' => 1,
'lte' => 1
]
],
'history' => [
[
'content' => '<string>'
]
],
'locale' => '',
'people' => [
'company_headcount' => [
'gte' => 1,
'lte' => 1
],
'company_headcount_growth' => [
'max_percent' => 4950,
'min_percent' => 4950,
'timespan' => '12months'
],
'company_identifier' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'company_industry' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'company_keyword' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'company_location' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'company_name' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'company_revenue' => [
'gte' => 1,
'lte' => 1
],
'company_type' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'company_website' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'first_name' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'job_title' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'keyword' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'languages' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'last_name' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'location' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'past_company_headcount' => [
'gte' => 1,
'lte' => 1
],
'past_company_headcount_growth' => [
'max_percent' => 4950,
'min_percent' => 4950,
'timespan' => '12months'
],
'past_company_identifier' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'past_company_industry' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'past_company_keyword' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'past_company_location' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'past_company_name' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'past_company_revenue' => [
'gte' => 1,
'lte' => 1
],
'past_company_type' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'past_company_website' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'past_job_title' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'profile_location' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'school' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'skills' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'work_location' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'years_in_current_company' => [
'gte' => 1,
'lte' => 1
],
'years_of_experience' => [
'gte' => 1,
'lte' => 1
]
],
'timezone' => ''
]),
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.getoneprofile.ai/find-leads/assistant/"
payload := strings.NewReader("{\n \"message\": \"<string>\",\n \"companies\": {\n \"company_type\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"domain\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"headcount\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"headcount_growth\": {\n \"max_percent\": 4950,\n \"min_percent\": 4950,\n \"timespan\": \"12months\"\n },\n \"identifier\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"industry\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"linkedin_id\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"linkedin_slug\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"revenue\": {\n \"gte\": 1,\n \"lte\": 1\n }\n },\n \"history\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"locale\": \"\",\n \"people\": {\n \"company_headcount\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"company_headcount_growth\": {\n \"max_percent\": 4950,\n \"min_percent\": 4950,\n \"timespan\": \"12months\"\n },\n \"company_identifier\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_industry\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_revenue\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"company_type\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_website\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"first_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"job_title\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"languages\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"last_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_headcount\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"past_company_headcount_growth\": {\n \"max_percent\": 4950,\n \"min_percent\": 4950,\n \"timespan\": \"12months\"\n },\n \"past_company_identifier\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_industry\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_revenue\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"past_company_type\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_website\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_job_title\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"profile_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"school\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"skills\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"work_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"years_in_current_company\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"years_of_experience\": {\n \"gte\": 1,\n \"lte\": 1\n }\n },\n \"timezone\": \"\"\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.getoneprofile.ai/find-leads/assistant/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"message\": \"<string>\",\n \"companies\": {\n \"company_type\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"domain\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"headcount\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"headcount_growth\": {\n \"max_percent\": 4950,\n \"min_percent\": 4950,\n \"timespan\": \"12months\"\n },\n \"identifier\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"industry\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"linkedin_id\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"linkedin_slug\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"revenue\": {\n \"gte\": 1,\n \"lte\": 1\n }\n },\n \"history\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"locale\": \"\",\n \"people\": {\n \"company_headcount\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"company_headcount_growth\": {\n \"max_percent\": 4950,\n \"min_percent\": 4950,\n \"timespan\": \"12months\"\n },\n \"company_identifier\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_industry\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_revenue\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"company_type\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_website\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"first_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"job_title\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"languages\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"last_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_headcount\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"past_company_headcount_growth\": {\n \"max_percent\": 4950,\n \"min_percent\": 4950,\n \"timespan\": \"12months\"\n },\n \"past_company_identifier\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_industry\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_revenue\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"past_company_type\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_website\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_job_title\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"profile_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"school\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"skills\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"work_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"years_in_current_company\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"years_of_experience\": {\n \"gte\": 1,\n \"lte\": 1\n }\n },\n \"timezone\": \"\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/find-leads/assistant/")
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 \"message\": \"<string>\",\n \"companies\": {\n \"company_type\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"domain\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"headcount\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"headcount_growth\": {\n \"max_percent\": 4950,\n \"min_percent\": 4950,\n \"timespan\": \"12months\"\n },\n \"identifier\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"industry\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"linkedin_id\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"linkedin_slug\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"revenue\": {\n \"gte\": 1,\n \"lte\": 1\n }\n },\n \"history\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"locale\": \"\",\n \"people\": {\n \"company_headcount\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"company_headcount_growth\": {\n \"max_percent\": 4950,\n \"min_percent\": 4950,\n \"timespan\": \"12months\"\n },\n \"company_identifier\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_industry\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_revenue\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"company_type\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_website\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"first_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"job_title\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"languages\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"last_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_headcount\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"past_company_headcount_growth\": {\n \"max_percent\": 4950,\n \"min_percent\": 4950,\n \"timespan\": \"12months\"\n },\n \"past_company_identifier\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_industry\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_revenue\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"past_company_type\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_website\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_job_title\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"profile_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"school\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"skills\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"work_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"years_in_current_company\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"years_of_experience\": {\n \"gte\": 1,\n \"lte\": 1\n }\n },\n \"timezone\": \"\"\n}"
response = http.request(request)
puts response.read_body{
"explanation": "<string>",
"query": {},
"record_type": "people",
"alternative": {
"label": "<string>",
"query": {}
},
"question": "<string>",
"question_options": [
"<string>"
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Refine a lead search conversationally
Send the builder’s current filters and a natural-language request; the assistant returns the complete new filter state and explains what it changed. It never approximates: requests the filter vocabulary cannot express are declined in the explanation.
curl --request POST \
--url https://api.getoneprofile.ai/find-leads/assistant/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"message": "<string>",
"companies": {
"company_type": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"domain": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"headcount": {
"gte": 1,
"lte": 1
},
"headcount_growth": {
"max_percent": 4950,
"min_percent": 4950,
"timespan": "12months"
},
"identifier": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"industry": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"keyword": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"linkedin_id": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"linkedin_slug": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"location": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"name": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"revenue": {
"gte": 1,
"lte": 1
}
},
"history": [
{
"content": "<string>"
}
],
"locale": "",
"people": {
"company_headcount": {
"gte": 1,
"lte": 1
},
"company_headcount_growth": {
"max_percent": 4950,
"min_percent": 4950,
"timespan": "12months"
},
"company_identifier": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"company_industry": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"company_keyword": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"company_location": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"company_name": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"company_revenue": {
"gte": 1,
"lte": 1
},
"company_type": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"company_website": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"first_name": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"job_title": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"keyword": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"languages": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"last_name": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"location": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"past_company_headcount": {
"gte": 1,
"lte": 1
},
"past_company_headcount_growth": {
"max_percent": 4950,
"min_percent": 4950,
"timespan": "12months"
},
"past_company_identifier": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"past_company_industry": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"past_company_keyword": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"past_company_location": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"past_company_name": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"past_company_revenue": {
"gte": 1,
"lte": 1
},
"past_company_type": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"past_company_website": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"past_job_title": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"profile_location": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"school": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"skills": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"work_location": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"years_in_current_company": {
"gte": 1,
"lte": 1
},
"years_of_experience": {
"gte": 1,
"lte": 1
}
},
"timezone": ""
}
'import requests
url = "https://api.getoneprofile.ai/find-leads/assistant/"
payload = {
"message": "<string>",
"companies": {
"company_type": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"domain": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"headcount": {
"gte": 1,
"lte": 1
},
"headcount_growth": {
"max_percent": 4950,
"min_percent": 4950,
"timespan": "12months"
},
"identifier": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"industry": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"keyword": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"linkedin_id": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"linkedin_slug": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"location": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"name": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"revenue": {
"gte": 1,
"lte": 1
}
},
"history": [{ "content": "<string>" }],
"locale": "",
"people": {
"company_headcount": {
"gte": 1,
"lte": 1
},
"company_headcount_growth": {
"max_percent": 4950,
"min_percent": 4950,
"timespan": "12months"
},
"company_identifier": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"company_industry": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"company_keyword": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"company_location": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"company_name": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"company_revenue": {
"gte": 1,
"lte": 1
},
"company_type": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"company_website": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"first_name": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"job_title": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"keyword": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"languages": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"last_name": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"location": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"past_company_headcount": {
"gte": 1,
"lte": 1
},
"past_company_headcount_growth": {
"max_percent": 4950,
"min_percent": 4950,
"timespan": "12months"
},
"past_company_identifier": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"past_company_industry": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"past_company_keyword": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"past_company_location": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"past_company_name": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"past_company_revenue": {
"gte": 1,
"lte": 1
},
"past_company_type": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"past_company_website": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"past_job_title": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"profile_location": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"school": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"skills": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"work_location": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"years_in_current_company": {
"gte": 1,
"lte": 1
},
"years_of_experience": {
"gte": 1,
"lte": 1
}
},
"timezone": ""
}
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({
message: '<string>',
companies: {
company_type: {exclude: ['<string>'], include: ['<string>']},
domain: {exclude: ['<string>'], include: ['<string>']},
headcount: {gte: 1, lte: 1},
headcount_growth: {max_percent: 4950, min_percent: 4950, timespan: '12months'},
identifier: {exclude: ['<string>'], include: ['<string>']},
industry: {exclude: ['<string>'], include: ['<string>']},
keyword: {exclude: ['<string>'], include: ['<string>']},
linkedin_id: {exclude: ['<string>'], include: ['<string>']},
linkedin_slug: {exclude: ['<string>'], include: ['<string>']},
location: {exclude: ['<string>'], include: ['<string>']},
name: {exclude: ['<string>'], include: ['<string>']},
revenue: {gte: 1, lte: 1}
},
history: [{content: '<string>'}],
locale: '',
people: {
company_headcount: {gte: 1, lte: 1},
company_headcount_growth: {max_percent: 4950, min_percent: 4950, timespan: '12months'},
company_identifier: {exclude: ['<string>'], include: ['<string>']},
company_industry: {exclude: ['<string>'], include: ['<string>']},
company_keyword: {exclude: ['<string>'], include: ['<string>']},
company_location: {exclude: ['<string>'], include: ['<string>']},
company_name: {exclude: ['<string>'], include: ['<string>']},
company_revenue: {gte: 1, lte: 1},
company_type: {exclude: ['<string>'], include: ['<string>']},
company_website: {exclude: ['<string>'], include: ['<string>']},
first_name: {exclude: ['<string>'], include: ['<string>']},
job_title: {exclude: ['<string>'], include: ['<string>']},
keyword: {exclude: ['<string>'], include: ['<string>']},
languages: {exclude: ['<string>'], include: ['<string>']},
last_name: {exclude: ['<string>'], include: ['<string>']},
location: {exclude: ['<string>'], include: ['<string>']},
past_company_headcount: {gte: 1, lte: 1},
past_company_headcount_growth: {max_percent: 4950, min_percent: 4950, timespan: '12months'},
past_company_identifier: {exclude: ['<string>'], include: ['<string>']},
past_company_industry: {exclude: ['<string>'], include: ['<string>']},
past_company_keyword: {exclude: ['<string>'], include: ['<string>']},
past_company_location: {exclude: ['<string>'], include: ['<string>']},
past_company_name: {exclude: ['<string>'], include: ['<string>']},
past_company_revenue: {gte: 1, lte: 1},
past_company_type: {exclude: ['<string>'], include: ['<string>']},
past_company_website: {exclude: ['<string>'], include: ['<string>']},
past_job_title: {exclude: ['<string>'], include: ['<string>']},
profile_location: {exclude: ['<string>'], include: ['<string>']},
school: {exclude: ['<string>'], include: ['<string>']},
skills: {exclude: ['<string>'], include: ['<string>']},
work_location: {exclude: ['<string>'], include: ['<string>']},
years_in_current_company: {gte: 1, lte: 1},
years_of_experience: {gte: 1, lte: 1}
},
timezone: ''
})
};
fetch('https://api.getoneprofile.ai/find-leads/assistant/', 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.getoneprofile.ai/find-leads/assistant/",
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([
'message' => '<string>',
'companies' => [
'company_type' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'domain' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'headcount' => [
'gte' => 1,
'lte' => 1
],
'headcount_growth' => [
'max_percent' => 4950,
'min_percent' => 4950,
'timespan' => '12months'
],
'identifier' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'industry' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'keyword' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'linkedin_id' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'linkedin_slug' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'location' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'name' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'revenue' => [
'gte' => 1,
'lte' => 1
]
],
'history' => [
[
'content' => '<string>'
]
],
'locale' => '',
'people' => [
'company_headcount' => [
'gte' => 1,
'lte' => 1
],
'company_headcount_growth' => [
'max_percent' => 4950,
'min_percent' => 4950,
'timespan' => '12months'
],
'company_identifier' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'company_industry' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'company_keyword' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'company_location' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'company_name' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'company_revenue' => [
'gte' => 1,
'lte' => 1
],
'company_type' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'company_website' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'first_name' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'job_title' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'keyword' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'languages' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'last_name' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'location' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'past_company_headcount' => [
'gte' => 1,
'lte' => 1
],
'past_company_headcount_growth' => [
'max_percent' => 4950,
'min_percent' => 4950,
'timespan' => '12months'
],
'past_company_identifier' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'past_company_industry' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'past_company_keyword' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'past_company_location' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'past_company_name' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'past_company_revenue' => [
'gte' => 1,
'lte' => 1
],
'past_company_type' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'past_company_website' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'past_job_title' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'profile_location' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'school' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'skills' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'work_location' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'years_in_current_company' => [
'gte' => 1,
'lte' => 1
],
'years_of_experience' => [
'gte' => 1,
'lte' => 1
]
],
'timezone' => ''
]),
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.getoneprofile.ai/find-leads/assistant/"
payload := strings.NewReader("{\n \"message\": \"<string>\",\n \"companies\": {\n \"company_type\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"domain\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"headcount\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"headcount_growth\": {\n \"max_percent\": 4950,\n \"min_percent\": 4950,\n \"timespan\": \"12months\"\n },\n \"identifier\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"industry\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"linkedin_id\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"linkedin_slug\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"revenue\": {\n \"gte\": 1,\n \"lte\": 1\n }\n },\n \"history\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"locale\": \"\",\n \"people\": {\n \"company_headcount\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"company_headcount_growth\": {\n \"max_percent\": 4950,\n \"min_percent\": 4950,\n \"timespan\": \"12months\"\n },\n \"company_identifier\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_industry\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_revenue\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"company_type\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_website\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"first_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"job_title\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"languages\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"last_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_headcount\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"past_company_headcount_growth\": {\n \"max_percent\": 4950,\n \"min_percent\": 4950,\n \"timespan\": \"12months\"\n },\n \"past_company_identifier\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_industry\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_revenue\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"past_company_type\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_website\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_job_title\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"profile_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"school\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"skills\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"work_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"years_in_current_company\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"years_of_experience\": {\n \"gte\": 1,\n \"lte\": 1\n }\n },\n \"timezone\": \"\"\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.getoneprofile.ai/find-leads/assistant/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"message\": \"<string>\",\n \"companies\": {\n \"company_type\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"domain\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"headcount\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"headcount_growth\": {\n \"max_percent\": 4950,\n \"min_percent\": 4950,\n \"timespan\": \"12months\"\n },\n \"identifier\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"industry\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"linkedin_id\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"linkedin_slug\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"revenue\": {\n \"gte\": 1,\n \"lte\": 1\n }\n },\n \"history\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"locale\": \"\",\n \"people\": {\n \"company_headcount\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"company_headcount_growth\": {\n \"max_percent\": 4950,\n \"min_percent\": 4950,\n \"timespan\": \"12months\"\n },\n \"company_identifier\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_industry\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_revenue\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"company_type\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_website\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"first_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"job_title\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"languages\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"last_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_headcount\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"past_company_headcount_growth\": {\n \"max_percent\": 4950,\n \"min_percent\": 4950,\n \"timespan\": \"12months\"\n },\n \"past_company_identifier\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_industry\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_revenue\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"past_company_type\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_website\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_job_title\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"profile_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"school\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"skills\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"work_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"years_in_current_company\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"years_of_experience\": {\n \"gte\": 1,\n \"lte\": 1\n }\n },\n \"timezone\": \"\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/find-leads/assistant/")
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 \"message\": \"<string>\",\n \"companies\": {\n \"company_type\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"domain\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"headcount\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"headcount_growth\": {\n \"max_percent\": 4950,\n \"min_percent\": 4950,\n \"timespan\": \"12months\"\n },\n \"identifier\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"industry\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"linkedin_id\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"linkedin_slug\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"revenue\": {\n \"gte\": 1,\n \"lte\": 1\n }\n },\n \"history\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"locale\": \"\",\n \"people\": {\n \"company_headcount\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"company_headcount_growth\": {\n \"max_percent\": 4950,\n \"min_percent\": 4950,\n \"timespan\": \"12months\"\n },\n \"company_identifier\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_industry\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_revenue\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"company_type\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_website\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"first_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"job_title\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"languages\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"last_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_headcount\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"past_company_headcount_growth\": {\n \"max_percent\": 4950,\n \"min_percent\": 4950,\n \"timespan\": \"12months\"\n },\n \"past_company_identifier\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_industry\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_revenue\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"past_company_type\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_website\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_job_title\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"profile_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"school\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"skills\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"work_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"years_in_current_company\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"years_of_experience\": {\n \"gte\": 1,\n \"lte\": 1\n }\n },\n \"timezone\": \"\"\n}"
response = http.request(request)
puts response.read_body{
"explanation": "<string>",
"query": {},
"record_type": "people",
"alternative": {
"label": "<string>",
"query": {}
},
"question": "<string>",
"question_options": [
"<string>"
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
The builder's current state plus the user's next request.
1 - 4000Which side of the lead database a search runs against.
people, companies Filters for a company search.
Show child attributes
Show child attributes
40Show child attributes
Show child attributes
35Filters for a people search.
Show child attributes
Show child attributes
64Response
Successful Response
The assistant's answer: new filter state plus its explanation.
Which side of the lead database a search runs against.
people, companies The reading not chosen for an ambiguous ask, applied with one tap.
Show child attributes
Show child attributes
Was this page helpful?