WasenderAPI

API Documentation

WasenderApi WhatsApp API

Resend Failed Message

Messages

POST/api/messages/{message}/resend

Initiates the resending of a previously failed message from the logs.

Resend Failed Message

This endpoint allows you to attempt to resend a message from your logs that has previously failed. The message must have a status of "failed" for this operation to be permitted.

Important: Message logging must be enabled for your session to use this feature, as the endpoint relies on the stored message content to perform the resend. The API key you use must belong to the same session that originally sent the message.

Upon a successful request, the message status is updated to "in_progress" and it is re-queued for sending. The success response indicates that the resend has been initiated, not that it has been delivered.

Parameters

NameTypeRequiredDescription
messageintegerYesThe unique ID of the failed message log to be resent.

Code Examples

curl -X POST "https://www.wasenderapi.com/api/messages/failed-msg-id-123/resend" 
  -H "Authorization: Bearer YOUR_API_KEY"

Response Examples

{
    "success": true,
    "message": "Message resend initiated successfully."
}