Elept

Twilio Recordings Integration

Automate ingestion of telephony call recordings. Upload audio logs from Twilio to your own private vault, verify file size boundaries, and delete files from Twilio servers automatically.

HTTP Endpoint

POST /api/v1/twilio/recording
Content-Type: application/json

Request Parameters (JSON Body)

Field Type Required Description
call_sid string Yes The unique Twilio Call SID (e.g. CA...).
recording_sid string Yes The unique Twilio Recording SID (e.g. RE...).
recording_url string Yes The Twilio mp3 recording file URL.
duration integer Yes The duration of the call recording in seconds.
delete_from_twilio boolean No If true, deletes the source recording from Twilio after successful vault ingestion (requires configured Twilio account credentials).

Telephony Backend Workflow

Normally, your webhook handler receives a callback from Twilio when a call completes. In your handler code, trigger Elept:

// Triggers recording vaulting inside your status callback code:
$client = new HttpClient();
$client->post('https://elept.com/api/v1/twilio/recording', [
  'headers' => ['Authorization' => 'Bearer YOUR_API_KEY'],
  'json' => [
    'call_sid' => $_POST['CallSid'],
    'recording_sid' => $_POST['RecordingSid'],
    'recording_url' => $_POST['RecordingUrl'],
    'duration' => $_POST['RecordingDuration'],
    'delete_from_twilio' => true
  ]
]);
← Back to Welcome Guide