List Queued Calls
curl --request GET \
--url https://client-backend.oktivo.com/api/v1/crm/calls/queue \
--header 'Authorization: Bearer <token>'import requests
url = "https://client-backend.oktivo.com/api/v1/crm/calls/queue"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://client-backend.oktivo.com/api/v1/crm/calls/queue', 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://client-backend.oktivo.com/api/v1/crm/calls/queue",
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://client-backend.oktivo.com/api/v1/crm/calls/queue"
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://client-backend.oktivo.com/api/v1/crm/calls/queue")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://client-backend.oktivo.com/api/v1/crm/calls/queue")
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,
"data": [
{
"queueId": "dfc_9fQ2xK1mZp",
"contactUID": "contact_7f8a9b0c1d2e",
"state": "scheduled",
"type": "scheduled",
"reason": "scheduled",
"phone": "+919876543210",
"name": "Priya Sharma",
"agentId": "agt_123",
"agentName": "Sales Agent",
"campaignUID": "api_call_3e4f5g6h7i8j",
"kind": "api",
"scheduledFor": "2026-03-02T04:00:00.000Z",
"notBefore": "2026-03-02T04:00:00.000Z",
"expiresAt": "2026-03-03T04:00:00.000Z",
"attempts": 0,
"outcome": null,
"lastError": null,
"createdAt": "2026-03-01T10:15:00.000Z",
"updatedAt": "2026-03-01T10:15:00.000Z"
}
],
"pagination": { "page": 1, "pageSize": 25, "total": 1, "totalPages": 1, "hasMore": false },
"requestId": "3f1c2c0e-6a41-4e0b-9f0e-1f2d6f1b8a77",
"timestamp": "2026-03-02T04:05:00.000Z",
"meta": {
"page": 1,
"pageSize": 25,
"total": 1,
"totalPages": 1,
"hasMore": false
}
}
Calls
List Queued Calls
Calls that are scheduled for a time or waiting to be placed, plus what became of finished ones.
GET
/
api
/
v1
/
crm
/
calls
/
queue
List Queued Calls
curl --request GET \
--url https://client-backend.oktivo.com/api/v1/crm/calls/queue \
--header 'Authorization: Bearer <token>'import requests
url = "https://client-backend.oktivo.com/api/v1/crm/calls/queue"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://client-backend.oktivo.com/api/v1/crm/calls/queue', 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://client-backend.oktivo.com/api/v1/crm/calls/queue",
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://client-backend.oktivo.com/api/v1/crm/calls/queue"
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://client-backend.oktivo.com/api/v1/crm/calls/queue")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://client-backend.oktivo.com/api/v1/crm/calls/queue")
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,
"data": [
{
"queueId": "dfc_9fQ2xK1mZp",
"contactUID": "contact_7f8a9b0c1d2e",
"state": "scheduled",
"type": "scheduled",
"reason": "scheduled",
"phone": "+919876543210",
"name": "Priya Sharma",
"agentId": "agt_123",
"agentName": "Sales Agent",
"campaignUID": "api_call_3e4f5g6h7i8j",
"kind": "api",
"scheduledFor": "2026-03-02T04:00:00.000Z",
"notBefore": "2026-03-02T04:00:00.000Z",
"expiresAt": "2026-03-03T04:00:00.000Z",
"attempts": 0,
"outcome": null,
"lastError": null,
"createdAt": "2026-03-01T10:15:00.000Z",
"updatedAt": "2026-03-01T10:15:00.000Z"
}
],
"pagination": { "page": 1, "pageSize": 25, "total": 1, "totalPages": 1, "hasMore": false },
"requestId": "3f1c2c0e-6a41-4e0b-9f0e-1f2d6f1b8a77",
"timestamp": "2026-03-02T04:05:00.000Z",
"meta": {
"page": 1,
"pageSize": 25,
"total": 1,
"totalPages": 1,
"hasMore": false
}
}
A call is in the queue when you scheduled it with
The
scheduledAt, or when it could not be placed right now and you sent deferIfUnavailable: true. Finished entries stay visible for 30 days.
Query Parameters
Comma-separated states:
scheduled, waiting, dialing, placed, failed, expired, cancelled. Omit for all states.scheduled: you picked the time.waiting: held until the calling window or voice service is available.dialing: being placed right now.failed: could not be placed (for example no credits or Do Not Disturb). Seeoutcome.expired: not placed beforeexpiresAt.
notBefore (call time) or createdAt. Default: soonest first for active states, newest first otherwise.{
"success": true,
"data": [
{
"queueId": "dfc_9fQ2xK1mZp",
"contactUID": "contact_7f8a9b0c1d2e",
"state": "scheduled",
"type": "scheduled",
"reason": "scheduled",
"phone": "+919876543210",
"name": "Priya Sharma",
"agentId": "agt_123",
"agentName": "Sales Agent",
"campaignUID": "api_call_3e4f5g6h7i8j",
"kind": "api",
"scheduledFor": "2026-03-02T04:00:00.000Z",
"notBefore": "2026-03-02T04:00:00.000Z",
"expiresAt": "2026-03-03T04:00:00.000Z",
"attempts": 0,
"outcome": null,
"lastError": null,
"createdAt": "2026-03-01T10:15:00.000Z",
"updatedAt": "2026-03-01T10:15:00.000Z"
}
],
"pagination": { "page": 1, "pageSize": 25, "total": 1, "totalPages": 1, "hasMore": false },
"requestId": "3f1c2c0e-6a41-4e0b-9f0e-1f2d6f1b8a77",
"timestamp": "2026-03-02T04:05:00.000Z",
"meta": {
"page": 1,
"pageSize": 25,
"total": 1,
"totalPages": 1,
"hasMore": false
}
}
Related endpoints
| Endpoint | Purpose |
|---|---|
GET /api/v1/crm/calls/queue/summary | Counts per state and nextDueAt. |
GET /api/v1/crm/calls/queue/{id} | One entry, by queueId or contactUID. |
DELETE /api/v1/crm/calls/queue/{id} | Cancel a scheduled or waiting call. Returns 409 if it is already being dialed or finished, 404 if unknown. |
contactUID returned when the call was accepted is the same id the call has once it is placed, so you can keep using it with Get Call Status.