curl --request POST \
--url https://api.wppfy.com/message/status \
--header 'Content-Type: application/json' \
--header 'token: <api-key>' \
--data '
{
"id": "3EB0538DA65A59F6D8A251",
"limit": 100,
"offset": 0
}
'import requests
url = "https://api.wppfy.com/message/status"
payload = {
"id": "3EB0538DA65A59F6D8A251",
"limit": 100,
"offset": 0
}
headers = {
"token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({id: '3EB0538DA65A59F6D8A251', limit: 100, offset: 0})
};
fetch('https://api.wppfy.com/message/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/message/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'id' => '3EB0538DA65A59F6D8A251',
'limit' => 100,
'offset' => 0
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.wppfy.com/message/status"
payload := strings.NewReader("{\n \"id\": \"3EB0538DA65A59F6D8A251\",\n \"limit\": 100,\n \"offset\": 0\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("token", "<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.post("https://api.wppfy.com/message/status")
.header("token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"3EB0538DA65A59F6D8A251\",\n \"limit\": 100,\n \"offset\": 0\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wppfy.com/message/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"3EB0538DA65A59F6D8A251\",\n \"limit\": 100,\n \"offset\": 0\n}"
response = http.request(request)
puts response.read_body{
"source": "memory",
"summary": {
"delivered": 123,
"read": 123
},
"receipts": [
{
"participant": "<string>",
"participant_pn": "<string>",
"participant_lid": "<string>",
"state": "Delivered",
"timestamp": 123
}
],
"pagination": {
"totalRecords": 123,
"limit": 123,
"offset": 123,
"hasMore": true,
"nextOffset": 123
}
}Estado del mensaje en grupo
Muestra quién recibió y quién leyó un mensaje enviado por usted en un grupo: primero un resumen con los totales, luego la lista de cada participante. source indica de dónde provino la respuesta.
source: "memory": después de que esta ruta se usa para un grupo, la API comienza a seguir en memoria las confirmaciones de los grupos de la instancia, hasta 24 horas después de la última consulta. A partir de ahí se responden, al instante y sin depender del teléfono, los mensajes enviados desde entonces y los que el teléfono ya respondió, sumando las confirmaciones que llegaron después. Cada mensaje permanece hasta 24 horas en memoria; en instancias con mucho envío a grupos, los más antiguos salen antes.source: "phone": la primera consulta de un mensaje enviado antes de eso, o de cualquier mensaje después de un reinicio del servidor, se hace al teléfono de la cuenta. El teléfono debe estar encendido y con internet. Con WhatsApp abierto, la respuesta llega en aproximadamente 1 segundo; con el teléfono inactivo (un iPhone en segundo plano, por ejemplo), puede no llegar. Sin respuesta en 40 segundos, la ruta devuelve504. La lista es la que guarda el teléfono: justo después de quedarse sin internet, puede responder antes de recibir las confirmaciones que llegaron en ese intervalo.summary: cuántos participantes recibieron (delivered) y leyeron (read). Quien leyó también cuenta como recibido, y quien escuchó un audio o vio un video cuenta como leído.receipts: un elemento por participante y estado, en orden cronológico y por páginas, como en las demás listas de la API: para la siguiente, envíepagination.nextOffsetenoffsetmientraspagination.hasMoreseatrue. El resumen viene en todas.- Quien leyó puede venir sin el elemento
Delivered, cuando el teléfono no guardó la hora de entrega. statefiltra la lista por estado:Delivered,ReadoPlayed. El resumen mantiene los totales del mensaje.idacepta el ID completo o el corto del mensaje, que debe estar en el historial de la instancia.- La API no guarda las confirmaciones en una base de datos. Para seguirlas en tiempo real, use el webhook
messages_updatecontype: "GroupReceipts".
curl --request POST \
--url https://api.wppfy.com/message/status \
--header 'Content-Type: application/json' \
--header 'token: <api-key>' \
--data '
{
"id": "3EB0538DA65A59F6D8A251",
"limit": 100,
"offset": 0
}
'import requests
url = "https://api.wppfy.com/message/status"
payload = {
"id": "3EB0538DA65A59F6D8A251",
"limit": 100,
"offset": 0
}
headers = {
"token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({id: '3EB0538DA65A59F6D8A251', limit: 100, offset: 0})
};
fetch('https://api.wppfy.com/message/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/message/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'id' => '3EB0538DA65A59F6D8A251',
'limit' => 100,
'offset' => 0
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.wppfy.com/message/status"
payload := strings.NewReader("{\n \"id\": \"3EB0538DA65A59F6D8A251\",\n \"limit\": 100,\n \"offset\": 0\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("token", "<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.post("https://api.wppfy.com/message/status")
.header("token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"3EB0538DA65A59F6D8A251\",\n \"limit\": 100,\n \"offset\": 0\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wppfy.com/message/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"3EB0538DA65A59F6D8A251\",\n \"limit\": 100,\n \"offset\": 0\n}"
response = http.request(request)
puts response.read_body{
"source": "memory",
"summary": {
"delivered": 123,
"read": 123
},
"receipts": [
{
"participant": "<string>",
"participant_pn": "<string>",
"participant_lid": "<string>",
"state": "Delivered",
"timestamp": 123
}
],
"pagination": {
"totalRecords": 123,
"limit": 123,
"offset": 123,
"hasMore": true,
"nextOffset": 123
}
}Autorizaciones
Cuerpo
ID del mensaje (completo o corto).
"3EB0538DA65A59F6D8A251"
Solo las confirmaciones de este estado. Sin él, todas.
Delivered, Read, Played Elementos por página. Valores superiores a 500 usan 500.
1 <= x <= 500Desplazamiento con base cero; use el pagination.nextOffset de la página anterior.
x >= 0Respuesta
Resumen y página de confirmaciones, en orden cronológico.
De dónde provino la respuesta: memory (confirmaciones que la API registró, sumadas a la respuesta anterior del celular cuando la hubo) o phone (el celular de la cuenta, en esta consulta).
memory, phone Totales de participantes; los mismos en todas las páginas.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
