Skip to main content
GET
/
v4
/
beta
/
files
/
{file_id}
/
content
JavaScript
import SGPClient from 'sgp';

const client = new SGPClient({
  apiKey: 'My API Key',
});

const response = await client.beta.files.content('file_id');

console.log(response);

const content = await response.blob();
console.log(content);
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

x-api-key
string
header
required

Headers

x-selected-account-id
string

Path Parameters

file_id
string
required

Response

Successful Response