Check My Credentials API

End Point: https://wbiztool.com/api/v1/me/
Request Type: POST
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)
Optional Fields in Request
  • whatsapp_client (Integer, Optional) - Your WhatsApp Client Id to validate (Given on Whatsapp Setting Page)
Fields in Response
  • status (Integer) - 1 if credentials are valid, 0 if invalid
  • message (String) - "Okay" if valid, error description if invalid
  • name (String) - Your account name and WhatsApp client info (only if valid)
Example

Use this API to validate your credentials before making other API calls. This helps ensure your API key and client ID are correct.

curl -X POST https://wbiztool.com/api/v1/me/  -d '{
    "client_id": "client_id",
    "api_key": "api_key"
}'

// Response (Success)
{"status": 1, "message": "Okay", "name": "username - whatsapp_client_id"}

// Response (Error)
{"status": 0, "message": "Auth Error"}

Validate Your Credentials with Python

Use our official Python package: We recommend using our official Python client for easier integration.
Install it with: pip install wbiztool-client
import requests
import json

data = {
    "client_id": "client_id",
    "api_key": "api_key"
}

url = 'https://wbiztool.com/api/v1/me/'
response = requests.post(url, data=data)
result = response.json()

if result['status'] == 1:
    print("Credentials are valid!")
    print(f"Account: {result['name']}")
else:
    print(f"Error: {result['message']}")

Validate Your Credentials with PHP

$url = 'https://wbiztool.com/api/v1/me/';
$data = 'client_id=client_id&api_key=api_key';

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
$result = json_decode($response, true);

if ($result['status'] == 1) {
    echo "Credentials are valid!\n";
    echo "Account: " . $result['name'] . "\n";
} else {
    echo "Error: " . $result['message'] . "\n";
}

curl_close($ch);

Validate Your Credentials with Node.js

Use our official Node.js package: We recommend using our official Node.js client for easier integration.
Install it with: npm install wbiztool-client
const request = require('request');

const data = {
    client_id: "client_id",
    api_key: "api_key"
};

const options = {
    url: 'https://wbiztool.com/api/v1/me/',
    method: 'POST',
    form: data
};

request(options, (error, response, body) => {
    if (!error && response.statusCode === 200) {
        const result = JSON.parse(body);
        if (result.status === 1) {
            console.log("Credentials are valid!");
            console.log(`Account: ${result.name}`);
        } else {
            console.log(`Error: ${result.message}`);
        }
    } else {
        console.log('Request failed:', error);
    }
});