graphlife Docs graphlife.app

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
  • servers is [{"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 are live_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_delete and health.
  • Schemas keep to what an OpenAPI 3.0 generator also reads. A field that can be null in an answer (nextCursor, a key's expiresAt, a webhook's lastStatus, ...) is described without a type, and its description says what it holds.
  • error.code is 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 schemas WebhookDelivery and WebhookEvent for generators that skip webhooks.

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}}