Get dependency graph for a task list
const url = 'https://dashboard.quantcdn.io/api/v3/organizations/example/ai/tasks/world-1/dependency-graph';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://dashboard.quantcdn.io/api/v3/organizations/example/ai/tasks/world-1/dependency-graph \ --header 'Authorization: Bearer <token>'Returns the full dependency graph for all tasks in a task list.
*
* Use Cases:
* - Visualize task dependencies in a UI (DAG diagram)
* - Analyze workflow structure and critical paths
* - Find starting tasks (roots) and terminal tasks (leaves)
* - Plan parallel execution by identifying independent task groups
*
* Response Structure:
* - taskCount: Total number of tasks in the list
* - roots: Task IDs with no dependencies (starting points)
* - leaves: Task IDs with no dependents (terminal tasks)
* - graph: Adjacency list with each task’s dependencies and dependents
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The organisation ID
The task list ID to get the dependency graph for
Example
world-1Responses
Section titled “Responses”Dependency graph retrieved successfully
object
Task IDs with no dependencies
Task IDs with no dependents
Adjacency list with task summaries, dependsOn, and dependents arrays
object
Example
{ "taskListId": "world-1", "taskCount": 4}Failed to get dependency graph
