Skip to main content

Good day, 

I have successfully integrated with the ManyChat API and can validate and Create subscribers. However sending of WhatsApp messages is not working, Please check my payload and logs below:

From your application logs (supabase/functions/whatsapp-checker):

Timestamp: 2024-12-27 14:15:24 UTCSubscriber ID: 657681435Customer ID: AQT25759Message Content: "Congratulations Steven! Your application has been approved..."API Endpoint: /fb/sending/sendContentMessage Tag: ACCOUNT_UPDATEAPI Response Status: 200ManyChat Response: {"status":"success"}

API Request Details:

{ "subscriber_id": "657681435", "data": { "version": "v2", "content": { "messages": { "type": "text", "text": "Your message content here" } ] } }, "message_tag": "ACCOUNT_UPDATE" }

Details:

  • Subscriber ID: 657681435
  • Phone Number: +2775******* (masked for privacy)
  • Timestamp: 2024-12-27 14:15:24 UTC
  • API Endpoint: /fb/sending/sendContent
  • Message Tag: ACCOUNT_UPDATE
  • API Response: HTTP 200 with {"status":"success"}
  • Issue: Message shows as sent successfully in API response but subscriber reports not receiving the message

API Request Payload:

{ "subscriber_id": "657681435", "data": { "version": "v2", "content": { "messages": s { "type": "text", "text": "Congratulations Steven! Your application has been approved. Welcome to our services. We will be in touch shortly with next steps." } ] } }, "message_tag": "ACCOUNT_UPDATE" }

API Response Received:

{ "status": "success" }

Subscriber Verification: The subscriber was verified as active using the /fb/subscriber/findByPhone endpoint and returned valid subscriber data with ID 657681435.

Request for Support: I need to understand:

  1. Is there an issue with message delivery for this specific subscriber?
  2. Are there any additional delivery status webhooks we should monitor?
  3. What could cause a successful API response but failed delivery?

Attachments:

  • Full API request/response logs
  • Subscriber verification logs
  • Application debugging information

Hi, ​@stevenmaz!

 

Does this contact have a open message window?

In other words, did they interact with you via WhatsApp in the last 24h?

 

If not, instead of sending “plain text” via the API, you'll need to create a message template and send it to them.

 

Once a template is created and approved, you can create an automation with it and send it using "/fb/sending/sendFlow”.

 

Hope this helps! 🙌


Hey ​@stevenmaz a few things here…

First, you’re not sending a WhatsApp message, you’re trying to send a Messenger Message.

And if the person isn’t subscribed to Messenger (which they won’t), then it definitely won’t sent!

The JSON Body you’re using is for Facebook Messages:

 

For IG/WhatsApp/Telegram, you have to use the other documentation page, this one:

https://manychat.github.io/dynamic_block_docs/channels/

The main difference is that you’ll have the ‘type’ parameter set tp ‘whatsapp’, ‘instagram’ or ‘telegram’:

And, the ‘Account Update’ info is irrelevant.

 

Using the proper JSON body should get you going, as long as you’re sending the message within WhatsApp conversation window.

If you’re outside the conversation window, you’ll need to send a Message Template. And they only way to do that is using the sendFlow endpoint as mentioned by ​@Fabio Gaulke 


Thanks ​@Fabio Gaulke I have resolved the issue by using the /fb/sending/sendFlow 


Reply