List the hierarchy as parent edges
/api/v1/nodes/parentsReturns the same hierarchy GET /api/v1/nodes describes, scoped identically, but as a flat list of { id, parent_node_id } and nothing else. Intended for a client that evaluates authorization locally: it walks upward from a node and reads none of the tree's names, statuses, access flags or counts. At fifty thousand nodes the tree is roughly 18.6 MB against 4 MB of edges, on a read that runs at every consuming process's startup. Supports the same If-None-Match revalidation, with a validator distinct from the tree's — a tag from one representation never satisfies a request for the other.
Authentication
Authorization Option A JWT access token
X-API-Key Option B API key for management-tier access
Headers
If-None-MatchAn `ETag` from a previous response. Answers `304 Not Modified` when the hierarchy has not changed since, so a client holding a cached tree can revalidate on a short interval without re-reading it.
Responses
application/json
items *NodeParentEdgeResponseDto[]
The hierarchy is unchanged since the supplied `ETag`. No body; keep using the cached tree.
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
Returned object
curl -X GET "https://auth.canopy-io.com/api/v1/nodes/parents" \ -H "If-None-Match: value" \ -H "X-API-Key: $CANOPY_API_KEY"
{ "items": [ { "id": "string", "parent_node_id": "string" } ] }
Tell us how we can improve this guide.