Accounts and access
GraphLife HTTP API reference, part 1: accounts and access
This document describes every HTTP route of the GraphLife server that concerns identity and access: health, accounts and sessions, API keys, OAuth for MCP clients, single sign-on, organisations, members, roles, and organisation administration. It does not describe the routes that read and write graph content; those are covered in graph data and the integration API.
All examples use https://graphlife.example.com as the base URL. Replace it with the address of your own deployment.
ConventionsRequest and response formats, timestamps, identifiers, field naming and how unknown routes and missing resources are answered.Authentication schemesThere are several kinds of token. Each kind opens a different set of routes.Error formatcode is a stable, machine-readable string; treat it as the contract. message is one sentence for a person reading a log; it may be reworded, so do not match…Rate limits and fixed limitsRate limits are held in the server's memory and reset when the process restarts. The per-route limits below are fixed; the per-account and per-credential…Health and public pagesReports that the server is running and which optional features are configured. Public.Accounts and sessionsAn account is an email address and a password (or an SSO identity; see section 9). Email addresses are trimmed and lower-cased before they are stored or…API keysKeys are minted, listed, edited and revoked by a signed-in account. There is no way to mint a key with another key; a key whose scope holds rotate_key can…OAuth 2.1 for MCP clientsThe server is its own OAuth 2.1 authorization server. It exists so that MCP clients which require OAuth, rather than a pasted API key, can connect to the…Single sign-on (OIDC)SSO is off by default. It is turned on by setting the OIDC_PROVIDERS environment variable. While it is off, every route in this section answers 404 with…Organisations, members and rolesAn organisation is a set of accounts that share graphs. All organisation routes require a session. A call without one answers 401 unauthorized. A call on an…Organisation administrationRoutes for organisation admins: the audit trail, how long audit events are kept, and exporting an organisation.Other credential typesTwo further credentials exist for features of the first-party apps. They are listed here so that the picture of "what can authenticate to this server" is…Configuration that affects this areaAll configuration is by environment variable, read once at start-up. A change needs a restart.Route indexEvery route covered by this document, in the order of the sections above.