Skip to content
Get started

Download file

client.files.download(stringfileID, RequestOptionsoptions?): Response
GET/v1/files/{file_id}/content

Download the original uploaded file content.

ParametersExpand Collapse
fileID: string

The unique identifier of the file.

ReturnsExpand Collapse
unnamed_schema_3 = Response

Download file

import DeepTable from '@deeptable/deeptable';

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

const response = await client.files.download('file_01kfxgjd94fn9stqm414vjb0s8');

console.log(response);

const content = await response.blob();
console.log(content);
Returns Examples