Call Record Details
Method for retrieving detailed information about a call recording in Liner by its identifier.
Endpoint and method
GET /v2/call-record/detail/{callRecordId}/
callRecordId
Call record identifier in Liner. Value> 0
Request example
<?php
$host = 'https://YOUR_LINER_API_HOST';
$token = 'YOUR_API_TOKEN';
$callRecordId = (int)$callRecordId;
$ch = curl_init($host . '/v2/call-record/detail/' . $callRecordId);
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Content-Type: application/json',
'X-Api-Key: ' . $token,
],
CURLOPT_TIMEOUT => 15,
]);
$response = curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
if ($response === false) {
throw new RuntimeException('cURL error: ' . curl_error($ch));
}
curl_close($ch);
echo "HTTP {$httpCode}\n";
echo $response;
const host = "https://YOUR_LINER_API_HOST";
const token = "YOUR_API_TOKEN";
const callRecordId = Number(callRecordId);
const res = await fetch(`${host}/v2/call-record/detail/${callRecordId}`, {
method: "GET",
headers: {
"Content-Type": "application/json",
"X-Api-Key": token
}
});
const data = await res.json();
console.log("HTTP", res.status, data);
Response example
{
"success": true,
"message": "",
"data": {
"id": 123,
"userId": 456,
"leadId": 789,
"isTransfer": false,
"durationSeconds": 60,
"fileUrl": "https://example.com/record.mp3",
"recordSummary": null,
"createdAt": "2024-01-01T00:00:00Z"
}
}
Response fields
| Field | Type | Description |
|---|---|---|
id |
int |
Call record identifier. |
userId |
int |
Identifier of the agent (user) who processed the call. |
leadId |
int |
Lead identifier the call record belongs to. |
isTransfer |
bool |
Whether the recording was made during a transfer. |
durationSeconds |
int |
Recording duration (seconds). |
fileUrl |
string |
URL to the call recording file. |
recordSummary |
string | null |
AI-generated call summary. |
createdAt |
string |
Call record creation date and time in Liner (ISO 8601). |
Note
The structure of the data field is described above. For the overall API response format, see Request Schema