---
title: "Get the ancestor list for an Entity.  The ancestors are the nodes connected \"upstream\" from the current node.  This list traverses all the levels in the graph."
method: GET
path: "/ancestors/{id}"
---

# Get the ancestor list for an Entity.  The ancestors are the nodes connected "upstream" from the current node.  This list traverses all the levels in the graph.

`GET /ancestors/{id}`

## Path parameters

- `id` string, required

## Response `200`

An array of ancestors is returned

- object[]

## Other responses

- `400` — Invalid or misformatted entity identifier
- `401` — The user's token has expired or the user did not supply a valid token
- `403` — The user is not authorized to access the entity
- `404` — The target entity could not be found
- `500` — Internal error

---

[API](https://skmtc.net/hubmapconsortium/apis/hubmap-entity-api.md) · [All operations](https://skmtc.net/hubmapconsortium/apis/hubmap-entity-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hubmapconsortium/hubmap-entity-api/versions/a192f35c6b16/schema)
