Query parameters
Name |
Type |
Required |
Description |
src |
string
|
false |
source phone number
|
dst |
string
|
false |
destination phone number
|
duration |
integer
|
false |
duration in seconds
|
date_from |
string
|
false |
datetime in format: 'yyyy-MM-dd HH:mm:ss' (2024-12-27 08:00:00)
|
date_to |
string
|
false |
datetime in format: 'yyyy-MM-dd HH:mm:ss' (2024-12-27 16:59:00)
|
order_dir |
string-enum
|
false |
Allowed values: [ASC,DESC]
Default value: DESC
|
order_by |
string-enum
|
false |
Allowed values: [added,calldate,dst,src,duration]
Default value: added
|
limit |
integer
|
false |
limit the number of records returned (used for paginating result)
Default value: 2
|
limit_from |
integer
|
false |
record offset to return data from (used for paginating result)
|
Requires permissions
Title |
Access |
Company Recording |
Read |
Request example
curl -G -H 'Authorization: Bearer <>' \
-d 'date_from=2024-01-01%2008%3A00%3A00' \
-d 'date_to=2024-06-13%2016%3A59%3A00' \
-d 'src=' \
-d 'dst=' \
"https://api-nguc.weblink.se/company/recordings"
Response example
{
"count": "157",
"limit": 2,
"limit_from": 0,
"recordings": [
{
"id": "",
"added": "2024-06-10 12:06:43",
"downloaded": "0",
"channel_id": "",
"pbx_user_id": "",
"call_guid": "",
"duration": "0",
"uploaded": null,
"pbx_cdr_id": "",
"direction": null,
"src_callerid": "",
"src_name": "",
"dst_callerid": "",
"dst_name": ""
},
{
"id": "",
"added": "2024-05-30 16:22:12",
"downloaded": "0",
"channel_id": "",
"pbx_user_id": "",
"call_guid": "",
"duration": "25",
"uploaded": null,
"pbx_cdr_id": "",
"direction": null,
"src_callerid": "",
"src_name": "Missing",
"dst_callerid": "",
"dst_name": ""
}
]
}