Skip to content

Get dependency graph for a task list

GET
/api/v3/organizations/{organisation}/ai/tasks/{taskListId}/dependency-graph
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

organisation
required
string

The organisation ID

taskListId
required
string

The task list ID to get the dependency graph for

Example
world-1

Dependency graph retrieved successfully

Media typeapplication/json
object
taskListId
string
taskCount
integer
roots

Task IDs with no dependencies

Array<string>
leaves

Task IDs with no dependents

Array<string>
graph

Adjacency list with task summaries, dependsOn, and dependents arrays

object
Example
{
"taskListId": "world-1",
"taskCount": 4
}

Failed to get dependency graph