How to migrate from previous API to Direct Whatsapp API.
Backup current webhook setting (via API call).
Switch webhook (via API call).
Switch API usage (in your system).
/v1/configs/webhook and store url address from response.
/v1/configs/webhook with your webhook endpoint:
Webooks will be sent as described in Whatsapp Business API
Important: In new (Whatsapp Direct) API only 200 http code is allowed in webhook response. Any other code (including 201) will be interpreted as not delivered, and message will be sent again.
Switch to use new Whatsapp Direct API instead of current API.
Please remember that Whatsapp Direct API calls is compatibile with Whatsapp Business API
And is not backward compatibile with previous (not-direct) API version.
Configs Messaging & Conversations v1 API (old) → No longer valid.
In case if revert will be needed:
Just switch webhook to previously saved url via POST
/v1/settings/webhook (Set webhook url). And revert your system to use old API version.