provider Api20100401CallRecording POST /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json
@utdk/twilio /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json
Create a recording for the call
Create a recording for the call
AccountSid path required
The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource.
string
CallSid path required
The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) to associate the resource with.
string

Try it

Authentication
Configure credentials for Twilio - Api
createcallrecording
POST/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json
Create a recording for the call

Parameters

required

The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource.

required

The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) to associate the resource with.

Input

The recording status events on which we should call the `recording_status_callback` URL. Can be: `in-progress`, `completed` and `absent` and the default is `completed`. Separate multiple event values with a space.

The URL we should call using the `recording_status_callback_method` on each recording event specified in `recording_status_callback_event`. For more information, see [RecordingStatusCallback parameters](https://www.twilio.com/docs/voice/api/recording#recordingstatuscallback).

The HTTP method we should use to call `recording_status_callback`. Can be: `GET` or `POST` and the default is `POST`.

Whether to trim any leading and trailing silence in the recording. Can be: `trim-silence` or `do-not-trim` and the default is `do-not-trim`. `trim-silence` trims the silence from the beginning and end of the recording and `do-not-trim` does not.

The number of channels used in the recording. Can be: `mono` or `dual` and the default is `mono`. `mono` records all parties of the call into one channel. `dual` records each party of a 2-party call into separate channels.

The audio track to record for the call. Can be: `inbound`, `outbound` or `both`. The default is `both`. `inbound` records the audio that is received by Twilio. `outbound` records the audio that is generated from Twilio. `both` records the audio that is received and generated by Twilio.

The identifier of the configuration to be used when creating and processing the recording

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import twilio from '@utdk/twilio';

await twilio.createcallrecording()