Bulk update leads
curl --request PATCH \
--url https://app.manypi.com/api/leads \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
"8f1c0e6a-1c3e-4f2a-9a4b-0f7a1e2b3c4d"
],
"status": "qualified"
}
'import requests
url = "https://app.manypi.com/api/leads"
payload = {
"ids": ["8f1c0e6a-1c3e-4f2a-9a4b-0f7a1e2b3c4d"],
"status": "qualified"
}
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({ids: ['8f1c0e6a-1c3e-4f2a-9a4b-0f7a1e2b3c4d'], status: 'qualified'})
};
fetch('https://app.manypi.com/api/leads', 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",
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([
'ids' => [
'8f1c0e6a-1c3e-4f2a-9a4b-0f7a1e2b3c4d'
],
'status' => 'qualified'
]),
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"
payload := strings.NewReader("{\n \"ids\": [\n \"8f1c0e6a-1c3e-4f2a-9a4b-0f7a1e2b3c4d\"\n ],\n \"status\": \"qualified\"\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")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ids\": [\n \"8f1c0e6a-1c3e-4f2a-9a4b-0f7a1e2b3c4d\"\n ],\n \"status\": \"qualified\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.manypi.com/api/leads")
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 \"ids\": [\n \"8f1c0e6a-1c3e-4f2a-9a4b-0f7a1e2b3c4d\"\n ],\n \"status\": \"qualified\"\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"updated": 123
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Leads
Bulk update leads
Change status and/or archive state for up to 500 leads at once.
Requires the write permission.
PATCH
/
api
/
leads
Bulk update leads
curl --request PATCH \
--url https://app.manypi.com/api/leads \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
"8f1c0e6a-1c3e-4f2a-9a4b-0f7a1e2b3c4d"
],
"status": "qualified"
}
'import requests
url = "https://app.manypi.com/api/leads"
payload = {
"ids": ["8f1c0e6a-1c3e-4f2a-9a4b-0f7a1e2b3c4d"],
"status": "qualified"
}
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({ids: ['8f1c0e6a-1c3e-4f2a-9a4b-0f7a1e2b3c4d'], status: 'qualified'})
};
fetch('https://app.manypi.com/api/leads', 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",
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([
'ids' => [
'8f1c0e6a-1c3e-4f2a-9a4b-0f7a1e2b3c4d'
],
'status' => 'qualified'
]),
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"
payload := strings.NewReader("{\n \"ids\": [\n \"8f1c0e6a-1c3e-4f2a-9a4b-0f7a1e2b3c4d\"\n ],\n \"status\": \"qualified\"\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")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ids\": [\n \"8f1c0e6a-1c3e-4f2a-9a4b-0f7a1e2b3c4d\"\n ],\n \"status\": \"qualified\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.manypi.com/api/leads")
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 \"ids\": [\n \"8f1c0e6a-1c3e-4f2a-9a4b-0f7a1e2b3c4d\"\n ],\n \"status\": \"qualified\"\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"updated": 123
}{
"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
application/json
⌘I
