curl --request POST \
--url https://app.manypi.com/api/leads/research \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"criteria": {
"description": "E-commerce agencies building Shopify stores for DTC brands",
"locations": [
"Germany",
"Austria"
],
"industries": [
"Marketing agency",
"E-commerce"
],
"company_size": "5-50 employees",
"titles": [
"Founder",
"Head of Growth"
],
"exclusions": [
"SEO-only agencies"
],
"required_fields": [
"email"
],
"extra_columns": [
{
"name": "Ecommerce platform",
"description": "Shopify, WooCommerce, custom or unknown"
}
],
"count": 25
}
}
'import requests
url = "https://app.manypi.com/api/leads/research"
payload = { "criteria": {
"description": "E-commerce agencies building Shopify stores for DTC brands",
"locations": ["Germany", "Austria"],
"industries": ["Marketing agency", "E-commerce"],
"company_size": "5-50 employees",
"titles": ["Founder", "Head of Growth"],
"exclusions": ["SEO-only agencies"],
"required_fields": ["email"],
"extra_columns": [
{
"name": "Ecommerce platform",
"description": "Shopify, WooCommerce, custom or unknown"
}
],
"count": 25
} }
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({
criteria: {
description: 'E-commerce agencies building Shopify stores for DTC brands',
locations: ['Germany', 'Austria'],
industries: ['Marketing agency', 'E-commerce'],
company_size: '5-50 employees',
titles: ['Founder', 'Head of Growth'],
exclusions: ['SEO-only agencies'],
required_fields: ['email'],
extra_columns: [
{
name: 'Ecommerce platform',
description: 'Shopify, WooCommerce, custom or unknown'
}
],
count: 25
}
})
};
fetch('https://app.manypi.com/api/leads/research', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.manypi.com/api/leads/research",
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([
'criteria' => [
'description' => 'E-commerce agencies building Shopify stores for DTC brands',
'locations' => [
'Germany',
'Austria'
],
'industries' => [
'Marketing agency',
'E-commerce'
],
'company_size' => '5-50 employees',
'titles' => [
'Founder',
'Head of Growth'
],
'exclusions' => [
'SEO-only agencies'
],
'required_fields' => [
'email'
],
'extra_columns' => [
[
'name' => 'Ecommerce platform',
'description' => 'Shopify, WooCommerce, custom or unknown'
]
],
'count' => 25
]
]),
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://app.manypi.com/api/leads/research"
payload := strings.NewReader("{\n \"criteria\": {\n \"description\": \"E-commerce agencies building Shopify stores for DTC brands\",\n \"locations\": [\n \"Germany\",\n \"Austria\"\n ],\n \"industries\": [\n \"Marketing agency\",\n \"E-commerce\"\n ],\n \"company_size\": \"5-50 employees\",\n \"titles\": [\n \"Founder\",\n \"Head of Growth\"\n ],\n \"exclusions\": [\n \"SEO-only agencies\"\n ],\n \"required_fields\": [\n \"email\"\n ],\n \"extra_columns\": [\n {\n \"name\": \"Ecommerce platform\",\n \"description\": \"Shopify, WooCommerce, custom or unknown\"\n }\n ],\n \"count\": 25\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://app.manypi.com/api/leads/research")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"criteria\": {\n \"description\": \"E-commerce agencies building Shopify stores for DTC brands\",\n \"locations\": [\n \"Germany\",\n \"Austria\"\n ],\n \"industries\": [\n \"Marketing agency\",\n \"E-commerce\"\n ],\n \"company_size\": \"5-50 employees\",\n \"titles\": [\n \"Founder\",\n \"Head of Growth\"\n ],\n \"exclusions\": [\n \"SEO-only agencies\"\n ],\n \"required_fields\": [\n \"email\"\n ],\n \"extra_columns\": [\n {\n \"name\": \"Ecommerce platform\",\n \"description\": \"Shopify, WooCommerce, custom or unknown\"\n }\n ],\n \"count\": 25\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.manypi.com/api/leads/research")
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 \"criteria\": {\n \"description\": \"E-commerce agencies building Shopify stores for DTC brands\",\n \"locations\": [\n \"Germany\",\n \"Austria\"\n ],\n \"industries\": [\n \"Marketing agency\",\n \"E-commerce\"\n ],\n \"company_size\": \"5-50 employees\",\n \"titles\": [\n \"Founder\",\n \"Head of Growth\"\n ],\n \"exclusions\": [\n \"SEO-only agencies\"\n ],\n \"required_fields\": [\n \"email\"\n ],\n \"extra_columns\": [\n {\n \"name\": \"Ecommerce platform\",\n \"description\": \"Shopify, WooCommerce, custom or unknown\"\n }\n ],\n \"count\": 25\n }\n}"
response = http.request(request)
puts response.read_body{
"run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "<string>",
"count": 123,
"profile": {},
"clamped": {
"requested": 123,
"allowed": 123,
"limit": 123
}
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Start a lead search
Launch the lead-generation agent against structured criteria, a saved search, or a set of seed leads (“find more like these”).
The run is asynchronous: poll GET /api/agents/runs with the returned conversation_id. The run may pause with a clarifying question — answer it with POST /api/agents/runs/{id}/reply and the same run continues.
count is clamped to the workspace’s remaining lead capacity; when that happens the response carries a clamped block. A full workspace returns 403 with code: "lead_limit".
Requires the agents permission.
curl --request POST \
--url https://app.manypi.com/api/leads/research \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"criteria": {
"description": "E-commerce agencies building Shopify stores for DTC brands",
"locations": [
"Germany",
"Austria"
],
"industries": [
"Marketing agency",
"E-commerce"
],
"company_size": "5-50 employees",
"titles": [
"Founder",
"Head of Growth"
],
"exclusions": [
"SEO-only agencies"
],
"required_fields": [
"email"
],
"extra_columns": [
{
"name": "Ecommerce platform",
"description": "Shopify, WooCommerce, custom or unknown"
}
],
"count": 25
}
}
'import requests
url = "https://app.manypi.com/api/leads/research"
payload = { "criteria": {
"description": "E-commerce agencies building Shopify stores for DTC brands",
"locations": ["Germany", "Austria"],
"industries": ["Marketing agency", "E-commerce"],
"company_size": "5-50 employees",
"titles": ["Founder", "Head of Growth"],
"exclusions": ["SEO-only agencies"],
"required_fields": ["email"],
"extra_columns": [
{
"name": "Ecommerce platform",
"description": "Shopify, WooCommerce, custom or unknown"
}
],
"count": 25
} }
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({
criteria: {
description: 'E-commerce agencies building Shopify stores for DTC brands',
locations: ['Germany', 'Austria'],
industries: ['Marketing agency', 'E-commerce'],
company_size: '5-50 employees',
titles: ['Founder', 'Head of Growth'],
exclusions: ['SEO-only agencies'],
required_fields: ['email'],
extra_columns: [
{
name: 'Ecommerce platform',
description: 'Shopify, WooCommerce, custom or unknown'
}
],
count: 25
}
})
};
fetch('https://app.manypi.com/api/leads/research', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.manypi.com/api/leads/research",
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([
'criteria' => [
'description' => 'E-commerce agencies building Shopify stores for DTC brands',
'locations' => [
'Germany',
'Austria'
],
'industries' => [
'Marketing agency',
'E-commerce'
],
'company_size' => '5-50 employees',
'titles' => [
'Founder',
'Head of Growth'
],
'exclusions' => [
'SEO-only agencies'
],
'required_fields' => [
'email'
],
'extra_columns' => [
[
'name' => 'Ecommerce platform',
'description' => 'Shopify, WooCommerce, custom or unknown'
]
],
'count' => 25
]
]),
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://app.manypi.com/api/leads/research"
payload := strings.NewReader("{\n \"criteria\": {\n \"description\": \"E-commerce agencies building Shopify stores for DTC brands\",\n \"locations\": [\n \"Germany\",\n \"Austria\"\n ],\n \"industries\": [\n \"Marketing agency\",\n \"E-commerce\"\n ],\n \"company_size\": \"5-50 employees\",\n \"titles\": [\n \"Founder\",\n \"Head of Growth\"\n ],\n \"exclusions\": [\n \"SEO-only agencies\"\n ],\n \"required_fields\": [\n \"email\"\n ],\n \"extra_columns\": [\n {\n \"name\": \"Ecommerce platform\",\n \"description\": \"Shopify, WooCommerce, custom or unknown\"\n }\n ],\n \"count\": 25\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://app.manypi.com/api/leads/research")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"criteria\": {\n \"description\": \"E-commerce agencies building Shopify stores for DTC brands\",\n \"locations\": [\n \"Germany\",\n \"Austria\"\n ],\n \"industries\": [\n \"Marketing agency\",\n \"E-commerce\"\n ],\n \"company_size\": \"5-50 employees\",\n \"titles\": [\n \"Founder\",\n \"Head of Growth\"\n ],\n \"exclusions\": [\n \"SEO-only agencies\"\n ],\n \"required_fields\": [\n \"email\"\n ],\n \"extra_columns\": [\n {\n \"name\": \"Ecommerce platform\",\n \"description\": \"Shopify, WooCommerce, custom or unknown\"\n }\n ],\n \"count\": 25\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.manypi.com/api/leads/research")
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 \"criteria\": {\n \"description\": \"E-commerce agencies building Shopify stores for DTC brands\",\n \"locations\": [\n \"Germany\",\n \"Austria\"\n ],\n \"industries\": [\n \"Marketing agency\",\n \"E-commerce\"\n ],\n \"company_size\": \"5-50 employees\",\n \"titles\": [\n \"Founder\",\n \"Head of Growth\"\n ],\n \"exclusions\": [\n \"SEO-only agencies\"\n ],\n \"required_fields\": [\n \"email\"\n ],\n \"extra_columns\": [\n {\n \"name\": \"Ecommerce platform\",\n \"description\": \"Shopify, WooCommerce, custom or unknown\"\n }\n ],\n \"count\": 25\n }\n}"
response = http.request(request)
puts response.read_body{
"run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "<string>",
"count": 123,
"profile": {},
"clamped": {
"requested": 123,
"allowed": 123,
"limit": 123
}
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Authorizations
A ManyPI API key (mpi_...) from Settings → API keys, or an OAuth 2.1 access token obtained through the MCP consent flow.
Body
The structured search. The description does most of the work; the rest is what the agent enforces.
Show child attributes
Show child attributes
Re-run a saved search. Its criteria are used unless criteria overrides them.
Seed the search from existing leads ("find similar").
50Persist as a reusable saved search.
120icp, similar 