GET
/
documents
/
{id}
/
tuples
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.tuples('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 tuples for

Query Parameters

stream
boolean

Whether to stream the tuples back as a stream of JSON server-sent events

target_graph_owner
string | null

The owner of the target graph to add tuples to

target_graph_name
string | null

The name of the target graph to add tuples to

Response

200

Successfully retrieved document tuples