curl --request POST \
--url https://api.getdialed.ai/v1/flows/batches/{batch_id}/requeue \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getdialed.ai/v1/flows/batches/{batch_id}/requeue"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.getdialed.ai/v1/flows/batches/{batch_id}/requeue', 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://api.getdialed.ai/v1/flows/batches/{batch_id}/requeue",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-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://api.getdialed.ai/v1/flows/batches/{batch_id}/requeue"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-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.post("https://api.getdialed.ai/v1/flows/batches/{batch_id}/requeue")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getdialed.ai/v1/flows/batches/{batch_id}/requeue")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"items": [
"dq_9f2c1a4b",
"dq_0d7e83aa"
],
"requeued": 2,
"rows": 100000
}Requeue a batch's held work
Put a batch’s HELD work back in line to be sent.
When a send’s outcome could not be confirmed, that work is held rather than resent: an automatic retry could dial the same people twice. This endpoint is how a person releases that held work once they have decided it is safe. It NEVER runs automatically — nothing in the system requeues held work on its own, and held work waits indefinitely until someone asks.
What happens: the batch’s held records go back to queued and re-enter the paced queue, taking a fresh share of the provider’s rate budget when they are next sent. The batch’s counters move with them. Requeueing the same batch again is safe — the second request reports requeued: 0 because there is nothing left held.
Two refusals, both 409. A batch that was CANCELLED (or has otherwise settled) cannot be requeued: cancelling stops all future sends. And if any held work was sent in the same provider call as another batch’s records — which the system does deliberately to use the provider’s budget well — the whole request is refused and the response names the other batches, because releasing it would re-send records outside the batch you named. Nothing is requeued in that case; the decision is yours.
A batch with nothing held returns requeued: 0, not an error. Requeueing needs no special role: any key for the owning organization can requeue that organization’s own batches. Cross-tenant access returns 404, never 403.
curl --request POST \
--url https://api.getdialed.ai/v1/flows/batches/{batch_id}/requeue \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getdialed.ai/v1/flows/batches/{batch_id}/requeue"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.getdialed.ai/v1/flows/batches/{batch_id}/requeue', 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://api.getdialed.ai/v1/flows/batches/{batch_id}/requeue",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-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://api.getdialed.ai/v1/flows/batches/{batch_id}/requeue"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-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.post("https://api.getdialed.ai/v1/flows/batches/{batch_id}/requeue")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getdialed.ai/v1/flows/batches/{batch_id}/requeue")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"items": [
"dq_9f2c1a4b",
"dq_0d7e83aa"
],
"requeued": 2,
"rows": 100000
}Authorizations
Path Parameters
Response
Successful Response
What a re-drive of a batch's held work actually moved.
requeued counts the held provider calls put back in line and rows the
records they carry — both are what the write CONFIRMED, so a repeat of the
same request reports zeroes rather than re-sending anything. items
identifies the calls that moved.