GET
/
documents
/
{id}
/
contents
JavaScript
import Tractorbeam from 'tractorbeam';

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

async function main() {
  await client.documents.contents('doc_2yYISEvrO9LrLAOJjnw27');
}

main();

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

The ID of the document to get contents for

Response

303

Redirect to signed URL for document contents