---
title: "Failure-correlation graph across monitored endpoints"
method: GET
path: "/api/v1/dashboard/dependency-graph"
tags: ["dependencies"]
---

# Failure-correlation graph across monitored endpoints

`GET /api/v1/dashboard/dependency-graph`

## Request

- Base URL: `https://monit.rs`
- URL: `https://monit.rs/api/v1/dashboard/dependency-graph`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Nodes are endpoints owned by the caller. Edges represent correlation strength between failure timelines over the requested window. Useful for detecting shared upstream dependencies (e.g. two endpoints that fail together are likely behind the same DB or gateway).

## Query parameters

- `days` integer

## Response `200`

Graph shape: {nodes: [...], edges: [...]}. Node fields: id, name, url. Edge fields: source, target, weight (0.0-1.0).

## Other responses

- `401`: Missing or invalid bearer credentials.
- `403`: Missing read:dependencies scope.

---

[API](https://skmtc.dev/monit/apis/monit-rs-public-api.md) · [All operations](https://skmtc.dev/monit/apis/monit-rs-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/monit/apis/monit-rs-public-api/revisions/7e1923981112?raw)
