Get Call Recording

GET /masking/calls/:call_sid/recording — get a short-lived signed URL to download the call recording.

Get Call Recording

GET /masking/calls/:call_sid/recording

Returns a short-lived signed URL (valid for 1 hour) that streams the recording. The URL is path-only and relative to the API origin — prefix it with https://voice-api.edesy.in to download. Recordings are typically available within a few seconds of the call ending.

Path parameters

Parameter Type Required Description
call_sid string (UUID) Yes The call_sid returned by Initiate a Call.

Request

curl https://voice-api.edesy.in/v1/masking/calls/d28be7cd-9840-4b23-9627-199f1ef81fc6/recording \
  -H "Authorization: Bearer vp_YOUR_API_KEY"
const response = await fetch(
  "https://voice-api.edesy.in/v1/masking/calls/d28be7cd-9840-4b23-9627-199f1ef81fc6/recording",
  { headers: { "Authorization": "Bearer vp_YOUR_API_KEY" } },
);
console.log(await response.json());
import requests

response = requests.get(
    "https://voice-api.edesy.in/v1/masking/calls/d28be7cd-9840-4b23-9627-199f1ef81fc6/recording",
    headers={"Authorization": "Bearer vp_YOUR_API_KEY"},
)
print(response.json())

Responses

200 — Signed download URL (valid 1h)

{
  "data": {
    "url": "/v1/public/recordings/masking/d28be7cd-9840-4b23-9627-199f1ef81fc6?t=1747091400.aXKy3...",
    "call_sid": "d28be7cd-9840-4b23-9627-199f1ef81fc6"
  }
}

Prefix the url with https://voice-api.edesy.in to download the file.

404 — Call has no recording (e.g. it never connected) or doesn't exist

{
  "error": { "code": "not_found", "message": "No recording available for this call" }
}