List batches
curl --request GET \
--url https://aipro.placetel.de/api/v1/outbound/batches \
--header 'Authorization: Bearer <token>'import requests
url = "https://aipro.placetel.de/api/v1/outbound/batches"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://aipro.placetel.de/api/v1/outbound/batches', 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://aipro.placetel.de/api/v1/outbound/batches",
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://aipro.placetel.de/api/v1/outbound/batches"
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://aipro.placetel.de/api/v1/outbound/batches")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://aipro.placetel.de/api/v1/outbound/batches")
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{
"success": true,
"batches": [
{
"batch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"batch_created_at": "2023-11-07T05:31:56Z",
"agent_name": "<string>",
"agent_number": "<string>",
"phone_count": 123,
"called_count": 123,
"approved_count": 123,
"pending_count": 123,
"rejected_count": 123,
"expired_count": 123,
"cancelled_count": 123,
"mode": "direct"
}
],
"total_pages": 3,
"current_page": 1,
"total_entries": 42
}{
"success": false,
"error": "<string>",
"error_type": "<string>",
"detail": "<string>"
}{
"success": false,
"error": "<string>",
"error_type": "<string>",
"detail": "<string>"
}Batches
List batches
List the call batches for your account, newest first. Single calls also get a batch, so every call you place via this API appears here.
Returns 20 batches per page.
GET
/
batches
List batches
curl --request GET \
--url https://aipro.placetel.de/api/v1/outbound/batches \
--header 'Authorization: Bearer <token>'import requests
url = "https://aipro.placetel.de/api/v1/outbound/batches"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://aipro.placetel.de/api/v1/outbound/batches', 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://aipro.placetel.de/api/v1/outbound/batches",
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://aipro.placetel.de/api/v1/outbound/batches"
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://aipro.placetel.de/api/v1/outbound/batches")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://aipro.placetel.de/api/v1/outbound/batches")
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{
"success": true,
"batches": [
{
"batch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"batch_created_at": "2023-11-07T05:31:56Z",
"agent_name": "<string>",
"agent_number": "<string>",
"phone_count": 123,
"called_count": 123,
"approved_count": 123,
"pending_count": 123,
"rejected_count": 123,
"expired_count": 123,
"cancelled_count": 123,
"mode": "direct"
}
],
"total_pages": 3,
"current_page": 1,
"total_entries": 42
}{
"success": false,
"error": "<string>",
"error_type": "<string>",
"detail": "<string>"
}{
"success": false,
"error": "<string>",
"error_type": "<string>",
"detail": "<string>"
}Autorisierungen
Generate (or rotate) your token on the Outbound Calls page in your dashboard. The token is shown once - store it securely; rotating it invalidates the previous token. A token only reaches your own agents and data.
Abfrageparameter
Erforderlicher Bereich:
x >= 1War diese Seite hilfreich?