Integration API
GraphLife integration API
How a program reads, writes and follows a GraphLife graph over plain HTTP.
Every example uses https://graphlife.example.com; put the address of your
own server in its place.
Calling the APISend 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…Errors and request idsTreat the object as open. New fields and new codes are added; none is removed.Rate limitsEach API key and each OAuth token has its own allowance: 100 calls a second, with a burst of 1,000, unless the server is configured otherwise. A signed-in…Listing and pagingThree tools read a graph without a search term or a node to start from.API keys: expiry, rotation, editingKeys are minted, listed, revoked and edited by a signed-in person (a session token), never by a key. The one thing a key may do to itself is rotate its secret.Service accountsA key minted by a person is held to that person's role and groups on every call, and stops working when they leave the organisation. A service account is a…Routes that accept a keyA handful of routes that otherwise need a signed-in person also take an API key, when the key's scope holds the tool that names the route. These tools are…The change feedGET /v1/graphs/{id}/changes?order=asc is every change to a graph after a sync token, oldest first, with nothing skipped. It takes a session, or a key…WebhooksA webhook is the change feed, POSTed to a URL of yours as changes happen. It carries exactly what its registrar could read from the feed at the moment of…OpenAPI and tool discoveryThe API as an OpenAPI 3.1 document. It is public (no credential) and may be cached for five minutes. It covers the tool routes, /v1/ask, keys, the change…The Python and TypeScript clientsBoth find out on their first call whether the address is a GraphLife server or the separate single-graph gateway, by asking /health without the key. Pass…Server settingsEnvironment variables of the server that change what an integration sees.