Surge
DELETE
/recordings/{id}

Deletes a recording. The recording file will be removed from storage asynchronously.

Authorization

authorization
AuthorizationBearer <token>

In: header

Path Parameters

id*string

The ID of the recording.

Response Body

application/json

application/json

curl -X DELETE "https://api.surge.app/recordings/rec_01kfyc9dgdec1avkgs7tng8htg"
{
  "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"
}
{
  "error": {
    "message": "The requested resource could not be found.",
    "type": "not_found"
  }
}