Retrieve scheduled callbacks for the specified agency
curl --request GET \
--url https://app.closerx.ai/api/scheduled-callbacks/agency/{company_name}/ \
--header 'Company-Name: <company-name>' \
--header 'api_key: <api-key>'import requests
url = "https://app.closerx.ai/api/scheduled-callbacks/agency/{company_name}/"
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/scheduled-callbacks/agency/{company_name}/', 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/scheduled-callbacks/agency/{company_name}/",
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/scheduled-callbacks/agency/{company_name}/"
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/scheduled-callbacks/agency/{company_name}/")
.header("Company-Name", "<company-name>")
.header("api_key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.closerx.ai/api/scheduled-callbacks/agency/{company_name}/")
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,
"agency_id": "<string>",
"scheduled_tasks": [
{
"id": 123,
"name": "<string>",
"task": "<string>",
"clocked": {
"clocked_time": "2023-11-07T05:31:56Z"
},
"enabled": true,
"args": "<string>"
}
],
"quick_campaign_results": [
{
"id": 123,
"error": "<string>"
}
]
}
]{
"success": true,
"message": "<string>",
"data": {}
}Callbacks
Scheduled Callbacks
Fetches the list of scheduled callbacks for the agency ‘voizerfreeaccount’.
GET
/
scheduled-callbacks
/
agency
/
{company_name}
/
Retrieve scheduled callbacks for the specified agency
curl --request GET \
--url https://app.closerx.ai/api/scheduled-callbacks/agency/{company_name}/ \
--header 'Company-Name: <company-name>' \
--header 'api_key: <api-key>'import requests
url = "https://app.closerx.ai/api/scheduled-callbacks/agency/{company_name}/"
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/scheduled-callbacks/agency/{company_name}/', 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/scheduled-callbacks/agency/{company_name}/",
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/scheduled-callbacks/agency/{company_name}/"
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/scheduled-callbacks/agency/{company_name}/")
.header("Company-Name", "<company-name>")
.header("api_key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.closerx.ai/api/scheduled-callbacks/agency/{company_name}/")
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,
"agency_id": "<string>",
"scheduled_tasks": [
{
"id": 123,
"name": "<string>",
"task": "<string>",
"clocked": {
"clocked_time": "2023-11-07T05:31:56Z"
},
"enabled": true,
"args": "<string>"
}
],
"quick_campaign_results": [
{
"id": 123,
"error": "<string>"
}
]
}
]{
"success": true,
"message": "<string>",
"data": {}
}Authorizations
Headers
The schema name for multi-tenancy (company-wise DB separation)
Response
Successfully retrieved scheduled callbacks
Indicates whether the request was successful
The unique ID of the agency (e.g., voizerfreeaccount)
List of scheduled tasks associated with the agency
Show child attributes
Show child attributes
List of results for the quick campaign, including errors or success information
Show child attributes
Show child attributes
⌘I
