Get record details
Overview
To get a detailed information on a voice record by its identifier, make the GET request to /accounts/{accountSID}/recordings/{recordSID}.
Request example (default)
curl –X GET https://api.apifonica.com/v2/accounts/{accountSID}/recordings/{recordSID} \
-u {accountSID}:{authToken}
Response example
{
"call_sid": "{callSID}",
"call_created": "Fri, 21 Apr 2017 13:01:25 +0000",
"account_sid": "{accountSID}",
"from": "358942417543",
"to": "79031550066",
"number_sid": "{numberSID}",
"direction": "outbound",
"record_created": "Fri, 21 Apr 2017 13:03:12 +0000",
"size": 8,
"price": 0.00010,
"exp_date": "Sat, 21 Apr 2018 13:03:12 +0000",
"record_sid": "rec17cb9958-3878-4562-b6a7-f67a0adsfsdfd",
"rec_url": "https://api.apifonica.com/v2/accounts/{accountSID}/recordings/rec17cb9958-3878-4562-b6a7-f67a0adsfsdfd.wav"
}
Request example (mp3)
The following example demonstrates getting the recording in mp3 format.
curl –X GET https://api.apifonica.com/v2/accounts/{accountSID}/recordings/{recordSID}?format=mp3 \
-u {accountSID}:{authToken}
Response example
{
"call_sid": "{callSID}",
"call_created": "Fri, 21 Apr 2017 13:01:25 +0000",
"account_sid": "{accountSID}",
"from": "358942417543",
"to": "79031550066",
"number_sid": "{numberSID}",
"direction": "outbound",
"record_created": "Fri, 21 Apr 2017 13:03:12 +0000",
"size": 8,
"price": 0.00010,
"exp_date": "Sat, 21 Apr 2018 13:03:12 +0000",
"record_sid": "rec17cb9958-3878-4562-b6a7-f67a0adsfsdfd",
"rec_url": "https://api.apifonica.com/v2/accounts/{accountSID}/recordings/rec17cb9958-3878-4562-b6a7-f67a0adsfsdfd.mp3"
}
Response parameters
Parameter | Description |
---|---|
call_sid | Call identifier. |
call_created | Call creation date. 'dateFormat' => 'Thu, 07 Jul 2016 10:15:53 +0000' |
account_sid | Account identifier. |
from | Caller’s phone number. |
to | Recipient’s phone number. |
number_sid | Unique identifier of the number acquired from Apifonica and used for this call. |
direction | Call Direction. |
record_created | Date of creation of the file with the record. 'dateFormat' => 'Thu, 07 Jul 2016 10:15:53 +0000'. |
size | The size of the file with the recording in MB. |
price | Total price of the record storage in EURO. |
exp_date | The expiration date of the file with the record. |
record_sid | System identifier associated with the record file. |
rec_url | Link to download a file with a record (wav and mp3 are supported) |