For partners who have clients using API v2 integration, it is necessary to migrate them to API v3-supported integration. Main migration steps:
To switch webhooks from API v2 to API v3 at a particular client, you need to call:
POST https://api.wazzup24.com/v3/migration
In the header you need to pass the partner API key. The body of the request must contain JSON with the values of the following parameters:
| Parameter | Type | Description |
| clientApiKey | String | API key of the selected client, which was used to send API v2 requests |
| webhooksUri | String | URL, to which webhooks will be sent |
| subscriptions | Object | An object with subscriptions to two types of webhooks. Absence is similar to False |
| subscriptions.messagesAndStatuses | Boolean | Subscribing to webhooks about messages and their statuses |
| subscriptions.contactsAndDealsCreation | Boolean | Subscribing to webhooks about creating entities |