---
title: "Get Task Graph Neighbors"
method: GET
path: "/tasks/{task_id}/graph-neighbors"
---

# Get Task Graph Neighbors

`GET /tasks/{task_id}/graph-neighbors`

## Request

- Base URL: `http://127.0.0.1:8052`
- URL: `http://127.0.0.1:8052/tasks/{task_id}/graph-neighbors`
- Auth: none declared

Return immediate dependency neighbours for a single task.

Powers the dashboard Deps tab: upstream tasks the requested one waits
on (its ``depends_on`` list) and downstream tasks that declare it as a
dependency.  Depth is intentionally fixed at 1 - the panel renders two
flat lists, not a transitive graph.

## Path parameters

- `task_id` string, required

## Response `200`

Successful Response

- object

## Other responses

- `404`: Task not found
- `422`: Validation Error

---

[API](https://skmtc.dev/bernstein/apis/bernstein-task-server.md) · [All operations](https://skmtc.dev/bernstein/apis/bernstein-task-server/llms.txt) · [OpenAPI document](https://skmtc.dev/bernstein/apis/bernstein-task-server/revisions/2a20a34ad2eb?raw)
