Get a Recording URL by CDR Leg ID

Gets a temporary URL of a recording of the current user by CDR leg ID, which is used for playing or downloading the recording.

Request URL

GET {base_url}/uc-creport/api/v1/my-recordings/by-leg/{cdrLegId}/url

Request parameters

Headers
Parameter Required Type Description
Authorization Yes String The access token used for authentication.

Format: Bearer {access_token}.

x-tenant-code Yes String The tenant name.
Note: You can obtain tenant name using the Query Tenants interface.
Path parameters
Parameter Required Type Description
cdrLegId Yes String The CDR leg ID. You can obtain the ID using the Search My Recordings interface.
Query parameters
Parameter Required Type Description
action No String

The action type, which determines the audit log to write.

Valid value:

  • play: Plays the recording and writes a play audit log.
  • download: Downloads the recording and writes a download audit log.

Response parameters

Parameter Type Description
requestId String The unique ID of the request, which can be used to quickly locate the request.
code String The HTTP status code of the request.
  • 200: Request succeeded.
  • Non-200 value: Request failed.
message String The status message of the request.
detailMessage String The detailed error information.

When the request is successful, this parameter returns empty.

result Object<My_Recording_URL> The temporary URL of the recording.
My_Recording_URL
Parameter Type Description
url String The temporary URL issued by the resource service, which can be used for playing or downloading.
expireAt String The expiration time of the URL, in Unix timestamp format (seconds).

Example

Request example

GET /uc-creport/api/v1/my-recordings/by-leg/347642293061275650/url?action=download HTTP/1.1
Host: api.cn.novoone.com
Authorization: Bearer eyJraWQiOiJjbi0wLWtleS0xIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiIxMDAwQGNvbG9ydGVzdDIiLCJncmFudF90eXBlIjoicGFzc3dvcmQiLCJ1c2VyX25hbWUiOiIxMDAwQGNvbG9ydGVzdDIiLCJzY29wZSI6WyJyZWFkIiwid3JpdGUiXSwiY2xpZW50X2V4dCI6eyJkZXNjcmlwdGlvbiI6IueuoeeQhuWQjuWPsFdlYuW6lOeUqCIsInBsYXRmb3JtIjoid2ViIn0sImV4cCI6MTc5MjA4ODUwNywiaWF0IjoxNzkyMDY2OTA3LCJqdGkiOiI4MTNmYWI5NS0zNmRiLTQ0MGYtOGRkZi0yYjZjYjhkYWVkNjEiLCJjbGllbnRfaWQiOiJub3ZvLWFkbWluLXdlYiIsInNpZCI6ImViMWMyMzdmLWRkZjYtNDFiZi05YTVjLTM4MTc2YTczODM1NiIsInVzZXJfZXh0Ijp7InJvbGVJZHMiOlsxMDJdLCJwdWlkIjozMDc2OTEzNjQ0OTE1OTk4NzIwLCJ0ZW5hbnRJZCI6MjA3OTUwNDIwNTMwOTE5NDI0MSwicGFyZW50VWNJZCI6MzA3NjkxMzY0NDg5MDgzMjg5NiwidGVuYW50Q29kZSI6ImNvbG9ydGVzdDIiLCJ0eXBlIjoiVF9VU0VSIiwidXNlcklkIjoyMDc5NzQ2OTE1Mzg4MDc2MDMzLCJlbWFpbCI6Imxlb0BzYW1wbGUuY29tIiwidXNlcm5hbWUiOiIxMDAwQGNvbG9ydGVzdDIiLCJ1Y0lkIjozMDc2OTEzNjQ0ODkwODMyODk2fX0.DOxmJmRqO_Yj3_vN20uiTcMbV3x8YODs7D5g6fTuW09I3pqj36ZZGab5xz0jMWSeTAiduhK7eUUt08XyJ4proWDzPwsREP6sqmN0PhilHKetj5ZqKbwNEybwGY44hfYaWfiUoQ5yOfuVIK1EDn0CZFZjojeDrLsjTPyO_hYTd2TU9HafSsnH7cYMw9qkGrxfyjewv3DaJTbzmTVIvdzm0KLijZhq5pssqXxfJtAeX2lqZkMFTMESG5iuwNF1zXl5kzGjJTaH3PtGf5nkg5OkMvb389KO2v4BzkrjnITGHezhOEBJMjqx0N8GYXY6TH6KvTn19Yv6RUi-pPoDvEGaog
x-tenant-code: colortest2

Response example

HTTP/1.1 404 Not Found
{
  "requestId": "0297ba3315666940c042522bacf3f5e3",
  "code": "1551404001",
  "message": "COMMCTL_REPORT_RECORDING_NOT_FOUND",
  "detailMessage": "recording not found",
  "result": null
}
Note:

The recording exists in the tenant but is not visible to the tested user, so the API returned 404 COMMCTL_REPORT_RECORDING_NOT_FOUND. A request for a recording visible to the current user will return 2xx.