graphlife Docs graphlife.app

Integration API

Calling the API

Send an API key as a bearer token. A key (glk_...) is minted for one graph by a signed-in owner or organisation admin, and carries a scope: the groups it reads, the tools it may call, and how much of a node it sees.

POST https://graphlife.example.com/v1/live/search
Authorization: Bearer glk_...
Content-Type: application/json

{"query": "Marco"}
{"result": [{"id": "...", "kind": "individual", "label": "Marco Rossi"}]}

Every operation on a graph is a tool. There are two ways to call one, and they are the same call:

Form Body
POST/v1/live/{tool} the tool's arguments
POST/v1/live {"tool": "<name>", "args": {...}}

Both answer {"result": ..., "revision": n}; revision is present after a call that wrote. POST /v1/live/mcp is the same set of tools over the Model Context Protocol, for assistants.

A key reads only what its scope allows. What it may not see is absent from every answer, and a node it only knows exists is shown as a stub with "withheld": true.