简体   繁体   中英

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM