Download File
client.beta.files.download(stringfileID, FileDownloadParams { betas } params?, RequestOptionsoptions?): Response
/v1/files/{file_id}/content?beta=true
Download File
Parameters
fileID: string
ID of the File.
Returns
unnamed_schema_0 = Response
Download File
TypeScript
import Anthropic from '@anthropic-ai/sdk';
const client = new Anthropic({
apiKey: 'my-anthropic-api-key',
});
const response = await client.beta.files.download('file_id');
console.log(response);
const content = await response.blob();
console.log(content);