Skip to main content

CallRecordingsService

A list of all methods in the CallRecordingsService service. Click on the method name to view detailed information about that method.

MethodsDescription
read_call_recording_contentReturns media content of a call recording (audio/mpeg or audio/wav) This API must be called via media API entry point, e.g. https://media.ringcentral.com
delete_company_call_recordingsDeletes company call recordings by their IDs. Please note: This method deletes the recording file itself, not the record of it in the call log.
read_call_recordingReturns call recordings by ID(s).

read_call_recording_content

Returns media content of a call recording (audio/mpeg or audio/wav) This API must be called via media API entry point, e.g. https://media.ringcentral.com

  • HTTP Method: GET
  • Endpoint: /restapi/v1.0/account/{accountId}/recording/{recordingId}/content

Parameters

NameTypeRequiredDescription
account_idstrInternal identifier of the RingCentral account (can be set to "~" to indicate that the account associated with current authorization session should be used)
recording_idstrInternal identifier of a call recording (returned in Call Log)
content_dispositionContentDispositionWhether the content is expected to be displayed in the browser, or downloaded and saved locally
content_disposition_filenamestrThe default filename of the file to be downloaded

Return Type

any

Example Usage Code Snippet

from ring_central import RingCentral, Environment
from ring_central.models import ContentDisposition

sdk = RingCentral(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)

result = sdk.call_recordings.read_call_recording_content(
account_id="~",
recording_id="625387632786",
content_disposition="Inline",
content_disposition_filename="contentDispositionFilename"
)

print(result)

delete_company_call_recordings

Deletes company call recordings by their IDs. Please note: This method deletes the recording file itself, not the record of it in the call log.

  • HTTP Method: DELETE
  • Endpoint: /restapi/v1.0/account/{accountId}/call-recordings

Parameters

NameTypeRequiredDescription
request_bodyCallRecordingIdsThe request body.
account_idstrInternal identifier of the RingCentral account (can be set to "~" to indicate that the account associated with current authorization session should be used)

Example Usage Code Snippet

from ring_central import RingCentral, Environment
from ring_central.models import CallRecordingIds

sdk = RingCentral(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)

request_body = CallRecordingIds(
records=[
"records"
]
)

result = sdk.call_recordings.delete_company_call_recordings(
request_body=request_body,
account_id="~"
)

print(result)

read_call_recording

Returns call recordings by ID(s).

  • HTTP Method: GET
  • Endpoint: /restapi/v1.0/account/{accountId}/recording/{recordingId}

Parameters

NameTypeRequiredDescription
account_idstrInternal identifier of the RingCentral account (can be set to "~" to indicate that the account associated with current authorization session should be used)
recording_idstrInternal identifier of a call recording (returned in Call Log)

Return Type

GetCallRecordingResponse

Example Usage Code Snippet

from ring_central import RingCentral, Environment

sdk = RingCentral(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)

result = sdk.call_recordings.read_call_recording(
account_id="~",
recording_id="625387632786"
)

print(result)

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →