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 o processamento do histórico inicial
Retorna o diagnóstico em memória da sincronização de histórico iniciada no pareamento mais recente desta instância. Não inicia uma nova sincronização.
O request_id é o mesmo devolvido por POST /instance/connect para essa
tentativa e pelos lotes history do pareamento. O diagnóstico só existe após
o pareamento: antes disso, pode retornar diagnosis: [no_trace]. Esse endpoint
não acompanha os pedidos manuais de POST /message/history-sync; use o
request_id desses pedidos nos eventos webhook/SSE.
deliveryStatus pode ser pending, delivered, partial, failed,
no_webhook ou no_batches. O progresso informado pelo WhatsApp chegar a
100 não significa, sozinho, que todos os lotes já foram entregues.
O rastreamento é isolado por instância, limitado aos eventos recentes e reiniciado junto com o processo. URLs de webhook podem aparecer no diagnóstico; trate a resposta como informação operacional sensível.
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"
]
}Autorizações
Resposta
Estado observado da sincronização mais recente, ou diagnóstico sem rastreamento.
Identificador do pareamento, também devolvido em POST /instance/connect e repetido nos lotes history do histórico inicial. Ausente quando não há rastreamento.
0 <= x <= 100pending, delivered, partial, failed, no_webhook, no_batches Show child attributes
Show child attributes
100Show child attributes
Show child attributes
