Skip to main content

Getting Started

REST API​

A REST API is available via port 8088. You can use this port to access the API on the machine running TrustGraph without having to install any dependencies. If running locally, the URL is:

https://localhost:8088/api/v1/

The TrustGraph API always accepts JSON in request bodies and returns JSON in response bodies. You will need to send the content-type: application/json header in requests.

Python CLI and SDK​

Currently TrustGraph supports Python. To maximize flexibility, the CLI is divided into the following Python libraries on PyPI:

  • trustgraph-base (Required)
  • trustgraph-bedrock (Optional)
  • trustgraph-cli (Required)
  • trustgraph-embeddings-hf (Optional)
  • trustgraph-flow (Optional)
  • trustgraph-parquet (Optional)
  • trustgraph-vertexai (Optional)

To install the required libraries:

pip install trustgraph-cli

Installing the trustgraph-cli library will also install trustgraph-base which includes the Python SDK. The other libraries are optional.

Example API Notebooks​