Docs / Search
find_decision_makers
Find the people at one company by title, seniority and function, through a shared Sales Navigator seat.
This action can change or spend something, and when it does it happens right away. Read “Good to know” first. It is part of the Agent plan.
What you give it
| Input | What it is | Where to get it |
|---|---|---|
companyneeded | Text. Company name, e.g. "Stripe". Resolved to the LinkedIn company automatically. | You write it. |
titlesoptional | A list (text). Specific senior roles to target, e.g. ["VP of Sales","Head of Growth"]. Omit for the full decision-maker set (C-level/VP/Director/Founder). | You write it. |
senioritiesoptional | A list (text). Narrow by seniority level, e.g. ["CXO","VP","Director"] (owner/partner, cxo, vice_president, director, experienced_manager, entry_level_manager, strategic, senior, entry_level, in_training). | You write it. |
functionsoptional | A list (text). Narrow by job function/department, e.g. ["Sales","Marketing","Engineering"]. | You write it. |
locationsoptional | A list (text). Optional person locations to narrow to, e.g. ["United States"]. | You write it. |
limitoptional | A number, 1 to 100. Max people to return (1–100, default 15). | You write it. |
formatoptional | One of: table, csv. table (default) = rows for a table. csv = also return an export-ready CSV string. | You write it. |
confirmoptional | True or false. false (default) = cost estimate only. true = pull and charge after the user agreed. | You write it. |
Call it
curl -X POST https://api.heyreagent.com/v1/actions/find_decision_makers \
-H "Authorization: Bearer YOUR_KEY" \
-H "content-type: application/json" \
-d '{"company":"Stripe"}'The same call in JavaScript
const response = await fetch("https://api.heyreagent.com/v1/actions/find_decision_makers", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_KEY",
"content-type": "application/json",
},
body: JSON.stringify({
"company": "Stripe"
}),
});
const answer = await response.json();
console.log(answer);The same call in Python
import requests
response = requests.post(
"https://api.heyreagent.com/v1/actions/find_decision_makers",
headers={"Authorization": "Bearer YOUR_KEY"},
json={
"company": "Stripe",
},
)
print(response.json())The same call in n8n
Add an HTTP Request node and fill it in like this:
| Method | POST |
| URL | https://api.heyreagent.com/v1/actions/find_decision_makers |
| Send Headers | On. Name Authorization, Value Bearer YOUR_KEY |
| Send Body | On. Body Content Type JSON, Specify Body Using JSON, then paste the body below |
{
"company": "Stripe"
}Put your own key where it says YOUR_KEY. New here? Start with your first call.
What you get back
When it worked, the answer is { "ok": true, "result": { … } }. Inside result:
action | |
matchCount | |
estimatedCredits | |
creditsCharged | |
yourBalance | |
returned | |
leads |
A field that does not apply to an answer is left out, or is null.
When it did not work, the answer is { "ok": false, "error": "…", "message": "…" }. What each error means.
Good to know
- confirm false (the default) only previews: how many match and what it costs, no people. confirm true returns them and charges 0.02 credits a person.
- company is a NAME. A company id passed there is searched as words; to search by id use search_people_sales_navigator with companyIds.
- action is "preview", "blocked" or "results". leads, returned and creditsCharged are present only on "results". There is no next page.
In Claude or ChatGPT
Once connected, ask in your own words. The assistant sees this action as a tool with the same name, find_decision_makers, and the same inputs.