Parth Panchal
Parth Panchal

Reputation: 487

how to get message object from message id in whatsapp cloud api?

I'm new to WhatsApp cloud API. After sending a message to a particular number I get the following response from WhatsApp cloud API.

{
  "messages": [{
    "id": "gBEGkYiEB1VXAglK1ZEqA1YKPrU"
  }]
}  

My question is how do I get my message object back using this id?

Upvotes: 2

Views: 7067

Answers (1)

turivishal
turivishal

Reputation: 36104

There is no specific endpoint to get the message back by it's Id, but You have to set up a Webhook endpoint to track the message status,

See the whole process of how to set up Webhook,
https://developers.facebook.com/docs/whatsapp/cloud-api/guides/set-up-webhooks

Here is the demo of the Webhook endpoint,
https://developers.facebook.com/docs/whatsapp/sample-app-endpoints

Upvotes: 2

Related Questions