Integration API
Routes that accept a key
A 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
in no default set. Name them when minting, or add them with
addTools. An OAuth token is not accepted on these routes.
| Tool in the key's scope | Lets the key call |
|---|---|
list_nodes, list_edges |
the two listing tools |
changes |
GET/v1/graphs/{id}/changes?order=asc |
webhooks |
the webhook routes, for the webhooks it registered itself |
export |
GET/v1/graphs/{id}/export |
extract |
POST/v1/graphs/{id}/extract and GET /v1/graphs/{id}/extract/jobs |
rotate_key |
POST/v1/keys/rotate, on itself |
In an organisation, a member or guest may give a key list_nodes,
list_edges, changes and export. extract, webhooks and rotate_key
are an owner's or admin's to hand out, and a key keeps them only while its
principal is one.
These stay session-only: minting, listing, revoking and editing keys; approving, rejecting, undoing and retrying an extraction; the organisation export; publishing and unpublishing a graph; service accounts.
Export#
GET /v1/graphs/{id}/export with a key holding export answers:
{"retracted": [], "revision": 17, "snapshot": "{...}"}
snapshot is the graph as a JSON document, in a string, holding what the key
reads: hidden nodes, their relationships and their source texts are absent.
An export applies no redaction of its own, so it is refused with
403 scope_not_exportable for a key whose reads are narrower than a full
copy: one that redacts attributes, sees nodes as existing only, is limited to
named node ids, or lacks any of the standard read tools. Limit: 6 an hour per
key.
Extraction#
POST /v1/graphs/{id}/extract with a key holding extract submits text for
the server to turn into nodes and relationships. The server must have
extraction configured (else 503 extraction_not_configured) and server AI
switched on for the graph (else 409 server_ai_off). A job that cannot be
queued answers 409 not_queued.
{"text": "Marco Rossi joined the Milan office in March.",
"gate": "review",
"referenceDate": "2026-11-21"}
answers {"jobId": "..."}.
gateisreview(the default: a person approves the proposal in the app before anything is written) ordirect(written as soon as the job runs).directalso needs theadd_to_graphtool.- Organisation graph: the key's principal must be an owner or admin. What is created is filed into the key's write group.
- Personal graph: only a key that reads the whole graph in full.
- The text is treated as someone else's words: "I" and "me" in it are nobody.
- Limit: 60 an hour per key.
GET /v1/graphs/{id}/extract/jobs lists the jobs that key submitted, and
no others: {"jobs": [{"jobId", "status", "source", "sourceUri", "gate",
"attempts", "error", "nextAt", "createdAt", "updatedAt", "usage"?, "counts"?,
"sourceId"?, "proposed"?}]}. proposed is present while a job waits for
review. Approving,
rejecting, undoing and retrying a job are for a person; a key gets 401
there.