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

# Get Task Graph Neighbors

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

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

## Changes

- **2026-07-26** `2a1299ef19fa` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/sipyourdrink-ltd/apis/bernstein-task-server/changes/tasks/:task_id/graph-neighbors/get.md)

---

[API](https://skmtc.dev/sipyourdrink-ltd/apis/bernstein-task-server.md) · [All operations](https://skmtc.dev/sipyourdrink-ltd/apis/bernstein-task-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sipyourdrink-ltd/bernstein-task-server/revisions/fa7b00b782fa/schema)
