Skip to main content
DELETE
/
recordings
/
{id}
JavaScript
import Surge from '@surgeapi/node';

const client = new Surge({
  apiKey: process.env['SURGE_API_KEY'], // This is the default and can be omitted
});

const recording = await client.recordings.delete('rec_01kfyc9dgdec1avkgs7tng8htg');

console.log(recording.id);
{
  "call": {
    "contact": {
      "email": "dom@toretto.family",
      "first_name": "Dominic",
      "id": "ctc_01ja88cboqffhswjx8zbak3ykk",
      "last_name": "Toretto",
      "metadata": {
        "car": "1970 Dodge Charger R/T"
      },
      "phone_number": "+18015551234"
    },
    "duration": 184,
    "id": "call_01jjnn7s0zfx5tdcsxjfy93et2",
    "initiated_at": "2025-03-31T21:01:37Z",
    "status": "completed"
  },
  "duration": 124,
  "id": "rec_01kfyc9dgdec1avkgs7tng8htg"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The ID of the recording.

Example:

"rec_01kfyc9dgdec1avkgs7tng8htg"

Response

Deleted recording

A call recording

call
object
required

The call that produced this recording

duration
integer
required

The duration of the recording in seconds

id
string
required

The unique identifier for the recording