Graph data
GraphLife HTTP API reference, part 2: graph data
This document covers every HTTP route that reads or writes graph data: graphs and snapshots, the live endpoint and its operations, documents, change history, questions, extraction, the inbox, exports and the browser read routes.
Accounts, sign-in, organisations and members are covered in Accounts and access, and the MCP transport in MCP tools. Listing and paging (list_nodes, list_edges, get_nodes), the integration change feed, webhooks, key expiry, rotation and editing, service accounts and the OpenAPI document are covered in the integration API.
All examples use https://graphlife.example.com as the base URL. Replace it with the address of your own deployment.
ConventionsRequests and responses, credentials, not-found behaviour, rate limits and storage limits for the graph data routes.Data model primerpage, file and codebase cannot be created through add_to_graph: an entity with one of these kinds is skipped and reported in rejectedEntities with the…Graphs and snapshotsAll routes in this section take a session token. GET /v1/graphs/{graphId}/export also accepts a live key whose scope holds export (see Export).Live keysA live key is the credential a program uses on the live endpoint. Keys are managed with a session token. On an organisation graph the caller must be an…The live endpointOne endpoint carries every read and write on a readable graph. Each request names one operation (a "tool") and its arguments. The same call can also be made…Change feedWhich nodes changed, who changed them and with which operation: the history view used by the apps, also usable as a long-poll.Documents (owner routes)These session-token routes give the owner of a graph direct access to a node's uploaded files. Programs holding a live key use add_document and get_document…Asking a questionRetrieves the relevant part of a graph and returns an answer with citations. Accepted credentials are the same as for the live endpoint, and the credential…Semantic (vector) searchThere is no HTTP route for vector search and none for managing the index. When enabled, the vector index works behind the context and ask operations:…Extraction: turning text into graph data on the serverExtraction sends a text to a language model, which proposes nodes and relationships; the proposal is then committed to the graph, either after a person…Inbox (encrypted, review-on-device delivery)The inbox is a write-only delivery channel for graphs whose owner wants to review every addition on their own device. A sender holding an inbox token…Exports and other storage routesBoth routes take a session token and require the caller to re-authenticate in the request body: send {"password": "<account password>"}. For an account that…Browser read routesGET /v1/desk/* are the read routes behind the built-in browser client. They are usable as an API by any client holding a session token and return, in one…Route indexVector search and context building have no routes of their own: they are reached through the context and ask operations (sections 5.4, 8 and 9).