cURL
curl --request GET \
--url https://app.closerx.ai/api/v2/campaign-results/ \
--header 'Company-Name: <company-name>' \
--header 'api_key: <api-key>'import requests
url = "https://app.closerx.ai/api/v2/campaign-results/"
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/campaign-results/', 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/campaign-results/",
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/campaign-results/"
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/campaign-results/")
.header("Company-Name", "<company-name>")
.header("api_key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.closerx.ai/api/v2/campaign-results/")
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{
"count": 123,
"next": "<string>",
"previous": "<string>",
"results": [
{
"id": 123,
"sid": "<string>",
"full_name": "<string>",
"contact_number": "<string>",
"call_duration": 123,
"status": "<string>",
"appointment_booked": true,
"outcome": "<string>",
"contact_id": 123,
"direction": "<string>",
"recording_url": "<string>",
"transcription": [
"<string>"
],
"transcription_text": "<string>",
"notes": "<string>",
"improvement_tags": [
"<string>"
],
"credit_deduction": "<string>",
"errors": "<string>",
"calender_id": 123,
"response_sentiment": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"campaign": "<string>"
}
]
}{
"success": true,
"message": "<string>",
"data": {}
}Dashboard Data
Get Campaign Results
Returns the campaign distribution
GET
/
v2
/
campaign-results
/
cURL
curl --request GET \
--url https://app.closerx.ai/api/v2/campaign-results/ \
--header 'Company-Name: <company-name>' \
--header 'api_key: <api-key>'import requests
url = "https://app.closerx.ai/api/v2/campaign-results/"
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/campaign-results/', 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/campaign-results/",
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/campaign-results/"
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/campaign-results/")
.header("Company-Name", "<company-name>")
.header("api_key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.closerx.ai/api/v2/campaign-results/")
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{
"count": 123,
"next": "<string>",
"previous": "<string>",
"results": [
{
"id": 123,
"sid": "<string>",
"full_name": "<string>",
"contact_number": "<string>",
"call_duration": 123,
"status": "<string>",
"appointment_booked": true,
"outcome": "<string>",
"contact_id": 123,
"direction": "<string>",
"recording_url": "<string>",
"transcription": [
"<string>"
],
"transcription_text": "<string>",
"notes": "<string>",
"improvement_tags": [
"<string>"
],
"credit_deduction": "<string>",
"errors": "<string>",
"calender_id": 123,
"response_sentiment": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"campaign": "<string>"
}
]
}{
"success": true,
"message": "<string>",
"data": {}
}Authorizations
Headers
The name of the schema to be used for the request
⌘I
