Get Batch Statistics (Overall Progress)
curl --request GET \
--url https://sa.dialgen.ai/api/v1/batch/check-status \
--header 'Authorization: Bearer <token>'import requests
url = "https://sa.dialgen.ai/api/v1/batch/check-status"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sa.dialgen.ai/api/v1/batch/check-status', 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://sa.dialgen.ai/api/v1/batch/check-status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://sa.dialgen.ai/api/v1/batch/check-status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sa.dialgen.ai/api/v1/batch/check-status")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sa.dialgen.ai/api/v1/batch/check-status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"batchId": "batch_1767385567962_...",
"status": "completed",
"priority": 5,
"statistics": {
"total": 1,
"processed": 1,
"succeeded": 1,
"failed": 0,
"pending": 0,
"percentComplete": 100,
"successRate": 100
},
"performance": {
"callsPerSecond": 0.01,
"estimatedTimeRemaining": null,
"elapsedTime": 72
},
"timestamps": {
"createdAt": "2026-01-02T20:27:34.060Z",
"startedAt": "2026-01-02T20:27:34.059Z",
"completedAt": "2026-01-02T20:28:46.214Z"
},
"recentCalls": [
{
"id": "cmjxbsai4001...",
"callSid": "CA123...",
"status": "COMPLETED",
"duration": 46,
"createdAt": "2026-01-02T20:27:34.060Z",
"phoneNumber": "+1234567890",
"contactName": "John Doe"
}
],
"webhooks": null,
"agentId": "cmghxkg2p...",
"userId": "user_33m..."
}{
"error": "Bad Request",
"message": "Missing required parameter"
}{
"error": "Unauthorized",
"message": "Invalid or missing API key"
}{
"error": "Not Found",
"message": "Resource not found"
}{
"error": "Internal Server Error",
"message": "An unexpected error occurred"
}Batches
Get Batch Statistics (Overall Progress)
Retrieves high-level statistics for a batch from persistent storage. This is a lightweight call to check the overall progress of your campaign.
GET
/
api
/
v1
/
batch
/
check-status
Get Batch Statistics (Overall Progress)
curl --request GET \
--url https://sa.dialgen.ai/api/v1/batch/check-status \
--header 'Authorization: Bearer <token>'import requests
url = "https://sa.dialgen.ai/api/v1/batch/check-status"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sa.dialgen.ai/api/v1/batch/check-status', 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://sa.dialgen.ai/api/v1/batch/check-status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://sa.dialgen.ai/api/v1/batch/check-status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sa.dialgen.ai/api/v1/batch/check-status")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sa.dialgen.ai/api/v1/batch/check-status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"batchId": "batch_1767385567962_...",
"status": "completed",
"priority": 5,
"statistics": {
"total": 1,
"processed": 1,
"succeeded": 1,
"failed": 0,
"pending": 0,
"percentComplete": 100,
"successRate": 100
},
"performance": {
"callsPerSecond": 0.01,
"estimatedTimeRemaining": null,
"elapsedTime": 72
},
"timestamps": {
"createdAt": "2026-01-02T20:27:34.060Z",
"startedAt": "2026-01-02T20:27:34.059Z",
"completedAt": "2026-01-02T20:28:46.214Z"
},
"recentCalls": [
{
"id": "cmjxbsai4001...",
"callSid": "CA123...",
"status": "COMPLETED",
"duration": 46,
"createdAt": "2026-01-02T20:27:34.060Z",
"phoneNumber": "+1234567890",
"contactName": "John Doe"
}
],
"webhooks": null,
"agentId": "cmghxkg2p...",
"userId": "user_33m..."
}{
"error": "Bad Request",
"message": "Missing required parameter"
}{
"error": "Unauthorized",
"message": "Invalid or missing API key"
}{
"error": "Not Found",
"message": "Resource not found"
}{
"error": "Internal Server Error",
"message": "An unexpected error occurred"
}Authorizations
Bearer token authentication. Obtain your API key from the Dialgen API Keys dashboard at https://sa.dialgen.ai/api-keys
Query Parameters
The ID returned from POST /api/v1/batch
Example:
"batch_1678886400_agent_clx123..."
Number of recent calls to return. Defaults to 10. Use 'all' or '-1' to return all calls in the batch.
Example:
"20"
Response
Batch statistics retrieved successfully
Available options:
ingesting, scheduled, pending, processing, completed, cancelled Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I