Mover una página de Lead Ads
Mueve un vínculo de página a otro número de WhatsApp del workspace. Cuerpo: { "whatsappNumberId": "<id>" } y nada más. Solo los leads nuevos se mueven; los leads ya capturados conservan el número por el que llegaron.
Cuando el nuevo número envía otro tipo de mensaje (plantilla oficial vs. texto libre no oficial) o está en otra WABA, todos los envíos automáticos de los formularios del vínculo se desactivan y la respuesta indica autoSendDisabled: true: revisa los formularios con PUT /v1/lead-pages/{pageLinkId}/forms/{formId} antes de volver a activarlos.
Tanto el número actual como el de destino deben estar dentro del alcance de la credencial (403 NUMBER_NOT_IN_GRANT). Los tokens OAuth/MCP necesitan integrations:manage (ADMIN u OWNER del workspace) en todos los verbos, incluidas las lecturas. Alcance: una key limitada a un número, o una credencial de toda la cuenta con x-whatsapp-number-id, actúa solo sobre los vínculos de ese número; una credencial de toda la cuenta sin el header ve todo el 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"
}Encabezados
Parámetros de ruta
Cuerpo
Respuesta
Vínculo de página movido
¿Esta página le ayudó?
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"
}