curl --request POST \
--url https://app.manypi.com/api/integrations/migrations/{id}/advance \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.manypi.com/api/integrations/migrations/{id}/advance"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.manypi.com/api/integrations/migrations/{id}/advance', 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/integrations/migrations/{id}/advance",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.manypi.com/api/integrations/migrations/{id}/advance"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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/integrations/migrations/{id}/advance")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.manypi.com/api/integrations/migrations/{id}/advance")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"job": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"provider": "<string>",
"account_label": "<string>",
"status": "scanned",
"scan": {
"label": "<string>",
"campaigns": [
{
"id": "<string>",
"name": "<string>",
"status": "<string>",
"emailSteps": 123,
"leads": 123
}
],
"leadsTotal": 123,
"blocklistTotal": 123,
"accounts": [
{
"email": "<string>",
"provider": "google",
"name": "<string>"
}
],
"notes": [
"<string>"
]
},
"options": {
"campaigns": [],
"recreateCampaigns": true,
"importLeads": true,
"doNotContact": true,
"enrollNotContacted": true,
"duplicates": "merge",
"asCustomers": false
},
"progress": {
"phase": "blocklist",
"campaignIndex": 123,
"campaignMap": {},
"counts": {
"suppressed": 123,
"campaigns": 123,
"steps": 123,
"created": 123,
"updated": 123,
"skipped": 123,
"overLimit": 123,
"failed": 123,
"enrolled": 123,
"customFields": 123
},
"warnings": [
"<string>"
],
"skippedSteps": {},
"leadsSeen": 123
},
"result": {},
"error": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z"
},
"worked": true
}{
"error": "<string>",
"code": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"code": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"code": "<string>",
"details": "<unknown>"
}Advance an import
Run the next slice of a running import, about 15 seconds of work, and return where it stands. Call it in a loop until job.status is done, failed or cancelled.
worked: false means another slice held the import at that moment (the scheduler, or a second caller), the other tool asked for a pause, or the import has finished. Nothing is lost; ask again a few seconds later.
Every slice is safe to repeat. Leads dedupe on the same identity the CSV import uses, do-not-contact entries skip what is already listed, and queued leads and campaigns are never created twice.
Requires the write permission.
curl --request POST \
--url https://app.manypi.com/api/integrations/migrations/{id}/advance \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.manypi.com/api/integrations/migrations/{id}/advance"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.manypi.com/api/integrations/migrations/{id}/advance', 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/integrations/migrations/{id}/advance",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.manypi.com/api/integrations/migrations/{id}/advance"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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/integrations/migrations/{id}/advance")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.manypi.com/api/integrations/migrations/{id}/advance")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"job": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"provider": "<string>",
"account_label": "<string>",
"status": "scanned",
"scan": {
"label": "<string>",
"campaigns": [
{
"id": "<string>",
"name": "<string>",
"status": "<string>",
"emailSteps": 123,
"leads": 123
}
],
"leadsTotal": 123,
"blocklistTotal": 123,
"accounts": [
{
"email": "<string>",
"provider": "google",
"name": "<string>"
}
],
"notes": [
"<string>"
]
},
"options": {
"campaigns": [],
"recreateCampaigns": true,
"importLeads": true,
"doNotContact": true,
"enrollNotContacted": true,
"duplicates": "merge",
"asCustomers": false
},
"progress": {
"phase": "blocklist",
"campaignIndex": 123,
"campaignMap": {},
"counts": {
"suppressed": 123,
"campaigns": 123,
"steps": 123,
"created": 123,
"updated": 123,
"skipped": 123,
"overLimit": 123,
"failed": 123,
"enrolled": 123,
"customFields": 123
},
"warnings": [
"<string>"
],
"skippedSteps": {},
"leadsSeen": 123
},
"result": {},
"error": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z"
},
"worked": true
}{
"error": "<string>",
"code": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"code": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"code": "<string>",
"details": "<unknown>"
}Authorizations
A ManyPI API key (mpi_...) from the profile menu → API Access in the dashboard, or an OAuth 2.1 access token obtained through the MCP consent flow.
Path Parameters
The import id, from POST /api/integrations/migrations.
