Graph data
13. Browser read routes
GET /v1/desk/* are the read routes behind the built-in browser client. They are usable as an API by any client holding a session token and return, in one call each, views that would otherwise take several live operations. They are read-only and do not accept live keys or OAuth tokens.
They share the session rate limit in section 1.4 (429 rate_limited with Retry-After). Any path under /v1/desk not listed below, and any method other than GET, returns 404 not_found. The account must be active; otherwise 401 unauthorized.
| Path | Purpose | Graphs |
|---|---|---|
/v1/desk/graphs |
Every graph the account can open | — |
/v1/desk/graphs/{graphId}/canvas |
A slice of the graph for drawing | personal and organisation |
/v1/desk/graphs/{graphId}/facets |
Counts of kinds, subtypes, groups and relationship verbs | personal and organisation |
/v1/desk/graphs/{graphId}/paths |
Shortest paths between two nodes | personal and organisation |
/v1/desk/graphs/{graphId}/nodes |
A sortable, filterable table of nodes | personal and organisation |
/v1/desk/graphs/{graphId}/edges |
A filterable table of relationships | personal and organisation |
/v1/desk/graphs/{graphId}/nodes/{nodeId} |
One node with everything about it | personal and organisation |
/v1/desk/graphs/{graphId}/pages |
Nodes of subtype page, newest first |
personal only |
/v1/desk/graphs/{graphId}/upcoming |
Upcoming birthdays and expiry dates | personal only |
13.1 List graphs#
GET /v1/desk/graphs — response 200:
{
"graphs": [
{ "id": "team-kb", "label": "Team knowledge base", "tier": "cloud_readable",
"revision": 43, "nodes": 1280, "serverAi": false, "updatedAt": 1790000000,
"writable": true },
{ "id": "…", "label": "Company brain", "tier": "cloud_readable",
"orgId": "…", "orgName": "Example Ltd", "role": "member",
"revision": 911, "serverAi": true, "updatedAt": 1790000500, "writable": true },
{ "id": "…", "label": "Private", "tier": "cloud_sealed",
"updatedAt": 1789000000, "writable": false }
]
}
writable says whether the session may write to the graph through the live endpoint. When it is false, reason is app_update_required (section 5.8) or role (the member's role is read-only). Personal graphs come first, then organisation graphs, then sealed graphs. Not paginated.
13.2 Canvas#
GET/v1/desk/graphs/{graphId}/canvas
| Query parameter | Default | Description |
|---|---|---|
limit |
400 | 1 to 400 nodes. A value outside the range is refused with 400 bad_limit, not clamped. |
focus |
— | A node id. Returns that node's neighbourhood instead of the overall slice. The node must be visible in full, otherwise 404 not_found. |
depth |
2 | 1 to 3. Only valid together with focus; sending it without focus returns 400 bad_limit. |
kinds, subtypes, groups, verbs |
— | Comma-separated lists (at most 20 items of at most 64 characters) that keep only matching nodes, or, for verbs, relationships. |
hideSubtypes, hideGroups, hideVerbs |
— | Comma-separated lists of what to leave out. |
minDegree |
0 | 0 to 1000. Leave out nodes with fewer relationships. |
skipOwner |
— | 1 with focus on a personal graph: do not walk through the owner's node. |
A malformed filter returns 400 bad_filter.
Response 200:
{
"revision": 43,
"total": 1280, "truncated": true, "visible": 1280,
"nodes": [
{ "id": "…", "kind": "individual", "subtype": "person", "label": "Anna Bianchi",
"owner": false, "ring": 0, "groups": ["…"], "degree": 14 }
],
"edges": [ { "id": "…", "src": "…", "dst": "…", "type": "related_to", "verb": "mentored" } ],
"groups": [ { "id": "…", "name": "Finance", "color": 3, "nodes": 212 } ]
}
Without focus, the slice holds the most connected nodes first (then most recently updated, then by id). On a personal graph the node that represents the graph's owner and its neighbourhood of two steps come first, and that node is marked "owner": true. total, the number of nodes in the graph, is present only for a personal graph without focus. truncated is true when more nodes qualified than were returned, and visible counts the nodes that qualified (without focus, only those the caller sees in full). ring is the position of the node's primary group in groups and is absent when the node has no visible primary group. degree counts only relationships to nodes the caller sees in full. Listed nodes appear with a masked label, "withheld": true, no groups and a degree of 0. Only edges between two fully visible nodes in the slice are returned; verb is present for a relationship that has a predicate. groups[].nodes counts the group's members the caller sees in full.
The canvas never returns more than 400 nodes: it cannot be used to enumerate a larger graph. To read a whole graph, use the node and edge tables (section 13.6), list_nodes and list_edges (see Listing and paging), or the graph export (section 3.5).
13.3 Node detail#
GET/v1/desk/graphs/{graphId}/nodes/{nodeId}
| Query parameter | Description |
|---|---|
asOf |
YYYY, YYYY-MM or YYYY-MM-DD. Restricts neighbors to relationships true on that date. An invalid date returns 400 bad_request. |
Response 200:
{
"revision": 43,
"node": { "id": "…", "kind": "individual", "label": "Anna Bianchi",
"props": { "subtype": "person", "text": "…" },
"validFrom": null, "validTo": null, "owner": false },
"aliases": ["A. Bianchi"],
"neighbors": [ { "edgeId": "…", "type": "worked_at", "direction": "out",
"neighborId": "…", "neighborKind": "individual", "neighborLabel": "Acme Srl" } ],
"groups": [ { "id": "…", "primary": true } ],
"links": { "Acme Srl": "<node id or null>" },
"mentionedIn": [ { "pageId": "…", "pageLabel": "…", "snippet": "…" } ],
"origins": [ { "at": "2026-05-12T09:14:03.120Z", "sourceKind": "paste", "trust": "self", "files": [] } ],
"documents": [ { "id": "…", "name": "contract.pdf", "mediaType": "application/pdf", "size": 182044 } ]
}
| Field | Description |
|---|---|
neighbors |
Same row shape as the live neighbors operation; at most 200. |
links |
Each [[…]] link in the node's text, mapped to the node it resolves to, or null. |
mentionedIn |
Personal graphs only. Nodes whose prose links to this node; at most 50. |
origins |
Personal graphs only. Where the node's facts came from, newest first; at most 100. at is an ISO 8601 timestamp, files lists file names only, and an entry carries a span string when the supporting fragment of the source text was recorded. |
groups |
The node's groups among those the caller may see named, primary first. |
aliases |
Confirmed alternative names, in alphabetical order. |
documents |
File metadata only. Fetch the bytes with the live get_document operation. |
A node that is hidden or only listed returns 404 not_found. Node ids on these routes must match 1–128 characters from A-Z a-z 0-9 _ : . -.
13.4 Pages#
GET /v1/desk/graphs/{graphId}/pages?limit=N — limit 1 to 200, default 50 (400 bad_limit outside the range).
Response 200: {"pages": [{"id", "label", "updatedAt", "snippet"}]}, newest first. snippet is the first 160 characters of the page's text. Organisation graphs return 404 not_found.
13.5 Upcoming dates#
GET /v1/desk/graphs/{graphId}/upcoming?today=YYYY-MM-DD — today is required and is the caller's local date (400 bad_request when missing or invalid).
Response 200: {"items": [{"nodeId", "label", "kind", "type", "date", "days"}]} — reminders derived from birthday and expiry properties on visible nodes, with the due date (YYYY-MM-DD) and the number of days until it. type is birthday, expiry or overdue. Organisation graphs return 404 not_found.
13.6 Facets, paths and tables#
These routes read only nodes the caller sees in full, and relationships between two such nodes. Each response starts with the graph's revision.
| Path | Query parameters | Response 200 |
|---|---|---|
…/facets |
— | {"revision", "nodes", "edges", "kinds": {kind: count}, "subtypes": {subtype: count}, "groups": [ … ], "predicates": {verb: count}} |
…/paths |
from, to (required, different node ids); maxHops 1 to 4, default 4; directed 0 or 1 |
{"revision", "paths": [{"nodes": [{"id", "kind", "subtype"?, "label", "groups", "ring"?}], "edges": [{"id", "src", "dst", "type", "verb"?}]}], "groups": [ … ]}: up to 5 paths of the shortest length. Invalid parameters return 400 bad_path; an end the caller cannot see in full returns 404 not_found. |
…/nodes |
limit 1 to 200, default 100; q (1 to 200 characters, matched against labels); kind, subtype, group; minDegree, maxDegree (0 to 1000); sort label, degree or updated; dir asc or desc; cursor |
{"revision", "matched", "rows": [{"id", "kind", "subtype"?, "label", "groups", "degree", "updatedAt"}], "next"?} |
…/edges |
limit 1 to 200, default 100; q; verb; node (either end); cursor |
{"revision", "matched", "rows": [{"id", "src", "srcLabel", "dst", "dstLabel", "type", "verb"?, "validFrom"?, "validTo"?}], "next"?} |
matched is the number of rows that match in all. When more remain, next is a cursor: send it back as cursor with the same filters for the next page. A cursor from an earlier revision of the graph returns 409 stale_cursor; start again from the first page. A malformed filter or cursor returns 400 bad_filter, an out-of-range limit 400 bad_limit.
On an organisation graph, each successful canvas, facets, paths, table and node read is recorded in the organisation's audit log as desk.<route> (for example desk.canvas or desk.node).