import Surge from '@surgeapi/node';const client = new Surge({ apiKey: process.env['SURGE_API_KEY'], // This is the default and can be omitted});const response = await client.recordings.getFile('rec_01kfyc9dgdec1avkgs7tng8htg');console.log(response.error);
Copy
Ask AI
This response has no body data.
Recordings
Get file
Redirects to a signed URL where the recording audio file can be downloaded. URL is short-lived, so redirect should be followed immediately.
GET
/
recordings
/
{recording_id}
/
file
JavaScript
Copy
Ask AI
import Surge from '@surgeapi/node';const client = new Surge({ apiKey: process.env['SURGE_API_KEY'], // This is the default and can be omitted});const response = await client.recordings.getFile('rec_01kfyc9dgdec1avkgs7tng8htg');console.log(response.error);