curl --request GET \
--url https://api.wppfy.com/instance/history-sync/status \
--header 'token: <api-key>'import requests
url = "https://api.wppfy.com/instance/history-sync/status"
headers = {"token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {token: '<api-key>'}};
fetch('https://api.wppfy.com/instance/history-sync/status', 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://api.wppfy.com/instance/history-sync/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"token: <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"
"net/http"
"io"
)
func main() {
url := "https://api.wppfy.com/instance/history-sync/status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.wppfy.com/instance/history-sync/status")
.header("token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wppfy.com/instance/history-sync/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"pairedAt": null,
"diagnosis": [
"no_trace"
]
}Consultar el procesamiento del historial inicial
Devuelve el diagnóstico en memoria de la sincronización de historial iniciada en el emparejamiento más reciente de esta instancia. No inicia una nueva sincronización.
El request_id es el mismo devuelto por POST /instance/connect para ese
intento y por los lotes history del emparejamiento. El diagnóstico solo existe después
del emparejamiento: antes de eso, puede devolver diagnosis: [no_trace]. Este endpoint
no acompaña las solicitudes manuales de POST /message/history-sync; use el
request_id de esas solicitudes en los eventos webhook/SSE.
deliveryStatus puede ser pending, delivered, partial, failed,
no_webhook o no_batches. Que el progreso informado por WhatsApp llegue a
100 no significa, por sí solo, que todos los lotes ya se hayan entregado.
El rastreo está aislado por instancia, limitado a los eventos recientes y se reinicia junto con el proceso. Las URLs de webhook pueden aparecer en el diagnóstico; trate la respuesta como información operativa sensible.
curl --request GET \
--url https://api.wppfy.com/instance/history-sync/status \
--header 'token: <api-key>'import requests
url = "https://api.wppfy.com/instance/history-sync/status"
headers = {"token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {token: '<api-key>'}};
fetch('https://api.wppfy.com/instance/history-sync/status', 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://api.wppfy.com/instance/history-sync/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"token: <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"
"net/http"
"io"
)
func main() {
url := "https://api.wppfy.com/instance/history-sync/status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.wppfy.com/instance/history-sync/status")
.header("token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wppfy.com/instance/history-sync/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"pairedAt": null,
"diagnosis": [
"no_trace"
]
}Autorizaciones
Respuesta
Estado observado de la sincronización más reciente, o diagnóstico sin seguimiento.
Identificador del emparejamiento, también devuelto en POST /instance/connect y repetido en los lotes history del historial inicial. Ausente cuando no hay seguimiento.
0 <= x <= 100pending, delivered, partial, failed, no_webhook, no_batches Show child attributes
Show child attributes
100Show child attributes
Show child attributes
