Schedule Calls Batch
curl --request POST \
--url https://api.telli.com/v1/schedule-calls-batch \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"contacts": [
{
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_id": "<string>",
"max_retry_days": 123,
"override_from_number": "<string>",
"schedule": {
"at": "2024-01-01T10:00:00.000Z",
"ignore_dialing_window": false
}
}
]
}
'import requests
url = "https://api.telli.com/v1/schedule-calls-batch"
payload = { "contacts": [
{
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_id": "<string>",
"max_retry_days": 123,
"override_from_number": "<string>",
"schedule": {
"at": "2024-01-01T10:00:00.000Z",
"ignore_dialing_window": False
}
}
] }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
contacts: [
{
contact_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
agent_id: '<string>',
max_retry_days: 123,
override_from_number: '<string>',
schedule: {at: '2024-01-01T10:00:00.000Z', ignore_dialing_window: false}
}
]
})
};
fetch('https://api.telli.com/v1/schedule-calls-batch', 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.telli.com/v1/schedule-calls-batch",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'contacts' => [
[
'contact_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'agent_id' => '<string>',
'max_retry_days' => 123,
'override_from_number' => '<string>',
'schedule' => [
'at' => '2024-01-01T10:00:00.000Z',
'ignore_dialing_window' => false
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.telli.com/v1/schedule-calls-batch"
payload := strings.NewReader("{\n \"contacts\": [\n {\n \"contact_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"agent_id\": \"<string>\",\n \"max_retry_days\": 123,\n \"override_from_number\": \"<string>\",\n \"schedule\": {\n \"at\": \"2024-01-01T10:00:00.000Z\",\n \"ignore_dialing_window\": false\n }\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
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.telli.com/v1/schedule-calls-batch")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"contacts\": [\n {\n \"contact_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"agent_id\": \"<string>\",\n \"max_retry_days\": 123,\n \"override_from_number\": \"<string>\",\n \"schedule\": {\n \"at\": \"2024-01-01T10:00:00.000Z\",\n \"ignore_dialing_window\": false\n }\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.telli.com/v1/schedule-calls-batch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"contacts\": [\n {\n \"contact_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"agent_id\": \"<string>\",\n \"max_retry_days\": 123,\n \"override_from_number\": \"<string>\",\n \"schedule\": {\n \"at\": \"2024-01-01T10:00:00.000Z\",\n \"ignore_dialing_window\": false\n }\n }\n ]\n}"
response = http.request(request)
puts response.read_body[
{
"contact_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"status": "success",
"loop_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901"
},
{
"contact_id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
"status": "success",
"loop_id": "d4e5f6a7-b8c9-0123-defg-h23456789012"
},
{
"contact_id": "e5f6a7b8-c9d0-1234-efgh-i34567890123",
"status": "error",
"error_message": "Contact not found",
"error_code": 400
}
]{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Anruf-Endpunkte
Anrufe planen (Batch)
Schedules multiple calls in a single request. Limited to 50 contacts per request.
POST
/
v1
/
schedule-calls-batch
Schedule Calls Batch
curl --request POST \
--url https://api.telli.com/v1/schedule-calls-batch \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"contacts": [
{
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_id": "<string>",
"max_retry_days": 123,
"override_from_number": "<string>",
"schedule": {
"at": "2024-01-01T10:00:00.000Z",
"ignore_dialing_window": false
}
}
]
}
'import requests
url = "https://api.telli.com/v1/schedule-calls-batch"
payload = { "contacts": [
{
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_id": "<string>",
"max_retry_days": 123,
"override_from_number": "<string>",
"schedule": {
"at": "2024-01-01T10:00:00.000Z",
"ignore_dialing_window": False
}
}
] }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
contacts: [
{
contact_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
agent_id: '<string>',
max_retry_days: 123,
override_from_number: '<string>',
schedule: {at: '2024-01-01T10:00:00.000Z', ignore_dialing_window: false}
}
]
})
};
fetch('https://api.telli.com/v1/schedule-calls-batch', 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.telli.com/v1/schedule-calls-batch",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'contacts' => [
[
'contact_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'agent_id' => '<string>',
'max_retry_days' => 123,
'override_from_number' => '<string>',
'schedule' => [
'at' => '2024-01-01T10:00:00.000Z',
'ignore_dialing_window' => false
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.telli.com/v1/schedule-calls-batch"
payload := strings.NewReader("{\n \"contacts\": [\n {\n \"contact_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"agent_id\": \"<string>\",\n \"max_retry_days\": 123,\n \"override_from_number\": \"<string>\",\n \"schedule\": {\n \"at\": \"2024-01-01T10:00:00.000Z\",\n \"ignore_dialing_window\": false\n }\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
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.telli.com/v1/schedule-calls-batch")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"contacts\": [\n {\n \"contact_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"agent_id\": \"<string>\",\n \"max_retry_days\": 123,\n \"override_from_number\": \"<string>\",\n \"schedule\": {\n \"at\": \"2024-01-01T10:00:00.000Z\",\n \"ignore_dialing_window\": false\n }\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.telli.com/v1/schedule-calls-batch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"contacts\": [\n {\n \"contact_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"agent_id\": \"<string>\",\n \"max_retry_days\": 123,\n \"override_from_number\": \"<string>\",\n \"schedule\": {\n \"at\": \"2024-01-01T10:00:00.000Z\",\n \"ignore_dialing_window\": false\n }\n }\n ]\n}"
response = http.request(request)
puts response.read_body[
{
"contact_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"status": "success",
"loop_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901"
},
{
"contact_id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
"status": "success",
"loop_id": "d4e5f6a7-b8c9-0123-defg-h23456789012"
},
{
"contact_id": "e5f6a7b8-c9d0-1234-efgh-i34567890123",
"status": "error",
"error_message": "Contact not found",
"error_code": 400
}
]{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Autorisierungen
API key must be provided as: Bearer <api_key>
Body
application/json
Array of contacts to schedule calls for. Maximum 50 contacts per request.
Show child attributes
Show child attributes
Antwort
Calls scheduled successfully
The telli contact ID (only present for successful scheduling)
Status of the call scheduling
Verfügbare Optionen:
success, error The call loop ID (only present for successful scheduling)
Error message (only present for failed scheduling)
Error code (only present for failed scheduling)
Verwandte Themen
Kontakte hinzufügen & Anrufe planenMit deinem CRM integrierenErste Schritte mit telliWar diese Seite hilfreich?