Get Campaign Progress
curl --request GET \
--url https://app.asisso.com/api/v1/campaign/{campaign_id}/progressimport requests
url = "https://app.asisso.com/api/v1/campaign/{campaign_id}/progress"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.asisso.com/api/v1/campaign/{campaign_id}/progress', 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.asisso.com/api/v1/campaign/{campaign_id}/progress",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.asisso.com/api/v1/campaign/{campaign_id}/progress"
req, _ := http.NewRequest("GET", url, nil)
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.asisso.com/api/v1/campaign/{campaign_id}/progress")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.asisso.com/api/v1/campaign/{campaign_id}/progress")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"campaign_id": 123,
"state": "<string>",
"total_rows": 123,
"processed_rows": 123,
"failed_calls": 123,
"progress_percentage": 123,
"source_sync": {},
"rate_limit": 123,
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Campaigns
Get Campaign Progress
Get the current progress of a campaign
GET
/
api
/
v1
/
campaign
/
{campaign_id}
/
progress
Get Campaign Progress
curl --request GET \
--url https://app.asisso.com/api/v1/campaign/{campaign_id}/progressimport requests
url = "https://app.asisso.com/api/v1/campaign/{campaign_id}/progress"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.asisso.com/api/v1/campaign/{campaign_id}/progress', 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.asisso.com/api/v1/campaign/{campaign_id}/progress",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.asisso.com/api/v1/campaign/{campaign_id}/progress"
req, _ := http.NewRequest("GET", url, nil)
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.asisso.com/api/v1/campaign/{campaign_id}/progress")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.asisso.com/api/v1/campaign/{campaign_id}/progress")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"campaign_id": 123,
"state": "<string>",
"total_rows": 123,
"processed_rows": 123,
"failed_calls": 123,
"progress_percentage": 123,
"source_sync": {},
"rate_limit": 123,
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Returns a real-time snapshot of how many contacts have been processed.
| Field | Description |
|---|---|
total | Total number of contacts in the campaign |
processed | Contacts that have been attempted at least once |
completed | Contacts with a successful call outcome |
failed | Contacts that exhausted all retry attempts without success |
pending | Contacts not yet attempted |
completion_percentage | processed / total × 100 |
Path Parameters
Response
Successful Response
⌘I