Skip to content

Get a task

GET
/tasks/{id}
Code sample: Shell / cURL
curl --request GET \
--url https://example.com/api/v1/tasks/example \
--header 'Authorization: Bearer <token>'

Returns the task with its nested collections: assignees, comments, attachments, labels, subtask count, dependencies, and dependents, plus its projectId, statusId and boardPosition. Requires the tasks.view permission.

id
required

Resource identifier (CUID2).

string
>= 1 characters

Resource identifier (CUID2).

The requested task with details.

Media typeapplication/json
object
data
required

A task with its nested collections: assignees, comments, attachments, labels, subtask count, dependencies, and dependents, plus its project, status and board position.

object
assignees
required
Array<object>
object
memberEmail
required
string
memberId
required
string
memberName
required
string
attachments
required
Array<object>

A file or link attached to a task.

object
commentId
required

The comment of this task the attachment arrived on, when it did.

string | null
createdAt
required
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
fileName
required

File name, or the title of a link.

string
fileSize
required

File size in bytes; 0 for a link.

integer
>= -9007199254740991 <= 9007199254740991
fileUrl
required

Stored file reference (/api/v1/files/..., s3:, /uploads/), or the linked URL.

string
id
required
string
kind
required

“file” for an uploaded file, “link” for an external URL (Loom, Figma, Drive…).

string
Allowed values: file link
mimeType
required

“text/uri-list” for a link.

string
uploadedById
required

WorkspaceMember id of the uploader.

string
boardPosition
required

Fractional key ordering the card inside its status column; compare lexicographically, null sorts last.

string | null
comments
required

Top-level comments, newest first (max 50).

Array<object>
object
authorId
required
string
authorName
required
string
content
required

Comment body as Markdown. Markdown rendering of the stored rich text: mentions appear as @Name links and embeds as plain links to their source URL. The stored HTML is returned alongside in the matching *Html field.

string
contentHtml
required

The stored sanitized HTML behind content.

string
createdAt
required
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
id
required
string
isInternal
required
boolean
parentId
required
string | null
updatedAt
required
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
completedAt
required
Any of:
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
createdAt
required
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
creatorId
required
string
dependencies
required

Tasks this task is blocked by.

Array<object>
object
id
required

Identifier of the dependency link.

string
task
required
object
completedAt
required
Any of:
string format: date-time
id
required
string
number
required
integer
>= -9007199254740991 <= 9007199254740991
title
required
string
type
required
string
Allowed values: FINISH_TO_START START_TO_START FINISH_TO_FINISH START_TO_FINISH
dependents
required

Tasks blocked by this task.

Array<object>
object
id
required

Identifier of the dependency link.

string
task
required
object
completedAt
required
Any of:
string format: date-time
id
required
string
number
required
integer
>= -9007199254740991 <= 9007199254740991
title
required
string
type
required
string
Allowed values: FINISH_TO_START START_TO_START FINISH_TO_FINISH START_TO_FINISH
description
required

Task description as Markdown. Markdown rendering of the stored rich text: mentions appear as @Name links and embeds as plain links to their source URL. The stored HTML is returned alongside in the matching *Html field.

string | null
descriptionHtml
required

The stored sanitized HTML behind description.

string | null
dueAt
required

Explicit due instant in UTC, or null for a date-only due date.

Any of:
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
dueDate
required
Any of:
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
followers
required
Array<object>
object
memberEmail
required
string
memberId
required
string
memberName
required
string
id
required
string
isArchived
required
boolean
isProposed

True while the task is a proposal made from a signed contract: only the team sees it, until it is published (POST /tasks/{id}/publish). Absent on a server older than this field.

boolean
labels
required
Array<object>
object
color
required
string
id
required
string
name
required
string
linkedTicket

The ticket the task was promoted from, or null. Absent only when the task was deleted while the response was being built.

Any of:
object
id
required
string
number
required
integer
>= -9007199254740991 <= 9007199254740991
subject
required
string
links

Values of the task’s URL custom fields, keyed by field name; empty when it has none. Absent only when the task was deleted while the response was being built.

object
key
additional properties
string
number
required

Workspace-scoped sequential task number.

integer
>= -9007199254740991 <= 9007199254740991
onBoard

For a subtask: whether it shows as its own card on its project’s board, in the column of its own status. Always false for a root task, which is always a card. Absent on a server older than this field.

boolean
parentId
required
string | null
priority
required
string
Allowed values: NONE LOW MEDIUM HIGH URGENT
priorityOptionId
required
string | null
project

The task’s project. Absent only when the task was deleted while the response was being built.

Any of:
object
id
required
string
name
required
string
prefix
required
string | null
projectId
required

The task’s one project; a subtask carries its root’s.

string
projectManagers

The project’s managers: its members at the Manager level, or the Direct Access managers of its company when it has none; empty when nobody manages it. Absent only when the task was deleted while the response was being built.

Array<object>
object
memberId
required
string
name
required

First and last name of the member.

string
recurrence
required

Repetition rule, or null when the task does not repeat. Completing a repeating task creates the next instance on the next occurrence and records its id in spawnedTaskId.

Any of:
object
endDate

Last calendar day of the series, YYYY-MM-DD.

string format: date
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$/
frequency
required
string
Allowed values: DAILY WEEKLY MONTHLY YEARLY PERIODIC
interval
required
integer
default: 1 >= 1 <= 366
monthDay

Day a MONTHLY rule repeats on. Defaults to the due date’s day, clamped per month.

integer
>= 1 <= 31
spawnedTaskId
string
>= 1 characters
weekdays

Days a WEEKLY rule repeats on, 0 = Sunday. Defaults to the due date’s weekday.

Array<integer>
>= 1 items <= 7 items
startAt
required

Explicit start instant in UTC, or null for a date-only start date.

Any of:
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
startDate
required
Any of:
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
status

The task’s status with its category. Absent only when the task was deleted while the response was being built.

Any of:
object
category
required
string
Allowed values: BACKLOG UNSTARTED STARTED COMPLETED
id
required
string
name
required
string
statusId
required

The task’s status in its project’s workflow, which is its board column.

string
subtaskCount
required
integer
>= -9007199254740991 <= 9007199254740991
subtaskPosition
required

Sibling ordering key; ascending, then createdAt and id. Ignored for root tasks.

integer
<= 9007199254740991
subtasksOnBoard

Whether the task’s direct subtasks show on the board; a subtask created later starts the same way. Absent on a server older than this field.

boolean
timeEstimate
required

Time estimate in seconds (5400 = 1h 30m), or null when the task has none.

number | null
title
required
string
updatedAt
required
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
webUrl

Link to the task in the web app. Absent only when the task was deleted while the response was being built.

string
workflowStatuses

Every status of the project’s workflow, in board order. Absent only when the task was deleted while the response was being built.

Array<object>
object
category
required
string
Allowed values: BACKLOG UNSTARTED STARTED COMPLETED
id
required
string
name
required
string

Example

{
"data": {
"attachments": [
{
"kind": "file"
}
],
"dependencies": [
{
"type": "FINISH_TO_START"
}
],
"dependents": [
{
"type": "FINISH_TO_START"
}
],
"priority": "NONE",
"recurrence": {
"frequency": "DAILY",
"interval": 1
},
"status": {
"category": "BACKLOG"
},
"workflowStatuses": [
{
"category": "BACKLOG"
}
]
}
}

Unauthorized.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Forbidden.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Not found.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Rate limit exceeded. Wait for Retry-After before retrying.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}
RateLimit-Limit
string
/^\d+$/

Maximum requests in the current quota window.

RateLimit-Policy
string

Quota policy in requests and window seconds, for example 60;w=60.

RateLimit-Remaining
string
/^\d+$/

Requests left in this quota window (zero when blocked).

RateLimit-Reset
string
/^\d+$/

Seconds until the current quota window resets, when available from the rate-limit store.

Retry-After
string
/^\d+$/

Seconds until another request may be attempted.