Posts tagged with whatsapp-cloud-api

I am trying to send a WhatsApp template message using Postman. I am receiving a successful response with a WhatsApp ID, but the message is not being received by the recipient (which is myself for testing purposes).

Here are the details of my request:

  • Method: POST
  • URL: [Your WhatsApp API endpoint]
  • Headers:
    • Authorization: [Your authorization token]
    • Content-Type: application/json
  • Body:
  {     "to": "recipient_number",     "template": {       "name": "your_template_name",       "language": {         "code": "en",         "policy": "deterministic"       },       "components": [         {           "type": "BODY",           "text": "Hello, this is a test message."         }       ]     }   } 

I have checked the following:

  1. The recipient number is correct and includes the country code.
  2. The template message format complies with WhatsApp's guidelines.
  3. I am using a WhatsApp Business Account and have the necessary permissions.
  4. The template has been approved by WhatsApp.
  5. The API endpoint and request format are correct.

Despite these checks, the message is not being delivered. I would appreciate any insights.

I'm implementing a whatsapp like chat using whatsapp business api.

There is the 24 hours rule where, in order to send a message to a whatsapp number, you need to send an approved template first. Afterwards, as soon as the user reply, the business account can send free form messages for the next 24 hours.

When a free form message is sent, the api returns this type of json:

{   "messaging_product": "whatsapp",   "contacts": [     {       "input": "<WHATSAPP_USER_PHONE_NUMBER>",       "wa_id": "<WHATSAPP_USER_ID>"     }   ],   "messages": [     {       "id": "<WHATSAPP_MESSAGE_ID>"     }   ] } 

However, this json does not guarantee that the message was delivered if sent outside of 24 hours. This json is always returned whether the conversation is open or not, and this doesn't help much.

So do you know if there is an api call that can tell me if the conversation is still open with the user?

When sending messages through the cloud Whatsapp Business API, is there a way to send custom fields that will be returned in the webhook notification?

Apart from saving the ID received in the response when sending the message, I could not find a way to connect between the sent message and the returned webhook.

I'm tring to create WhatsApp Business Platform API. it return erorr "onboard Please retry in some time or reach support to get issue fixed." I tryed again and again but not solved

I'm creating WhatsApp Business Platform API but it return erorr Onboarding Failure Please retry in some time or reach support to get issue fixed.and not creating App.