Accessing CDRs and Recordings
Last updated
Was this helpful?
Last updated
Was this helpful?
This guide outlines how to leverage the PortSIP REST API to interact with Call Detail Records (CDRs) and call recordings.
Before making any API requests, you must successfully . This token serves as a security credential to authorize your interactions with the PortSIP REST API.
Access to CDRs and recordings is restricted based on user roles within a tenant:
Admin or Queue Manager: Users with these roles can access CDRs and recordings at the tenant level, meaning they can view data for all users within the tenant.
Regular Users: Regular users can only access their own CDRs and recordings, limiting their visibility to personal call data.
POST
/api/cdrs
Retrieve the CDRs at the tenant level using the specified query parameters.
Headers
Content-Type
application/json
Authorization
Bearer <token>
Query Options
You can specify the query options as the URL parameters to filter the CDR, for more details please see .
Response
POST
/api/recordings
Retrieve the call recordings at the tenant level using the specified query parameters.
Headers
Content-Type
application/json
Authorization
Bearer <token>
Query Options
Response
POST
/api/recordings/{id}
This API endpoint allows you to fetch detailed information about a specific recording based on its unique identifier.
Headers
Content-Type
application/json
Authorization
Bearer <token>
Query Options
Response
GET
/api/blobs/rZTOS5yB5elnATSbfxd_pgAQQKn01i8M
Simply make a GET request to the specified file_url
to initiate the download. The recording file will be available for download at the provided location.
You can specify the query options as the URL parameters to filter the CDR, , for more details please see .
Specify the recording ID which you parsed from the response of as the URL path.
Once you have , the response will contain a file_url
property. Use this URL to directly download the recording file. No additional authentication (e.g., access token) is required for this download request.