Consultar la cola async de envío directo
curl --request GET \
--url https://api.wppfy.com/message/async \
--header 'token: <api-key>'import requests
url = "https://api.wppfy.com/message/async"
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/message/async', 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/async",
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/message/async"
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/message/async")
.header("token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wppfy.com/message/async")
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{
"response": "Estado de la cola asíncrona",
"instanceId": "<string>",
"queue": {
"status": "waiting_connection",
"pending": 3,
"processingNow": true,
"acceptingNewMessages": true,
"sessionReady": false,
"historyReady": true,
"warmupRemainingMs": 1500,
"resetting": false
}
}{
"error": "<string>",
"instanceId": "<string>"
}Mensaje Async
Consultar la cola async de envío directo
Devuelve un resumen simple de la cola de envío async=true de la instancia actual autenticada.
Este endpoint cubre solo los mensajes directos enviados con async=true.
La respuesta predeterminada fue pensada para clientes:
status: vista resumida de la cola (idle,queued,processing,waiting_connection,waiting_warmup,waiting_history,resetting)pending: cantidad total estimada de mensajes pendientesprocessingNow: indica si un mensaje se está procesando en este momentoacceptingNewMessages: indica si la cola acepta nuevos envíos asyncsessionReady: indica si la sesión de WhatsApp está lista para enviarresetting: indica si la cola está pausada por reset/clear
GET
/
message
/
async
Consultar la cola async de envío directo
curl --request GET \
--url https://api.wppfy.com/message/async \
--header 'token: <api-key>'import requests
url = "https://api.wppfy.com/message/async"
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/message/async', 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/async",
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/message/async"
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/message/async")
.header("token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wppfy.com/message/async")
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{
"response": "Estado de la cola asíncrona",
"instanceId": "<string>",
"queue": {
"status": "waiting_connection",
"pending": 3,
"processingNow": true,
"acceptingNewMessages": true,
"sessionReady": false,
"historyReady": true,
"warmupRemainingMs": 1500,
"resetting": false
}
}{
"error": "<string>",
"instanceId": "<string>"
}