Channel creation
The method is intended to create an instance for WhatsApp API
Last updated
The method is intended to create an instance for WhatsApp API
Last updated
In order to create channels, you will need an API Token, which you can request from our team by emailing or via web chat on any dashboard page.
The required parameter is projectId
. This is a kind of shell inside your account that groups channels.
Be careful! You can have several projects in your account (you can create them via API), but now the dashboard interface displays channels of the main project only. Therefore, if you plan to use our dashboard as a visual means of controlling channels, create channels only in the main project. In your service, you can independently distribute channels by projects.
To get main projectId
, you can call API function: GET https://manager.whapi.cloud/projects
Now that we have this parameter, we can create the channel.
A successful response to your request will look like this:
Once you've created a channel, the best solution is to customize it right away, namely to set up links to your webhook address.
In this way you can immediately receive notifications about the channel status, about the authorization event of the user (i.e. his connection to the channel).
All details about detailed webhook settings can be found in the article: Detailed webhook settings
Of course, you will need the channel token that you received when you created the channel.
Once the QR code is scanned by the user, you will receive a notification, about this event and the connected number: