curl --request GET \
--url https://api.talqing.com/v1/calls \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.talqing.com/v1/calls"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.talqing.com/v1/calls', 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.talqing.com/v1/calls",
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://api.talqing.com/v1/calls"
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://api.talqing.com/v1/calls")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.talqing.com/v1/calls")
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{
"has_more": true,
"items": [
{
"agent": {
"channel": "<string>",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": {},
"recording": {
"state": "none",
"bytes": 123,
"download_url": "<string>",
"duration_s": 123,
"expires_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"url": "<string>",
"url_expires_at": "2023-11-07T05:31:56Z"
},
"region": "us",
"started_at": "2023-11-07T05:31:56Z",
"status": "<string>",
"type": "WEB",
"close_reason": "<string>",
"close_reason_label": "<string>",
"contact_key": "<string>",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cost": {
"platform_fee": 123,
"provider_cost": 123,
"total_charge": 123,
"duration_s": 123
},
"duration_s": 123,
"ended_at": "2023-11-07T05:31:56Z",
"from_e164": "<string>",
"message_count": 0,
"outcome": "success",
"plan": {
"draft": true,
"inline": true,
"members": 123,
"overridden": true
},
"resumed_from_call_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"stream_connection_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"summary": "<string>",
"to_e164": "<string>",
"total_audio_ms": 0
}
],
"limit": 123,
"offset": 123
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>",
"code": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>",
"code": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>",
"code": "<string>"
}
}List Calls
List voice and video calls, newest first, with status, duration and cost.
The window defaults to the last 30 days. Filter by agent_id, by type to
separate web calls from phone calls, by contact_key for one customer’s
whole history, or by batch_id for every call one outbound batch placed.
Text conversations are not calls — those live under list_conversations.
curl --request GET \
--url https://api.talqing.com/v1/calls \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.talqing.com/v1/calls"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.talqing.com/v1/calls', 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.talqing.com/v1/calls",
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://api.talqing.com/v1/calls"
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://api.talqing.com/v1/calls")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.talqing.com/v1/calls")
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{
"has_more": true,
"items": [
{
"agent": {
"channel": "<string>",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": {},
"recording": {
"state": "none",
"bytes": 123,
"download_url": "<string>",
"duration_s": 123,
"expires_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"url": "<string>",
"url_expires_at": "2023-11-07T05:31:56Z"
},
"region": "us",
"started_at": "2023-11-07T05:31:56Z",
"status": "<string>",
"type": "WEB",
"close_reason": "<string>",
"close_reason_label": "<string>",
"contact_key": "<string>",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cost": {
"platform_fee": 123,
"provider_cost": 123,
"total_charge": 123,
"duration_s": 123
},
"duration_s": 123,
"ended_at": "2023-11-07T05:31:56Z",
"from_e164": "<string>",
"message_count": 0,
"outcome": "success",
"plan": {
"draft": true,
"inline": true,
"members": 123,
"overridden": true
},
"resumed_from_call_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"stream_connection_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"summary": "<string>",
"to_e164": "<string>",
"total_audio_ms": 0
}
],
"limit": 123,
"offset": 123
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>",
"code": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>",
"code": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>",
"code": "<string>"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
1 <= x <= 200x >= 0window start (default: 30d ago)
window end (default: now)
how the call reached the agent
WEB, SIP_INBOUND, SIP_OUTBOUND, STREAM, WHATSAPP_INBOUND queued, in_progress, completed, failed or canceled
success, failure or unknown — whether the call achieved its purpose, as judged by post-call analysis
your stable id for the person on the call — every call with that one customer, however many numbers they rang from
exactly how the call ended, e.g. participant_disconnected, transferred, sip_user_unavailable_failed — the same strings the observability endings breakdown ranks
only calls placed by this outbound batch, retries included
key:value pairs, all must match.