Update a lead
curl --request PATCH \
--url https://app.manypi.com/api/leads/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"field": "title",
"value": "Head of Growth"
}
'import requests
url = "https://app.manypi.com/api/leads/{id}"
payload = {
"field": "title",
"value": "Head of Growth"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({field: 'title', value: 'Head of Growth'})
};
fetch('https://app.manypi.com/api/leads/{id}', 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/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'field' => 'title',
'value' => 'Head of Growth'
]),
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/{id}"
payload := strings.NewReader("{\n \"field\": \"title\",\n \"value\": \"Head of Growth\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://app.manypi.com/api/leads/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"field\": \"title\",\n \"value\": \"Head of Growth\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.manypi.com/api/leads/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"field\": \"title\",\n \"value\": \"Head of Growth\"\n}"
response = http.request(request)
puts response.read_body{
"lead": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"company": "<string>",
"full_name": "<string>",
"title": "<string>",
"email": "<string>",
"phone": "<string>",
"domain": "<string>",
"linkedin_url": "<string>",
"location": "<string>",
"source_url": "<string>",
"score": 123,
"status": "new",
"custom": {},
"email_status": "valid",
"email_provider": "<string>",
"email_is_role": true,
"email_validated_at": "2023-11-07T05:31:56Z",
"unsubscribed_at": "2023-11-07T05:31:56Z",
"archived_at": "2023-11-07T05:31:56Z",
"agent_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z"
}
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Leads
Update a lead
Update one field, the status, the score, or the archive flag on a single lead. Setting field to a name that is not a core field writes into the lead’s custom columns.
Requires the write permission.
PATCH
/
api
/
leads
/
{id}
Update a lead
curl --request PATCH \
--url https://app.manypi.com/api/leads/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"field": "title",
"value": "Head of Growth"
}
'import requests
url = "https://app.manypi.com/api/leads/{id}"
payload = {
"field": "title",
"value": "Head of Growth"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({field: 'title', value: 'Head of Growth'})
};
fetch('https://app.manypi.com/api/leads/{id}', 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/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'field' => 'title',
'value' => 'Head of Growth'
]),
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/{id}"
payload := strings.NewReader("{\n \"field\": \"title\",\n \"value\": \"Head of Growth\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://app.manypi.com/api/leads/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"field\": \"title\",\n \"value\": \"Head of Growth\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.manypi.com/api/leads/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"field\": \"title\",\n \"value\": \"Head of Growth\"\n}"
response = http.request(request)
puts response.read_body{
"lead": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"company": "<string>",
"full_name": "<string>",
"title": "<string>",
"email": "<string>",
"phone": "<string>",
"domain": "<string>",
"linkedin_url": "<string>",
"location": "<string>",
"source_url": "<string>",
"score": 123,
"status": "new",
"custom": {},
"email_status": "valid",
"email_provider": "<string>",
"email_is_role": true,
"email_validated_at": "2023-11-07T05:31:56Z",
"unsubscribed_at": "2023-11-07T05:31:56Z",
"archived_at": "2023-11-07T05:31:56Z",
"agent_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z"
}
}{
"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.
Path Parameters
Body
application/json
A core field (company, full_name, title, email, phone, domain, linkedin_url, location, source_url) or a custom column key.
Maximum string length:
64Empty string or null clears the field.
Maximum string length:
2000Available options:
new, qualified, contacted, disqualified Required range:
0 <= x <= 100Response
The updated lead.
Show child attributes
Show child attributes
⌘I
