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 /{dataset_id}/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 when it wasn’t — either the last attempt degraded (graph store unavailable, counts are 0 and retried on the next poll) or a concurrent caller cached the same run first (counts are exact)
Error Codes
- 409 Conflict: The summary could not be built (generic message; the detail is server-logged rather than returned). A single unreadable graph store does not cause this — that dataset comes back with zero counts — so this means the relational read itself failed.
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: