Company recordings
By combining data from the endpoints company/recordings and recording you can easily access your companys recorded calls.
Common use cases:- Download recorded calls for review
- Transcribe recorded calls using a Speech to text-service
| 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)
|
| Title | Access |
|---|---|
| Company Recording | Read |
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"
{
"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": ""
}
]
}
| Name | Type | Required | Description |
|---|---|---|---|
| recordingId | integer | true |
unique recording id
|
| audioType | string-enum | false |
fileformat of the requested recording.
Allowed values: [mp3,wav] Default value: mp3 |
| Title | Access |
|---|---|
| Company Recording | Read |
curl -H 'Authorization: Bearer <>' \
"https://api-nguc.weblink.se/recording/stored/{RECORDING_ID}/mp3" \
-o 'recording.mp3' \