Pause or resume a recording on an active Call

Pause or resume a recording on an active phone call.

Request URL


Basic Authentication

Bandwidth's Voice API leverages Basic Authentication with your Dashboard API Credentials. Read more about how Bandwidth secures endpoints in the Security & Credentials document.

Supported Parameters

Parameter Description Mandatory
state The recording state. Possible values:

paused to pause an active recording
recording to resume a paused recording

Example 1 of 1: Pause a currently active recording

curl -X PUT \
    --url '{accountId}/calls/{callId}/recording' \
     -u '{username}:{password}'
     -H 'Content-type: application/json' \
     --data-raw '
       "state": "paused"
ModifyCallRecordingState modifyCallRecordingState = new ModifyCallRecordingState();

try {
    ApiResponse<Void> response = voiceClient.modifyCallRecordingState(VOICE_ACCOUNT_ID, "callId", modifyCallRecordingState);
} catch (ApiException | IOException e) {
controller.ModifyCallRecordingState(accountId, callId, new ModifyCallRecordingState
    State = State1Enum.PAUSED
body =
body.state = "paused"
voice_client.modify_call_recording_state(VOICE_ACCOUNT_ID, call_id, :body => body)
body = ModifyCallRecordingState()
body.state = "paused"
voice_client.modify_call_recording_state(VOICE_ACCOUNT_ID, call_id, body=body)
import { Client, ApiController } from '@bandwidth/voice';

const client = new Client({
    basicAuthUserName: 'username',
    basicAuthPassword: 'password'

const controller = new ApiController(client);

const accountId = '1111111';
const callId = 'c-abc12345-6defabc1-2345-6def-abc1-23456defabc1';

const response = await controller.modifyCallRecordingState(accountId, callId, {
    state: 'paused'
$body = new BandwidthLib\Voice\Models\ModifyCallRecordingState();
$body->state = "paused";

try {
    $voiceClient->modifyCallRecordingState($accountId, $callId, $body);
} catch (BandwidthLib\APIException $e) {

results matching ""

    No results matching ""