GetItDoneGetItDone Docs
API ReferenceTask dependencies

Get a task's dependencies

GET
/v1/tasks/{task_id}/dependencies

Both directions of the task's blocker graph one hop out: blocked_by (must finish first) and blocking (waiting on this task), plus the derived is_blocked. A task with no links answers an empty view rather than 404. This is not paginated — the answer is a task's immediate neighbours, not a traversal; walk the chain by following each task_id.

Authorization

bearerAuth
headerAuthorizationBearer <token>

A gid_ API key (Profile → API Keys) or an OAuth 2.1 access token.

Path Parameters

task_id*string

Task short id, e.g. T-123 (a bare 123 is also accepted on input).

Match^(?:T-)?[0-9]{1,12}$

Response Body

The task's dependencies in both directions.

application/json
  1. response

Both directions of a task's blocker graph, one hop out, plus its derived blocked state.

task_id*string

The task this view is for.

Match^(?:T-)?[0-9]{1,12}$
is_blocked*boolean

DERIVED on every read: true when at least one entry in blocked_by is still open. Never a stored column and never written to the task's status — a blocked task keeps whatever status its owner set.

blocked_by_count*integer

How many tasks must finish first, open or not — blocked_by.length.

Range-9007199254740991 <= value <= 9007199254740991
blocking_count*integer

How many tasks wait on this one — blocking.length.

Range-9007199254740991 <= value <= 9007199254740991
blocked_by*array<>

Tasks that must finish before this one can be worked on, oldest link first.

blocking*array<>

Tasks waiting on this one, oldest link first — the other direction of the same edges.

Example Request
curl -X GET 'https://app.nowgetitdone.com/v1/tasks/T-123/dependencies'
Example Response
{  "task_id": "T-123",  "is_blocked": true,  "blocked_by_count": 2,  "blocking_count": 1,  "blocked_by": [    {      "task_id": "T-123",      "title": "Ship the public API",      "status": "TODO",      "open": true    }  ],  "blocking": [    {      "task_id": "T-123",      "title": "Ship the public API",      "status": "TODO",      "open": true    }  ]}