Advance Setup

After getting your WhatsApp Business API client up and running, there are more advanced steps to get the most out of your experience.

This document covers:

Webhooks

Webhooks handle incoming messages from people who respond to you on WhatsApp including text, location, and media such as pictures and documents as well as the status of the messages you've sent. We've prepared a code sample so that you can test this with a couple of clicks.

Callbacks are an important channel to deliver, both timely notifications as well as out-of-band errors, and it is thus highly recommended you set a Webhook URL in the Application Settings.

Webhooks used with the WhatsApp Business API require HTTPS. You can use your own Certification Authority certificates to prevent SSL errors when sending callbacks to the configured Webhook. See the HTTPS Setup documentation for more information.

See the Webhooks documentation for more information.

Backup/Restore

Once you have a working WhatsApp Business API client and have set the settings, you can create a backup to make it easier to move to different environments/servers and restore to a known working state. This allows you to restore everything you have just done on another machine without having to go through registration again. Make sure to keep your password in a secure place.

See the Back and Restore documentation for more information.

Two-Factor Verification

Use two-factor verification to add an extra layer of security to the WhatsApp Business API client. When you have two-factor verification enabled, any attempt to register your phone number on WhatsApp must be accompanied by the six-digit PIN that you create using this feature.

See the Two-Factor Verification documention for more information.

Message Templates

You can set up message templates for common reusable messages you may want to send to your customers. Message templates must be used when sending notifications to customers. Message templates support localization out-of-the-box.

See the Message Templates documentation for more information.

Media

Media messages allow you to send images, documents, video, etc. to your customers. You can either upload the media to your WhatsApp Business API client and send it with an ID or simply use a link to the media to bypass the upload.

See the Media Messages documentation for more information.

Monitoring

You can set up dashboards to monitor the WhatsApp Business API client and send notifications for changes in monitoring using Prometheus and Grafana.

See the Monitoring and Alerting documentation for more information.