---
title: "Get resource dependencies"
method: GET
path: "/workspaces/{workspace_id}/projects/{project_id}/resource-dependencies"
tags: ["Projects"]
---

# Get resource dependencies

`GET /workspaces/{workspace_id}/projects/{project_id}/resource-dependencies`

## Request

- Base URL: `https://app.mammoth.io/api/v2`
- URL: `https://app.mammoth.io/api/v2/workspaces/{workspace_id}/projects/{project_id}/resource-dependencies`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-KEY` and API key in header `X-API-SECRET` and API key in header `X-WORKSPACE-ID`

Returns inbound and outbound dependencies for the given resources.

## Path parameters

- `workspace_id` integer, required: Workspace refers to a collection of projects. Workspace ID is unique identifier for workspace.
- `project_id` integer, required: Project ID of the workspace

## Query parameters

- `resource_ids` string, required: Comma-separated list of resource IDs
- `is_recursive` boolean: Recursively traverse the dependency graph

## Response `200`

Resource dependency graph keyed by resource_id

- ResourceDependenciesResponse
  - `root` object, required

## Other responses

- `400`: Bad Request
- `401`: Authorization error
- `403`: Request forbidden -- authorization will not help

---

[API](https://skmtc.dev/mammoth/apis/mammoth-analytics.md) · [All operations](https://skmtc.dev/mammoth/apis/mammoth-analytics/llms.txt) · [OpenAPI document](https://skmtc.dev/mammoth/apis/mammoth-analytics/revisions/fe078afe239b?raw)
