All Products
Search
Document Center

Chat App Message Service:Configure webhooks

Last Updated:Jul 06, 2023

If you want to get notifications when you receive messages and message status changes, you need to configure webhooks for your phone number. Webhooks do not affect the status of the phone number and do not interfere with message sending and receiving. For more information, see Configure message receipts.

Modify a callback URL for a phone number

You can call this operation to modify a callback URL for a phone number. The callback URL is used to receive mobile originated (MO) messages and status reports.

API reference

UpdatePhoneWebhook

Examples

Sample success responses in JSON format

{
  "RequestId": "90E63D28-E31D-1EB2-8939-A9486641****",
  "Code": "OK",
  "Message": "null"
}

Modify a callback URL for a WABA

You can call this operation to modify a callback URL that is used to receive notifications on the changes in the following items: the status of the WhatsApp Business account (WABA), status of the phone number, and status of the template.

API reference

UpdateAccountWebhook

Examples

Sample success responses in JSON format

{
  "RequestId": "744c4b5c79c9432497a075bdfca3****",
  "Code": "OK",
  "Message": "SUCCESS"
}