get-status
curl --request GET \
--url 'http://{{base_url}}/api/v1/venom/get-status'import requests
url = "http://{{base_url}}/api/v1/venom/get-status"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://{{base_url}}/api/v1/venom/get-status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://{{base_url}}/api/v1/venom/get-status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://{{base_url}}/api/v1/venom/get-status"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://{{base_url}}/api/v1/venom/get-status")
.asString();require 'uri'
require 'net/http'
url = URI("http://{{base_url}}/api/v1/venom/get-status")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"error": false,
"status": "success",
"code": 200,
"data": {
"sessionStatus": "successChat"
}
}User
Server Status
Retrieve Current Worker Status. This function is utilized to ascertain the present status of WhatsApp login. If the current status indicates anything other than success, it prompts a login action to the dashboard.
GET
/
api
/
v1
/
venom
/
get-status
get-status
curl --request GET \
--url 'http://{{base_url}}/api/v1/venom/get-status'import requests
url = "http://{{base_url}}/api/v1/venom/get-status"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://{{base_url}}/api/v1/venom/get-status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://{{base_url}}/api/v1/venom/get-status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://{{base_url}}/api/v1/venom/get-status"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://{{base_url}}/api/v1/venom/get-status")
.asString();require 'uri'
require 'net/http'
url = URI("http://{{base_url}}/api/v1/venom/get-status")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"error": false,
"status": "success",
"code": 200,
"data": {
"sessionStatus": "successChat"
}
}Headers
Response
200 - application/json
OK
The response is of type object.