cURL
curl --request GET \
--url https://app.closerx.ai/api/v2/dashboard_data_v2/ \
--header 'Company-Name: <company-name>' \
--header 'api_key: <api-key>'import requests
url = "https://app.closerx.ai/api/v2/dashboard_data_v2/"
headers = {
"Company-Name": "<company-name>",
"api_key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Company-Name': '<company-name>', api_key: '<api-key>'}
};
fetch('https://app.closerx.ai/api/v2/dashboard_data_v2/', 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://app.closerx.ai/api/v2/dashboard_data_v2/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Company-Name: <company-name>",
"api_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://app.closerx.ai/api/v2/dashboard_data_v2/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Company-Name", "<company-name>")
req.Header.Add("api_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://app.closerx.ai/api/v2/dashboard_data_v2/")
.header("Company-Name", "<company-name>")
.header("api_key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.closerx.ai/api/v2/dashboard_data_v2/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Company-Name"] = '<company-name>'
request["api_key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>",
"total_cost": 123,
"total_call_duration": 123,
"completed_calls_percentage": 123,
"other_call_percentage": 123,
"monthly_data": [
{
"name": "<string>",
"data": [
123
]
}
]
}{
"success": true,
"message": "<string>",
"data": {}
}Dashboard Data
Get Monthly Analytics
Returns the call success rate,average response time,ai accurary rate and total balance
GET
/
v2
/
dashboard_data_v2
/
cURL
curl --request GET \
--url https://app.closerx.ai/api/v2/dashboard_data_v2/ \
--header 'Company-Name: <company-name>' \
--header 'api_key: <api-key>'import requests
url = "https://app.closerx.ai/api/v2/dashboard_data_v2/"
headers = {
"Company-Name": "<company-name>",
"api_key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Company-Name': '<company-name>', api_key: '<api-key>'}
};
fetch('https://app.closerx.ai/api/v2/dashboard_data_v2/', 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://app.closerx.ai/api/v2/dashboard_data_v2/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Company-Name: <company-name>",
"api_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://app.closerx.ai/api/v2/dashboard_data_v2/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Company-Name", "<company-name>")
req.Header.Add("api_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://app.closerx.ai/api/v2/dashboard_data_v2/")
.header("Company-Name", "<company-name>")
.header("api_key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.closerx.ai/api/v2/dashboard_data_v2/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Company-Name"] = '<company-name>'
request["api_key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>",
"total_cost": 123,
"total_call_duration": 123,
"completed_calls_percentage": 123,
"other_call_percentage": 123,
"monthly_data": [
{
"name": "<string>",
"data": [
123
]
}
]
}{
"success": true,
"message": "<string>",
"data": {}
}Authorizations
Headers
The name of the schema to be used for the request
Response
Dashboard data response
Indicates whether the data fetch was successful
Message describing the result of the request
Total cost of the calls
Total duration of all calls in seconds
Percentage of calls that were completed
Percentage of other (non-completed) calls
Array of monthly data metrics
Show child attributes
Show child attributes
⌘I
