Fetch All Calls - API
Retrieves a paginated list of SIP calls associated with the authenticated user. Supports filters like room, session, call ID, gateway, rule, type, and search by
sipCallTo
or sipCallFrom
.HTTP method and endpoint
GET
|
https://api.videosdk.live/v2/sip/callHeaders Parameters
REQUIRED
values : YOUR_TOKEN_WITHOUT_ANY_PREFIX
This will be a JWT token generate using VideoSDK ApiKey and Secret.
Note that the token will not include any prefix such as "Basic " or "Bearer ". Just pass a token as value.
You can generate a new token by refering this Guide: Generate Auth token
Query Parameters
OPTIONAL
Filter calls by specific room ID.
OPTIONAL
Filter calls by session ID.
OPTIONAL
Filter calls by unique call ID.
OPTIONAL
Filter calls by SIP Gateway ID.
OPTIONAL
Filter calls by Routing Rule ID.
OPTIONAL
Filter by call type (e.g.,
outbound
, inbound
). OPTIONAL
Search by
sipCallTo
or sipCallFrom
(case-insensitive). OPTIONAL
Filter calls created on or after this date (timestamp in ms).
OPTIONAL
Filter calls created on or before this date (timestamp in ms). Entire end day is included.
OPTIONAL
Page number for pagination. Defaults to 1.
OPTIONAL
Number of items per page. Defaults to 10.
Response Parameters
HTTP status code (200 on success).
Current page number.
Number of records per page.
Last available page number.
Total number of calls matching filters.
Unique ID of the call.
Call type (
inbound
or outbound
). Gateway ID associated with the call.
Name of the associated gateway.
Routing Rule ID associated with the call.
Name of the associated routing rule.
Room ID linked to the call.
Destination number (
sipCallTo
). Source number (
sipCallFrom
). Current status of the call.
Array of status change logs with timestamps.
Start timestamp of the call.
End timestamp of the call.
GET
|
https://api.videosdk.live/v2/sip/call
NodeJS
import fetch from 'node-fetch';
const options = {
method: "GET",
headers: {
"Authorization": "$YOUR_TOKEN",
},
};
const url= `https://api.videosdk.live/v2/sip/call?roomId=room_123456&sessionId=sess_123456&id=call_123456789&gatewayId=gw_123456789&ruleId=rule_123456&type=outbound&search=+1415&startDate=1755820800000&endDate=1755907199999&page=1&perPage=10`;
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
RESPONSE
{
"statusCode": 200,
"pageInfo": {
"currentPage": 1,
"perPage": 10,
"lastPage": 5,
"total": 45
},
"data": [
{
"_id": "64f89a7c1a23b4",
"callId": "call_123456789",
"type": "outbound",
"gatewayId": "gw_123456789",
"gatewayName": "US Gateway",
"ruleId": "rule_123456",
"ruleName": "Default Routing Rule",
"roomId": "room_123456",
"to": "+14155550123",
"from": "+14155559876",
"status": "COMPLETED",
"timelog": [
{
"status": "INITIATED",
"timestamp": "2025-08-21T11:45:00.000Z"
},
{
"status": "COMPLETED",
"timestamp": "2025-08-21T11:48:00.000Z"
}
],
"start": "2025-08-21T11:45:00.000Z",
"end": "2025-08-21T11:48:00.000Z",
"sessionId": "sess_123456",
"userId": "usr_123456",
"deleted": false
}
]
}
Got a Question? Ask us on discord