Skip to main content
GET
/
attachments
/
{attachment_id}
/
file
JavaScript
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.attachments.getFile('att_01kfyc9dgdec1avkgs7tng8htg');

console.log(response.error);
This response has no body data.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

attachment_id
string
required

The ID of the attachment.

Example:

"att_01kfyc9dgdec1avkgs7tng8htg"

Response