curl --request POST \
--url https://app.manypi.com/api/leads/validate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"lead_ids": [
"8f1c0e6a-1c3e-4f2a-9a4b-0f7a1e2b3c4d"
]
}
'import requests
url = "https://app.manypi.com/api/leads/validate"
payload = { "lead_ids": ["8f1c0e6a-1c3e-4f2a-9a4b-0f7a1e2b3c4d"] }
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({lead_ids: ['8f1c0e6a-1c3e-4f2a-9a4b-0f7a1e2b3c4d']})
};
fetch('https://app.manypi.com/api/leads/validate', 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/validate",
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([
'lead_ids' => [
'8f1c0e6a-1c3e-4f2a-9a4b-0f7a1e2b3c4d'
]
]),
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/validate"
payload := strings.NewReader("{\n \"lead_ids\": [\n \"8f1c0e6a-1c3e-4f2a-9a4b-0f7a1e2b3c4d\"\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/validate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"lead_ids\": [\n \"8f1c0e6a-1c3e-4f2a-9a4b-0f7a1e2b3c4d\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.manypi.com/api/leads/validate")
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 \"lead_ids\": [\n \"8f1c0e6a-1c3e-4f2a-9a4b-0f7a1e2b3c4d\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"job_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"total": 123,
"estimate": {
"billable": 123,
"free": 123
}
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Verify email addresses
Queue an SMTP mailbox probe for lead addresses, raw addresses, or both. Results are written back onto the leads as email_status, email_provider, email_is_role and email_validated_at.
Pass estimate_only to price the run without queueing it. You are only charged for probes that actually run — cached results and addresses rejected by the cheap pre-check are free.
Requires the leads:validate permission, deliberately separate from write so a general-purpose key cannot run up a validation bill.
curl --request POST \
--url https://app.manypi.com/api/leads/validate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"lead_ids": [
"8f1c0e6a-1c3e-4f2a-9a4b-0f7a1e2b3c4d"
]
}
'import requests
url = "https://app.manypi.com/api/leads/validate"
payload = { "lead_ids": ["8f1c0e6a-1c3e-4f2a-9a4b-0f7a1e2b3c4d"] }
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({lead_ids: ['8f1c0e6a-1c3e-4f2a-9a4b-0f7a1e2b3c4d']})
};
fetch('https://app.manypi.com/api/leads/validate', 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/validate",
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([
'lead_ids' => [
'8f1c0e6a-1c3e-4f2a-9a4b-0f7a1e2b3c4d'
]
]),
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/validate"
payload := strings.NewReader("{\n \"lead_ids\": [\n \"8f1c0e6a-1c3e-4f2a-9a4b-0f7a1e2b3c4d\"\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/validate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"lead_ids\": [\n \"8f1c0e6a-1c3e-4f2a-9a4b-0f7a1e2b3c4d\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.manypi.com/api/leads/validate")
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 \"lead_ids\": [\n \"8f1c0e6a-1c3e-4f2a-9a4b-0f7a1e2b3c4d\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"job_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"total": 123,
"estimate": {
"billable": 123,
"free": 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
Response
The job was queued, or (with estimate_only) priced.
Two shapes. A normal call queues a job and returns job_id, total and estimate. An estimate_only call queues nothing and returns estimate alone — with no job_id and no total — so test for job_id before treating the response as a queued job.
