Median

GET /tasks/{task}

Updated Oct 1, 20261 minute read

Get a task

One card, and every commit and pull request that named it, newest first.

Part of Tasks.

Parameters

NameInTypeRequiredDescription
taskpathstringYesA task key like "MED-12", its number, its id, or a link to the card.

Responses

StatusDescription
200The card.
401The bearer token is missing, revoked, or expired.
404Not one of yours, or not there at all.
429Too many requests. Wait the seconds in Retry-After. Limits depend on the plan. See rate limits.

200 body

FieldTypeRequiredDescription
idstringNo
keystringNoWhat a commit message says: "MED-12".
numberintegerNo
titlestringNo
descriptionstringNoThe write-up, as markdown.
status"requests" | "planned" | "in_progress" | "in_review" | "done"No
priority"urgent" | "high" | "medium" | "low" | nullNo
assigneeobjectNo
assignee.userIdstringNo
assignee.namestringNo
assignee.emailanyNo
createdByNamestringNo
createdAtintegerNo
updatedAtintegerNo
doneAtanyNo
signalIdanyNoThe report it was adopted from, for GET /v1/signals/{id}.
linearobjectNo
linear.identifierstringNo
linear.urlstringNo
githubobjectNo
github.numberintegerNo
github.urlstringNo
commitsintegerNo
pullRequestsintegerNo
urlanyNoThe card's page, or null where no board address is set.
codeobject[]NoEvery commit and pull request that named the card, newest first.
code[].kind"commit" | "pull_request"No
code[].repostringNo"owner/repo".
code[].refstringNoThe short sha, or the pull request number.
code[].titlestringNo
code[].urlstringNo
code[].authorstringNo
code[].via"key" | "ai"NoWhether the key was in the text, or a model read the push and matched it.
code[].state"open" | "merged" | "closed" | nullNo
code[].draftbooleanNo
code[].updatedAtintegerNo

Example request

curl https://api.median.sh/v1/tasks/task \
  -H "Authorization: Bearer $BEARER_AUTH"

Still need help?

    Esc