Integration API
OpenAPI and tool discovery
GET/v1/openapi.json#
The 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 feed, export, extraction, webhooks, service accounts and /health,
with the error object and the list of known error codes (x-known-codes).
curl https://graphlife.example.com/v1/openapi.json -o graphlife.openapi.json
serversis[{"url": "/"}], and the OAuth URLs are relative. The document never names a host. Give your generator or client the address of your own server.- Each tool is its own operation (
live_search,live_list_nodes, ...), so a generator gives one typed method per tool. The other operation ids arelive_call,live_tools,ask,keys_create,keys_list,keys_revoke,keys_update,keys_rotate,key_rotate_self,changes,export,extract_submit,extract_jobs,webhooks_create,webhooks_list,webhooks_update,webhooks_delete,webhooks_test,service_accounts_create,service_accounts_list,service_accounts_update,service_accounts_deleteandhealth. - Schemas keep to what an OpenAPI 3.0 generator also reads. A field that can
be
nullin an answer (nextCursor, a key'sexpiresAt, a webhook'slastStatus, ...) is described without atype, and its description says what it holds. error.codeis a plain string, not an enum, so a new code does not break a generated client.- Webhook deliveries are described under
webhooks, and again as the schemasWebhookDeliveryandWebhookEventfor generators that skipwebhooks.
GET/v1/live/tools#
What the calling credential may do, with the schema of each tool's arguments:
GET https://graphlife.example.com/v1/live/tools
Authorization: Bearer glk_...
{"tools": [{"name": "search", "title": "...", "description": "...",
"inputSchema": {"type": "object", "properties": {"...": {}}},
"readOnly": true, "mcp": true}]}
Only the tools the credential's scope allows are listed. mcp is false for a
tool that is not offered over the MCP endpoint (ask). The call counts
against the rate limit like any other.
POST/v1/live/{tool}#
One path per tool, with the arguments as the whole body. It is the same call
as POST /v1/live {"tool", "args"}: same credential, same scope, same answer,
same errors.
POST /v1/live/list_nodes {"kind": "event", "limit": 200}
POST /v1/live {"tool": "list_nodes", "args": {"kind": "event", "limit": 200}}