POST /messages/media/retry-receipt

Send a media retry receipt to request re-delivery of failed media. Requires sender_jid and media_key (base64) so WhatsApp can verify the request.

application/json

Body Required

  • chat_jid string Required

    WhatsApp JID of the chat

  • sender_jid string Required

    WhatsApp JID of the message sender

  • message_id string Required

    Message ID of the media message

  • media_key string Required

    Media key (base64) from the failed media message

Responses

  • 200 application/json

    Media retry receipt sent

    Hide response attributes Show response attributes object
    • status boolean
    • code integer
    • message string
  • 400 application/json

    Bad request

    Hide response attributes Show response attributes object
    • status boolean
    • code integer
    • message string
    • error string
  • 401 application/json

    Unauthorized

    Hide response attributes Show response attributes object
    • status boolean
    • code integer
    • message string
    • error string
  • 500 application/json

    Internal server error

    Hide response attributes Show response attributes object
    • status boolean
    • code integer
    • message string
    • error string
POST /messages/media/retry-receipt
curl \
 --request POST 'http://localhost:7001/messages/media/retry-receipt' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"chat_jid":"6281234567890@s.whatsapp.net","sender_jid":"6281234567890@s.whatsapp.net","message_id":"3EB0C127...","media_key":"ZHVtbXktbWVkaWEta2V5LWJhc2U2NA=="}'
Request examples
{
  "chat_jid": "6281234567890@s.whatsapp.net",
  "sender_jid": "6281234567890@s.whatsapp.net",
  "message_id": "3EB0C127...",
  "media_key": "ZHVtbXktbWVkaWEta2V5LWJhc2U2NA=="
}
Response examples (200)
{
  "status": true,
  "code": 200,
  "message": "Media retry receipt sent"
}
Response examples (400)
{
  "status": false,
  "code": 400,
  "message": "Bad request",
  "error": "Bad request"
}
Response examples (401)
{
  "status": false,
  "code": 401,
  "message": "Unauthorized",
  "error": "Invalid or missing authentication"
}
Response examples (500)
{
  "status": false,
  "code": 400,
  "message": "Bad request",
  "error": "Bad request"
}