Move a Lead Ads Page
Moves a Page link to another WhatsApp number of the workspace. Body: { "whatsappNumberId": "<id>" } and nothing else. Only new leads follow; leads already captured keep the number they arrived on.
When the new number sends a different kind of message (official template vs. unofficial free text) or sits on another WABA, every auto-send of the link’s forms is switched off and the response says autoSendDisabled: true — review the forms with PUT /v1/lead-pages/{pageLinkId}/forms/{formId} before turning it back on.
Both the current number and the target must be inside the credential’s scope (403 NUMBER_NOT_IN_GRANT). OAuth/MCP tokens need integrations:manage (workspace ADMIN or OWNER) on every verb, reads included. Scope: a number-scoped key, or an account-wide credential with x-whatsapp-number-id, acts only on that number’s links; an account-wide credential without the header sees the whole workspace.
curl --request PATCH \
--url https://pilotstatus.com.br/v1/lead-pages/{pageLinkId} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"whatsappNumberId": "num_01HZY..."
}
'import requests
url = "https://pilotstatus.com.br/v1/lead-pages/{pageLinkId}"
payload = { "whatsappNumberId": "num_01HZY..." }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({whatsappNumberId: 'num_01HZY...'})
};
fetch('https://pilotstatus.com.br/v1/lead-pages/{pageLinkId}', 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://pilotstatus.com.br/v1/lead-pages/{pageLinkId}",
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([
'whatsappNumberId' => 'num_01HZY...'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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://pilotstatus.com.br/v1/lead-pages/{pageLinkId}"
payload := strings.NewReader("{\n \"whatsappNumberId\": \"num_01HZY...\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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://pilotstatus.com.br/v1/lead-pages/{pageLinkId}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"whatsappNumberId\": \"num_01HZY...\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/v1/lead-pages/{pageLinkId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"whatsappNumberId\": \"num_01HZY...\"\n}"
response = http.request(request)
puts response.read_body{
"link": {
"pageLinkId": "cmgpl0001ab12cd34ef56",
"pageId": "102345678901234",
"pageName": "MM Design",
"whatsappNumberId": "num_01HZY...",
"subscribedAt": "2026-10-06T10:15:00.000Z",
"subscriptionError": null,
"linkedAt": "2026-10-06T10:14:58.000Z",
"leadsCount": 42
},
"autoSendDisabled": true
}{
"error": "Unknown field(s): token. This endpoint accepts only: whatsappNumberId. | Campo(s) desconhecido(s): token. Este endpoint aceita apenas: whatsappNumberId.",
"code": "UNKNOWN_FIELDS",
"unknownFields": [
"token"
]
}{
"error": "Unauthorized"
}{
"error": "This credential is not granted access to that WhatsApp number | Esta credencial não tem acesso a esse número de WhatsApp",
"code": "NUMBER_NOT_IN_GRANT"
}{
"error": "Page link not found | Vínculo de página não encontrado",
"code": "NOT_FOUND"
}{
"error": "Internal server error | Erro interno do servidor",
"code": "INTERNAL_ERROR"
}Authorizations
Your ps_ API key
Headers
Narrows an account-wide credential to one number (its id or instance id from GET /v1/numbers). Without it, an account-wide credential sees the whole workspace; a number-scoped key always sees only its own number.
Path Parameters
The link id (linked[].pageLinkId from GET /v1/lead-pages), not the Facebook Page id.
Body
Number that receives the Page's new leads.
"num_01HZY..."
Response
Page link moved
Was this page helpful?
curl --request PATCH \
--url https://pilotstatus.com.br/v1/lead-pages/{pageLinkId} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"whatsappNumberId": "num_01HZY..."
}
'import requests
url = "https://pilotstatus.com.br/v1/lead-pages/{pageLinkId}"
payload = { "whatsappNumberId": "num_01HZY..." }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({whatsappNumberId: 'num_01HZY...'})
};
fetch('https://pilotstatus.com.br/v1/lead-pages/{pageLinkId}', 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://pilotstatus.com.br/v1/lead-pages/{pageLinkId}",
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([
'whatsappNumberId' => 'num_01HZY...'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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://pilotstatus.com.br/v1/lead-pages/{pageLinkId}"
payload := strings.NewReader("{\n \"whatsappNumberId\": \"num_01HZY...\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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://pilotstatus.com.br/v1/lead-pages/{pageLinkId}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"whatsappNumberId\": \"num_01HZY...\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/v1/lead-pages/{pageLinkId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"whatsappNumberId\": \"num_01HZY...\"\n}"
response = http.request(request)
puts response.read_body{
"link": {
"pageLinkId": "cmgpl0001ab12cd34ef56",
"pageId": "102345678901234",
"pageName": "MM Design",
"whatsappNumberId": "num_01HZY...",
"subscribedAt": "2026-10-06T10:15:00.000Z",
"subscriptionError": null,
"linkedAt": "2026-10-06T10:14:58.000Z",
"leadsCount": 42
},
"autoSendDisabled": true
}{
"error": "Unknown field(s): token. This endpoint accepts only: whatsappNumberId. | Campo(s) desconhecido(s): token. Este endpoint aceita apenas: whatsappNumberId.",
"code": "UNKNOWN_FIELDS",
"unknownFields": [
"token"
]
}{
"error": "Unauthorized"
}{
"error": "This credential is not granted access to that WhatsApp number | Esta credencial não tem acesso a esse número de WhatsApp",
"code": "NUMBER_NOT_IN_GRANT"
}{
"error": "Page link not found | Vínculo de página não encontrado",
"code": "NOT_FOUND"
}{
"error": "Internal server error | Erro interno do servidor",
"code": "INTERNAL_ERROR"
}