Skip to main content
The <Record> element records audio from the call and returns the URL of the recording file. Use it for voicemail, call logging, or quality monitoring.

Basic Usage


Attributes

Basic Settings

Timing

Session Recording

Transcription

Callbacks


Voicemail


Record Entire Session

Record the complete call in the background:
Notes:
  • Recording starts immediately and continues until the call ends
  • timeout, finishOnKey, and playBeep are ignored
  • Recording is sent to callbackUrl when complete

Record Dial Conversation

Record both parties after the dial connects:

Stereo vs Mono Recording

Stereo (default): Each party on separate audio channels - useful for call analytics. Mono: Both parties on single channel - smaller file size.

With Transcription

Get automatic speech-to-text:
Transcription limits:
  • English only
  • Duration: 500ms to 4 hours
  • File size: under 2GB

Action URL Parameters

Sent when recording completes: Note: When recordSession or startOnDialAnswer is true, duration values are -1 in the initial request. Final values are sent to callbackUrl.

Callback URL Parameters

Sent when recording file is ready:

Transcription URL Parameters


Best Practices

  1. Inform callers - Always notify that the call is being recorded (legal requirement in many jurisdictions)
  2. Set appropriate limits - Use maxLength to prevent very long recordings
  3. Use callbacks - Use callbackUrl for reliable notification when recording is ready
  4. Choose format wisely - MP3 for smaller files, WAV for highest quality
  5. Handle storage - Download recordings from Plivo; they’re deleted after 30 days