List Calls
curl --request GET \
--url https://api.rapidcall.ai/api/calls \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.rapidcall.ai/api/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.rapidcall.ai/api/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.rapidcall.ai/api/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.rapidcall.ai/api/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.rapidcall.ai/api/calls")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rapidcall.ai/api/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_bodyCalls
List Calls
Get call history for the current workspace
GET
/
api
/
calls
List Calls
curl --request GET \
--url https://api.rapidcall.ai/api/calls \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.rapidcall.ai/api/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.rapidcall.ai/api/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.rapidcall.ai/api/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.rapidcall.ai/api/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.rapidcall.ai/api/calls")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rapidcall.ai/api/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_bodynumber
Items per page (default: 20, max: 100).
number
Number of items to skip (default: 0).
string
Filter by agent ID.
string
Start date filter (ISO 8601 format).
string
End date filter (ISO 8601 format).
Request
curl -H "Authorization: Bearer YOUR_TOKEN" \
"https://api.rapidcall.ai/api/calls?limit=20&offset=0"
Response
{
"calls": [
{
"id": "call_abc123",
"workspaceId": "ws_xyz",
"agentId": "agent_xyz",
"agentName": "Reception Bot",
"to": "+15559876543",
"fromNumber": "+15551234567",
"direction": "inbound",
"roomName": "room_abc123",
"startedAt": 1705312200000,
"endedAt": 1705312345000,
"durationSec": 145,
"outcome": "completed",
"costUsd": 0.23,
"transcript": [],
"recording": null,
"metrics": null,
"analysisStatus": null,
"postCallExtractionResults": [],
"createdAt": "2025-01-15T10:30:00Z",
"updatedAt": "2025-01-15T10:32:25Z"
}
]
}
- The
tofield contains the dialed number,"webtest"for web calls, or"demo"for demo calls. - The
directionfield is"inbound","outbound", or"web". costUsdis the total cost charged to the workspace for this call.
