cURL
curl --request GET \
--url https://api.zuwinda.com/v2/messaging/whatsapp/accounts \
--header 'X-Access-Key: <api-key>'import requests
url = "https://api.zuwinda.com/v2/messaging/whatsapp/accounts"
headers = {"X-Access-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Access-Key': '<api-key>'}};
fetch('https://api.zuwinda.com/v2/messaging/whatsapp/accounts', 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 => "https://api.zuwinda.com/v2/messaging/whatsapp/accounts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Access-Key: <api-key>"
],
]);
$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 := "https://api.zuwinda.com/v2/messaging/whatsapp/accounts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Access-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.zuwinda.com/v2/messaging/whatsapp/accounts")
.header("X-Access-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zuwinda.com/v2/messaging/whatsapp/accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Access-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"responseCode": "00",
"accounts": [
{
"accountId": "5bb8427e-afd7-4fd9-bf76-b93cc8aff20e",
"accountName": "Zuwinda Bot",
"clusterId": "821b80f5-b0f0-4bcf-ad09-89c1575a726d",
"whatsapp_number": "628151122333",
"status": "active",
"whatsapp_status": "connected",
"is_official": true,
"connection_reason": "Ok",
"created_at": "2024-04-23T12:25:17.000Z"
}
]
}
}{
"data": {
"responseCode": 123,
"message": "<string>"
}
}Whatsapp Account
Accounts
Returns all whatsapp accounts from the system that the user has access to
GET
/
messaging
/
whatsapp
/
accounts
cURL
curl --request GET \
--url https://api.zuwinda.com/v2/messaging/whatsapp/accounts \
--header 'X-Access-Key: <api-key>'import requests
url = "https://api.zuwinda.com/v2/messaging/whatsapp/accounts"
headers = {"X-Access-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Access-Key': '<api-key>'}};
fetch('https://api.zuwinda.com/v2/messaging/whatsapp/accounts', 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 => "https://api.zuwinda.com/v2/messaging/whatsapp/accounts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Access-Key: <api-key>"
],
]);
$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 := "https://api.zuwinda.com/v2/messaging/whatsapp/accounts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Access-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.zuwinda.com/v2/messaging/whatsapp/accounts")
.header("X-Access-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zuwinda.com/v2/messaging/whatsapp/accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Access-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"responseCode": "00",
"accounts": [
{
"accountId": "5bb8427e-afd7-4fd9-bf76-b93cc8aff20e",
"accountName": "Zuwinda Bot",
"clusterId": "821b80f5-b0f0-4bcf-ad09-89c1575a726d",
"whatsapp_number": "628151122333",
"status": "active",
"whatsapp_status": "connected",
"is_official": true,
"connection_reason": "Ok",
"created_at": "2024-04-23T12:25:17.000Z"
}
]
}
}{
"data": {
"responseCode": 123,
"message": "<string>"
}
}⌘I