Get ancestor chain for a node
/api/v1/nodes/{id}/ancestorsReturns the ancestor chain for a node as an items array ordered root-first, including the node itself, scoped to the current Environment. The node must be within the caller's accessible scope (otherwise 403); a cross-Environment or unknown id returns 404.
Authentication
Bearer Token
Authorization Option A JWT access token. Never send alongside X-API-Key: a request carrying both is refused.
API Key
X-API-Key Option B API key for management-tier access. Never send alongside an Authorization header: a request carrying both is refused.
Path Parameters
idstring Required Responses
application/json
items *NodeResponseDto[]
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
Returned object
curl -X GET "https://auth.canopy-io.com/api/v1/nodes/value/ancestors" \ -H "X-API-Key: $CANOPY_API_KEY"
{ "items": [ { "id": "string", "application_id": "string", "parent_node_id": "string", "node_type": "string", "name": "string", "description": "string", "slug": "string", "status": "string", "metadata": {}, "created_at": "2026-04-20T12:00:00.000Z", "updated_at": "2026-04-20T12:00:00.000Z", "version": 0 } ] }
Tell us how we can improve this guide.