Forward message

Forwarding an Existing Message

If you need to forward an already existing WhatsApp message via API, you can use the Forward Message endpoint. This method allows you to resend a message by referencing its messageId and specifying the target chat where it should be delivered.

Endpoint:

POST https://gate.whapi.cloud/messages/{MessageID}

Required parameters

  • messageId - the ID of the original message you want to forward.

  • to - the recipient’s number or chat ID (in international format without +).

Example request

curl --request POST \
     --url https://gate.whapi.cloud/messages/PrDFI1LJsd8pqRo-gpcBq5168hKMvQ \
     --header 'accept: application/json' \
     --header 'authorization: Bearer {Your_Token}' \
     --header 'content-type: application/json' \
     --data '{
       "to": "919984351847",
       "force": true
     }'

Once executed, the API will forward the specified message to the defined recipient.

You don't need to set up a webhook for this action, just make sure that this ID actually exists.

Last updated

Was this helpful?