To check the status of your WhatsApp session, you can use our API endpoint. This endpoint allows you to verify if your WhatsApp session is active and functioning correctly.
If you are using our API, you will need to include your API token in the request header. This token is essential for authentication and authorization purposes. here is an guide how to create api token
| Header Name | Header Value |
|---|---|
| x-api-key | your-api-token |
| Content-Type | application/json |
const requestOptions = {
method: "GET",
headers: {
"Content-Type" : "application/json",
"x-api-key" : "Your API Key"
},
};
fetch("https://whatsme.in/api/v1/check_session", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://whatsme.in/api/v1/check_session',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'x-api-key: "Your API Key"',
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;import requests
import json
url = "https://whatsme.in/api/v1/check_session"
headers = {
'x-api-key': 'Your API Key',
'Content-Type': 'application/json'
}
response = requests.request("GET", url, headers=headers)
print(response.text)curl --location 'https://whatsme.in/api/v1/check_session' \
--header 'x-api-key: Your Api Key' \
--header 'Content-Type: application/json'