Get Dashboard Data
curl --request GET \
--url https://api.vodex.ai/api/v1/dashboard \
--header 'Authorization: <api-key>' \
--header 'dburl: <dburl>'import requests
url = "https://api.vodex.ai/api/v1/dashboard"
headers = {
"Authorization": "<api-key>",
"dburl": "<dburl>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>', dburl: '<dburl>'}};
fetch('https://api.vodex.ai/api/v1/dashboard', 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.vodex.ai/api/v1/dashboard",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"dburl: <dburl>"
],
]);
$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.vodex.ai/api/v1/dashboard"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("dburl", "<dburl>")
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.vodex.ai/api/v1/dashboard")
.header("Authorization", "<api-key>")
.header("dburl", "<dburl>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vodex.ai/api/v1/dashboard")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
request["dburl"] = '<dburl>'
response = http.request(request)
puts response.read_body{
"status": 123,
"data": {
"totalDuration": 123,
"totalCost": "<string>",
"balance": "<string>",
"onHoldBalance": "<string>",
"remainingMinutes": 123,
"totalCallsMade": 123,
"callStatus": {
"totalFailed": 123,
"totalEnded": 123,
"undefined": 123,
"totalConnected": 123
}
}
}{
"code": 123
}Get Dashboard Data
Retrieve comprehensive dashboard analytics including call statistics, costs, and performance metrics
GET
/
api
/
v1
/
dashboard
Get Dashboard Data
curl --request GET \
--url https://api.vodex.ai/api/v1/dashboard \
--header 'Authorization: <api-key>' \
--header 'dburl: <dburl>'import requests
url = "https://api.vodex.ai/api/v1/dashboard"
headers = {
"Authorization": "<api-key>",
"dburl": "<dburl>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>', dburl: '<dburl>'}};
fetch('https://api.vodex.ai/api/v1/dashboard', 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.vodex.ai/api/v1/dashboard",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"dburl: <dburl>"
],
]);
$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.vodex.ai/api/v1/dashboard"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("dburl", "<dburl>")
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.vodex.ai/api/v1/dashboard")
.header("Authorization", "<api-key>")
.header("dburl", "<dburl>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vodex.ai/api/v1/dashboard")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
request["dburl"] = '<dburl>'
response = http.request(request)
puts response.read_body{
"status": 123,
"data": {
"totalDuration": 123,
"totalCost": "<string>",
"balance": "<string>",
"onHoldBalance": "<string>",
"remainingMinutes": 123,
"totalCallsMade": 123,
"callStatus": {
"totalFailed": 123,
"totalEnded": 123,
"undefined": 123,
"totalConnected": 123
}
}
}{
"code": 123
}โI