Get List of Recordings
Here’s how to get a list of recordings:
CURL
1
curl -X GET https://api.teleapi.net/call/2012-04-24/Accounts/ACCOUNT_SID/Recordings.json \
2
-u 'teleapi-Token'
Copied!
The response will be similar to the one below.
1
{"page":0,"num_pages":0,"page_size":50,"total":34,"start":"0","end":"34","uri":"/call/2012-04-24/Accounts/ACae6e420f425248d6a26948c17a9e2acf/Recordings.json","first_page_uri":"/call/2012-04-24/Accounts/ACae6e420f425248d6a26948c17a9e2acf/Recordings.json?Page=0&PageSize=50","previous_page_uri":"null","next_page_uri":"null","last_page_uri":"/call/2012-04-24/Accounts/ACae6e420f425248d6a26948c17a9e2acf/Recordings.json?Page=0&PageSize=50","recordings":
2
[
3
{
4
"sid":"RFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
5
"date_created":"Mon, 6 Jan 2014 08:51:07 +0900",
6
"date_updated":"Mon, 6 Jan 2014 08:51:07 +0900",
7
"account_sid":"ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
8
"call_sid":"CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
9
"duration":"14.70275",
10
"api_version":"2012-04-24",
11
"uri":"/2012-04-24/Accounts/ACae6e420f425248d6a26948c17a9e2acf/Recordings/RE50675909d9c94acda36f0e119b6cb431.json",
12
"file_uri":"https://calls.teleapi.net/call/recordings/RE50675909d9c94acda36f0e119b6cb431.wav"
13
},
14
...
15
]
16
}
Copied!
<Sid> holds the file name of the recorded message. The recording Sid.wav is available in the file system only.
If you want to return the recording url you will need to parse the <Uri>/2012-04-24/Accounts/ACae6e420f425248d6a26948c17a9e2acf/Recordings/REb4c03af76cdc4a27aad0d9d759e119bc</Uri> response from teleapi and add the extension .wav
The <Uri> holds the http URI that can be used for playback or to download the recorded message. Here is how to access the file using https://calls.teleapi.net/call/recordings/REb4c03af76cdc4a27aad0d9d759e119bc.wav
Copy link