Whatsapp Client Status API

End Point: https://wbiztool.com/api/v1/whatsapp-client/create/
Request Type: POST
Subscription: Advanced Plan (required)
Required Fields in Request
  • client_id (Integer) - Your Client Id (Given on Api keys page
  • api_key (String) - Your Api Key (Given on Api keys page
  • whatsapp_number (String) - Phone number for whatsapp client server.
  • webhook_url (String) - Webhook url where json data will be posted about events: ["qr-generated","connected","logged-out"] with "whatsapp_client_id"
Fields in Response
  • message (String) - Readable status of your request
  • status (Integer) - 0/1 if status is 0 then there is some error with this request explanation will be given in message key
  • whatsapp_client_id (Integer) - whatsapp_client_id for created new instance of whatsapp server.
Example

The following example uses curl to make an API request. Note the use of the api key, client id, whatsapp client id and the setting of the Content-Type header.

curl -X POST https://wbiztool.com/api/v1/whatsapp-client/create/  -d '{
    "client_id": <your_client_id>,
    "api_key": "<your_api_key>",
    "whatsapp_number": <new_phone_number>,
    "webhook_url": "<webhook_url>",
}' -H "Content-Type: application/json"

// Response
{"status": 1, "message": "Whatsapp Client Created", "whatsapp_client_id": 123}
import requests
data={
    "client_id" : <client_id>,
    "api_key" : "<api_key>",
    "whatsapp_number" : <whatsapp_number>,
    "webhook_url" : "<webhook_url>",
}
url = 'https://wbiztool.com/api/v1/whatsapp-client/create/'
response = requests.post(url,data=data).text
                                
$url = 'https://wbiztool.com/api/v1/whatsapp-client/create/';
$myvars = 'client_id=<client_id>&api_key=<api_key>&whatsapp_number=<whatsapp_number>&webhook_url=<webhook_url>';

$ch = curl_init( $url );
curl_setopt( $ch, CURLOPT_POST, 1);
curl_setopt( $ch, CURLOPT_POSTFIELDS, $myvars);

$response = curl_exec( $ch );
echo $response;
                                                    <ul class="nav nav-pills bg-nav-pills nav-justified mb-3">
<li class="nav-item">
<a href="#home1" data-toggle="tab" aria-expanded="false" class="nav-link rounded-0">
<i class="mdi mdi-home-variant d-md-none d-block"></i>
<span class="d-none d-md-block">Home</span>
</a>
</li>
<li class="nav-item">
<a href="#profile1" data-toggle="tab" aria-expanded="true" class="nav-link rounded-0 active">
<i class="mdi mdi-account-circle d-md-none d-block"></i>
<span class="d-none d-md-block">Profile</span>
</a>
</li>
<li class="nav-item">
<a href="#settings1" data-toggle="tab" aria-expanded="false" class="nav-link rounded-0">
<i class="mdi mdi-settings-outline d-md-none d-block"></i>
<span class="d-none d-md-block">Settings</span>
</a>
</li>
</ul>

<div class="tab-content">
<div class="tab-pane" id="home1">
<p>...</p>
</div>
<div class="tab-pane show active" id="profile1">
<p>...</p>
</div>
<div class="tab-pane" id="settings1">
<p>...</p>
</div>
</div>