Skip to main content
GET
/
graphs
/
{owner}
/
{name}
/
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() {
  const response = await client.graphs.getTuples('owner', 'name');

  console.log(response.tuples);
}

main();
{
  "tuples": [
    {
      "subject": "Person1",
      "predicate": "worksAt",
      "object": "Company1"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

owner
string
required

The owner of the graph

name
string
required

The name of the graph

Response

200 - application/json

Successfully retrieved graph tuples

tuples
Tuple · object[]
required