datasets
Get Datasets Graph Summary
Get node/edge counts per dataset, cached per cognify run.
Counts are computed once per dataset’s latest cognify run and cached in GraphMetrics, keyed by pipeline_run_id — orders of magnitude cheaper on repeat polls than GET //graph, which does a full traversal.
Query Parameters
- dataset_ids (List[UUID], optional): Dataset UUIDs to summarize. If omitted, summarizes every dataset the user has read permission on.
Response
Returns a list of summaries containing:
- datasetId: The dataset’s UUID
- pipelineRunId: The dataset’s latest cognify run, or null if it has never been cognified
- numNodes / numEdges: Graph size for that run
- computedAt: When the count was cached, or null if the last attempt degraded (graph store unavailable) and wasn’t cached
GET
Get Datasets Graph Summary
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Dataset UUIDs to summarize (from GET /api/v1/datasets). Omit to summarize every dataset you can read.
Example:
Get Datasets Graph Summary