Retrieve scheduled callbacks for all agencies
curl --request GET \
--url https://app.closerx.ai/api/v2/scheduled-callbacks/agency/ \
--header 'Company-Name: <company-name>' \
--header 'api_key: <api-key>'import requests
url = "https://app.closerx.ai/api/v2/scheduled-callbacks/agency/"
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/scheduled-callbacks/agency/', 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/scheduled-callbacks/agency/",
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/scheduled-callbacks/agency/"
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/scheduled-callbacks/agency/")
.header("Company-Name", "<company-name>")
.header("api_key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.closerx.ai/api/v2/scheduled-callbacks/agency/")
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[
{
"total_count": 123,
"total_page": 123,
"current_page_no": 123,
"next_page_number": 123,
"previous_page_number": 123,
"page_size": 123,
"data": [
{
"id": "<string>",
"status": "<string>",
"name": "<string>",
"new_agent": "<string>",
"calling_number": "<string>",
"direction": "<string>",
"status_choices": [
"<string>"
],
"number_rotation": true,
"rotate_number_after_calls": 123,
"release_buyed_when": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"calling_number_pool": [
"<string>"
]
}
]
}
]{
"success": true,
"message": "<string>",
"data": {}
}Callbacks
Callback History
Fetches the list of scheduled callbacks for all agencies.
GET
/
v2
/
scheduled-callbacks
/
agency
/
Retrieve scheduled callbacks for all agencies
curl --request GET \
--url https://app.closerx.ai/api/v2/scheduled-callbacks/agency/ \
--header 'Company-Name: <company-name>' \
--header 'api_key: <api-key>'import requests
url = "https://app.closerx.ai/api/v2/scheduled-callbacks/agency/"
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/scheduled-callbacks/agency/', 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/scheduled-callbacks/agency/",
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/scheduled-callbacks/agency/"
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/scheduled-callbacks/agency/")
.header("Company-Name", "<company-name>")
.header("api_key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.closerx.ai/api/v2/scheduled-callbacks/agency/")
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[
{
"total_count": 123,
"total_page": 123,
"current_page_no": 123,
"next_page_number": 123,
"previous_page_number": 123,
"page_size": 123,
"data": [
{
"id": "<string>",
"status": "<string>",
"name": "<string>",
"new_agent": "<string>",
"calling_number": "<string>",
"direction": "<string>",
"status_choices": [
"<string>"
],
"number_rotation": true,
"rotate_number_after_calls": 123,
"release_buyed_when": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"calling_number_pool": [
"<string>"
]
}
]
}
]{
"success": true,
"message": "<string>",
"data": {}
}Authorizations
Headers
The schema name for multi-tenancy (company-wise DB separation)
Response
Successfully retrieved scheduled callbacks
Total number of records available
Total number of pages available for pagination
The current page number
The page number for the next page, or null if no more pages are available
The page number for the previous page, or null if on the first page
The number of items per page
List of campaign data objects
Show child attributes
Show child attributes
⌘I
