Mensajes
Reenviar mensaje
Vuelve a enviar la solicitud almacenada de un mensaje FAILED o CANCELED, como un mensaje NUEVO (nuevo id y correlationId; la fila original queda como está). {id} es el id interno, el correlationId o el wamid. No acepta campos en el body. Cuenta contra la cuota del plan como cualquier envío y puede responder todo lo que responde POST /v1/messages/send.
Auth: una clave con alcance de número, o una clave de toda la cuenta con el encabezado x-whatsapp-number-id (si no, 403 TENANT_SCOPE_NOT_ALLOWED). Los tokens OAuth/MCP y las claves de cuenta también necesitan messages:resend (ADMIN u OWNER).
POST
/
v1
/
messages
/
{id}
/
resend
Reenviar mensaje
curl --request POST \
--url https://pilotstatus.com.br/v1/messages/{id}/resend \
--header 'x-api-key: <api-key>'import requests
url = "https://pilotstatus.com.br/v1/messages/{id}/resend"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://pilotstatus.com.br/v1/messages/{id}/resend', 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/messages/{id}/resend",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://pilotstatus.com.br/v1/messages/{id}/resend"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://pilotstatus.com.br/v1/messages/{id}/resend")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/v1/messages/{id}/resend")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "cmf9a4t1m0007",
"correlationId": "b3f1c8e2-77aa-4c19-9f41-2d0e5a6b8c31",
"status": "QUEUED",
"createdAt": "2026-09-17T18:42:11.204Z",
"origin": "minha-linha",
"sourceNumber": "5511999999999",
"originalMessageId": "cmf8x2p9k0001"
}
¿Esta página le ayudó?
⌘I
Reenviar mensaje
curl --request POST \
--url https://pilotstatus.com.br/v1/messages/{id}/resend \
--header 'x-api-key: <api-key>'import requests
url = "https://pilotstatus.com.br/v1/messages/{id}/resend"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://pilotstatus.com.br/v1/messages/{id}/resend', 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/messages/{id}/resend",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://pilotstatus.com.br/v1/messages/{id}/resend"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://pilotstatus.com.br/v1/messages/{id}/resend")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/v1/messages/{id}/resend")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "cmf9a4t1m0007",
"correlationId": "b3f1c8e2-77aa-4c19-9f41-2d0e5a6b8c31",
"status": "QUEUED",
"createdAt": "2026-09-17T18:42:11.204Z",
"origin": "minha-linha",
"sourceNumber": "5511999999999",
"originalMessageId": "cmf8x2p9k0001"
}