GET
/
v4
/
beta
/
files
/
{file_id}
/
content
import SGPClient from 'sgp';

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

async function main() {
  const response = await client.beta.files.content('file_id');

  console.log(response);

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

main();
"<any>"

Authorizations

x-api-key
string
header
required

Path Parameters

file_id
string
required

Response

200
application/json
Successful Response

The response is of type any.