# Tasks

Source: https://projectfeed.app/docs/api/tasks

Create, update, move, and delete tasks, and work with their comments, checklists, subtasks, links, and tags.

-   [Plan Free for reads, Pro or Enterprise for API key writes](https://projectfeed.app/docs/billing)
-   [Scopes tasks:read, tasks:write](https://projectfeed.app/docs/api/scopes)

## Core tasks

Signed-in sessions can read saved task views. The response contains the caller's views and filters; it does not include task-view preferences or provide saved-view writes.

### GET /api/v1/tasks

Scope

tasks:read

Query parameters

-   `projectId` string
    
    Only tasks in this project. A project the key's user cannot open returns an empty list.
    
-   `status` string
    
    Only tasks with this status: backlog, todo, in_progress, perpetual, in_review, done, or cancelled. A comma-separated list matches any of them. Other values return 400.
    
-   `priority` string
    
    Only tasks with this priority: none, low, medium, high, or urgent. A comma-separated list matches any of them. Other values return 400.
    
-   `assigneeId` string
    
    Only tasks assigned to this user, including tasks shared with other assignees. Pass "me" for the user who owns the key. Any other value must be a user ID, or the request returns 400. Without updatedSince, the most recently updated come first.
    
-   `creatorId` string
    
    Only tasks created by this user. Pass "me" for the user who owns the key.
    
-   `tagIds` string
    
    Comma-separated tag IDs, up to 10. Tasks with any of these tags. An unknown tag returns 404.
    
-   `q` string
    
    Words to find in task titles, up to 200 characters.
    
-   `dueBefore` string
    
    Only tasks due before this time. Epoch milliseconds, or an ISO 8601 time with a timezone. Tasks without a due date are left out.
    
-   `dueAfter` string
    
    Only tasks due after this time, in the same formats. Tasks without a due date are left out.
    
-   `startAfter` string
    
    Only tasks that start after this time, in the same formats. Tasks without a start date are left out.
    
-   `parentTaskId` string
    
    Only the subtasks of this task. Task ID, identifier such as PRO-42, or task number.
    
-   `includeSubtasks` boolean
    
    true includes subtasks among the results.
    
-   `deleted` boolean
    
    true lists deleted tasks that can still be restored. Not available to viewers.
    
-   `externalSource` string
    
    Only tasks synced from this provider, such as github. Up to 200 characters.
    
-   `externalId` string
    
    Only tasks with this ID in the provider. Up to 200 characters. Needs externalSource; without it the request returns 400.
    
-   `updatedSince` string
    
    Only tasks updated after this time, oldest update first. Epoch milliseconds, or an ISO 8601 time with a timezone. Other values return 400. To poll, send the largest updatedAt you have seen minus 5 seconds and skip tasks whose id and updatedAt you already have.
    
-   `includeRemoved` boolean
    
    With assigneeId and updatedSince, also return removed: the tasks that user was unassigned from, that were trashed, or that moved to a project the caller cannot open after that time. For another user, only tasks the caller lost access to. Default false. It reports top-level tasks only, so it returns 400 together with ids, tagIds, q, parentTaskId, externalSource, includeSubtasks, deleted, or a sort other than updated.
    
-   `sort` string
    
    created, updated, due_date, priority, status, title, task_number, or board. board follows the column and card order of the board.
    
-   `order` string
    
    asc or desc. The default is desc for created and updated and asc for the other sorts.
    
-   `include` string
    
    Comma-separated: checklist, subtasks. Embeds up to 20 rows per task as checklist and subtasks, with checklistTruncated and subtasksTruncated. A list that embeds rows holds at most 25 tasks.
    
-   `viewId` string
    
    One of your saved views, from the task-views endpoint. Its filters apply, and any filter you also send overrides the view's. A view whose project was deleted or can no longer be opened, or whose assignee is not a valid user, lists no tasks.
    
-   `ids` string
    
    Comma-separated task IDs, numbers, or identifiers, up to 50. Results keep your order, and references that match no readable task come back in missing.
    
-   `limit` number
    
    Tasks per page (max 100, default 50). With include, the maximum and default are 25.
    
-   `cursor` string
    
    The nextCursor value from the previous page. See pagination in Conventions.
    
-   `fields` string
    
    Comma-separated fields to return. id is always included. See Choosing fields in Conventions.
    
-   `view` string
    
    compact leaves out description and descriptionText. Default full.
    
-   `offset` number
    
    Legacy. Skip this many tasks, from 0 to 10,000. Ignored when cursor is sent. Responses to offset requests also include a total field that does not count every matching task. Use cursor in new integrations.
    

Request

curl

```
curl --request GET \
  --url 'https://projectfeed.app/api/v1/tasks' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{
  "tasks": [
    {
      "id": "tsk_abc123",
      "taskNumber": 42,
      "identifier": "PRO-42",
      "sequenceNumber": 42,
      "title": "Implement dark mode",
      "description": [
        { "type": "p", "children": [{ "text": "Add a dark mode toggle." }] }
      ],
      "descriptionText": "Add a dark mode toggle.",
      "status": "in_progress",
      "priority": "high",
      "sortOrder": 1024,
      "orderKey": "a0",
      "parentTaskId": null,
      "startDate": 1709251200000,
      "dueDate": 1709856000000,
      "estimatePoints": 5,
      "estimateMinutes": 240,
      "subtaskTotal": 2,
      "subtaskDone": 1,
      "checklistTotal": 3,
      "checklistDone": 0,
      "reactionCount": 1,
      "commentCount": 4,
      "trackedSeconds": 5400,
      "activeTimerUserId": null,
      "createdVia": "web",
      "externalSource": null,
      "externalId": null,
      "createdAt": 1709251200000,
      "updatedAt": 1709294400000,
      "deletedAt": null,
      "webUrl": "https://projectfeed.app/acme/task/PRO-42",
      "tags": [
        { "id": "tag_abc123", "name": "design", "color": "#F59E0B" },
        { "id": "tag_def456", "name": "frontend", "color": "#3B82F6" }
      ],
      "tagsTruncated": false,
      "author": {
        "id": "usr_abc123",
        "name": "John Doe",
        "email": "john@example.com",
        "image": "/api/media/avatars/john.jpg"
      },
      "assignee": {
        "id": "usr_def456",
        "name": "Jane Smith",
        "email": "jane@example.com",
        "image": "/api/media/avatars/jane.jpg"
      },
      "assigneeIds": ["usr_def456"],
      "assignees": [
        {
          "id": "usr_def456",
          "name": "Jane Smith",
          "email": "jane@example.com",
          "image": "/api/media/avatars/jane.jpg"
        }
      ],
      "project": {
        "id": "prj_abc123",
        "name": "Product Launch",
        "color": "#3B82F6"
      }
    }
  ],
  "removed": [
    { "id": "tsk_def456", "updatedAt": 1709298000000, "deletedAt": null }
  ],
  "hasMore": true,
  "nextCursor": "cur_abc123"
}
```

### POST /api/v1/tasks

Scope

tasks:write

Body parameters

-   `title` string required
    
    Task title (max 500 chars)
    
-   `projectId` string required
    
    Project to create the task in
    
-   `descriptionText` string
    
    Plain text description, used when description is not sent
    
-   `description` string|array
    
    Description as plain text, Markdown, or Plate JSON, per descriptionFormat. In Markdown, ![caption](media:<mediaId>) shows a file inline.
    
-   `descriptionFormat` string
    
    plaintext, markdown, or platejs
    
-   `status` string
    
    Task status (default: todo)
    
-   `priority` string
    
    Task priority (default: none)
    
-   `assigneeId` string
    
    User ID to assign the task to
    
-   `assigneeIds` string[]
    
    Up to 20 user IDs to assign. See Assignees below for how this combines with assigneeId.
    
-   `startDate` number
    
    Start date (Unix ms timestamp)
    
-   `dueDate` number
    
    Due date (Unix ms timestamp)
    
-   `estimatePoints` number
    
    Story point estimate, from 0 to 10,000
    
-   `estimateMinutes` number
    
    Time estimate in whole minutes, from 0 to 100,000. Needs time tracking turned on for the workspace.
    
-   `parentTaskId` string
    
    Create the task as a subtask of this task. It must be in the same project and cannot itself be a subtask.
    
-   `tagIds` string[]
    
    Tag IDs to apply
    
-   `tagNames` string[]
    
    Tag names to apply, written as you would name the tag (Bug Fix matches bug-fix). A name matches a tag in the task's project first, then a workspace tag.
    

Request

curl

```
curl --request POST \
  --url 'https://projectfeed.app/api/v1/tasks' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "title": "Prepare launch checklist",
  "projectId": "prj_abc123"
}'
```

Response

JSON

```
{
  "id": "tsk_abc123",
  "taskNumber": 42,
  "identifier": "PRO-42",
  "sequenceNumber": 42,
  "title": "Prepare launch checklist",
  "description": [
    { "type": "p", "children": [{ "text": "Confirm the release steps." }] }
  ],
  "descriptionText": "Confirm the release steps.",
  "status": "in_progress",
  "priority": "high",
  "sortOrder": 1024,
  "orderKey": "a0",
  "parentTaskId": null,
  "startDate": 1779600000000,
  "dueDate": 1780204800000,
  "estimatePoints": 5,
  "estimateMinutes": 240,
  "subtaskTotal": 0,
  "subtaskDone": 0,
  "checklistTotal": 0,
  "checklistDone": 0,
  "reactionCount": 0,
  "createdAt": 1779600000000,
  "updatedAt": 1779680000000,
  "webUrl": "https://projectfeed.app/acme/task/PRO-42",
  "tags": [],
  "tagsTruncated": false,
  "author": {
    "id": "usr_abc789",
    "name": "John Doe",
    "email": "john@example.com",
    "image": "/api/media/avatars/john.jpg"
  },
  "assignee": null,
  "assigneeIds": [],
  "assignees": [],
  "project": {
    "id": "prj_xyz789",
    "name": "Product Launch",
    "color": "#3B82F6"
  }
}
```

### GET /api/v1/tasks/counts

Scope

tasks:read

Query parameters

-   `assigneeId` string
    
    Only "me" or your own user ID. Any other value returns 403. Defaults to "me".
    
-   `projectId` string
    
    Add attention numbers for this project. A project you cannot open returns 404.
    

Request

curl

```
curl --request GET \
  --url 'https://projectfeed.app/api/v1/tasks/counts' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{
  "assigneeId": "usr_abc123",
  "open": 7,
  "projectId": "prj_abc123",
  "attention": {
    "assignedOpen": 3,
    "assignedOverdue": 1,
    "nextDue": {
      "taskId": "tsk_abc123",
      "identifier": "PRO-42",
      "title": "Ship the release",
      "dueDate": 1709856000000
    },
    "unreadMentions": 2,
    "tasksCapped": false,
    "mentionsCapped": false
  }
}
```

### GET /api/v1/task-views

Scope

tasks:read

Request

curl

```
curl --request GET \
  --url 'https://projectfeed.app/api/v1/task-views' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{
  "views": [
    {
      "id": "tvw_abc123",
      "name": "My open work",
      "viewType": "list",
      "filters": {
        "statuses": ["todo", "in_progress"],
        "priorities": [],
        "assigneeId": "usr_abc123",
        "projectId": null,
        "tagIds": [],
        "hideDone": true
      },
      "createdAt": 1709251200000,
      "updatedAt": 1709294400000
    }
  ],
  "hasMore": false,
  "nextCursor": null
}
```

### GET /api/v1/tasks/:id

Scope

tasks:read

Path parameters

-   `id` string required
    
    Task ID, identifier such as PRO-42, or task number (URL path)
    

Query parameters

-   `include` string
    
    Comma-separated: checklist, subtasks. Embeds up to 20 rows as checklist and subtasks, with checklistTruncated and subtasksTruncated.
    
-   `fields` string
    
    Comma-separated fields to return. id is always included. See Choosing fields in Conventions.
    

Request

curl

```
curl --request GET \
  --url 'https://projectfeed.app/api/v1/tasks/tsk_abc123' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{
  "id": "tsk_abc123",
  "updatedAt": 1779680000000,
  "contentHash": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "taskNumber": 42,
  "identifier": "PRO-42",
  "title": "Implement dark mode",
  "status": "in_progress",
  "priority": "high",
  "webUrl": "https://projectfeed.app/acme/task/PRO-42",
  "linkAttachments": [
    {
      "id": "lnk_abc123",
      "url": "https://example.com/spec",
      "status": "ready",
      "preview": {
        "title": "Launch spec",
        "description": "What ships and when.",
        "imageUrl": "https://example.com/spec.png",
        "faviconUrl": "https://example.com/favicon.ico",
        "siteName": "Example"
      },
      "createdBy": "usr_abc123",
      "createdAt": 1709251200000
    }
  ]
}
```

### GET /api/v1/tasks/:id/activity

Scope

tasks:read

Path parameters

-   `id` string required
    
    Task ID, identifier such as PRO-42, or task number (URL path)
    

Query parameters

-   `types` string
    
    Comma-separated activity types to keep, such as status_change,comment. See Task activity for the list. Other values return 400.
    
-   `limit` number
    
    Rows per page (max 100, default 50)
    
-   `cursor` string
    
    The nextCursor value from the previous page. See pagination in Conventions.
    
-   `fields` string
    
    Comma-separated fields to return. id is always included. See Choosing fields in Conventions.
    

Request

curl

```
curl --request GET \
  --url 'https://projectfeed.app/api/v1/tasks/tsk_abc123/activity' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{
  "activity": [
    {
      "id": "act_abc123",
      "type": "status_change",
      "actor": {
        "id": "usr_abc123",
        "name": "John Doe",
        "email": "john@example.com",
        "image": "/api/media/avatars/john.jpg"
      },
      "fromValue": "in_progress",
      "toValue": "done",
      "fromProjectId": null,
      "toProjectId": null,
      "fromAssigneeIds": null,
      "toAssigneeIds": null,
      "commentId": null,
      "createdVia": "web",
      "createdAt": 1709294400000
    }
  ],
  "hasMore": true,
  "nextCursor": "cur_abc123"
}
```

### PATCH /api/v1/tasks/:id

Scope

tasks:write

Path parameters

-   `id` string required
    
    Task ID (URL path)
    

Body parameters

-   `title` string
    
    New title (max 500 chars)
    
-   `descriptionText` string
    
    New plain text description
    
-   `description` string|array
    
    New description as plain text, Markdown, or Plate JSON, per descriptionFormat. In Markdown, ![caption](media:<mediaId>) shows a file inline.
    
-   `descriptionFormat` string
    
    plaintext, markdown, or platejs
    
-   `status` string
    
    New status
    
-   `priority` string
    
    New priority
    
-   `assigneeId` string|null
    
    Assign one user, replacing all assignees. null removes every assignee.
    
-   `assigneeIds` string[]
    
    Replace the assignee list (up to 20 users). An empty array removes every assignee.
    
-   `startDate` number|null
    
    New start date (Unix ms timestamp), or null to clear it
    
-   `dueDate` number|null
    
    New due date (Unix ms timestamp), or null to clear it
    
-   `estimatePoints` number|null
    
    New story point estimate, or null to clear it
    
-   `estimateMinutes` number|null
    
    New time estimate in whole minutes, or null to clear it
    
-   `projectId` string
    
    Move the task and its subtasks to another project you can access in the same workspace. A subtask cannot move on its own and returns 400; move its parent instead. Returns 409 when the task has more than 100 tags, more than 500 subtasks, more than 1,000 tags across itself and its subtasks, or more attachments and Chat links than one move can carry.
    

Request

curl

```
curl --request PATCH \
  --url 'https://projectfeed.app/api/v1/tasks/tsk_abc123' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "status": "in_review",
  "priority": "high"
}'
```

Response

JSON

```
{"id":"tsk_abc123","taskNumber":42,"identifier":"PRO-42","sequenceNumber":42,"title":"Prepare launch checklist","description":[{"type":"p","children":[{"text":"Confirm the release steps."}]}],"descriptionText":"Confirm the release steps.","status":"in_progress","priority":"high","sortOrder":1024,"orderKey":"a0","parentTaskId":null,"startDate":1779600000000,"dueDate":1780204800000,"estimatePoints":5,"estimateMinutes":240,"subtaskTotal":0,"subtaskDone":0,"checklistTotal":0,"checklistDone":0,"reactionCount":0,"createdAt":1779600000000,"updatedAt":1779680000000,"webUrl":"https://projectfeed.app/acme/task/PRO-42","tags":[],"tagsTruncated":false,"author":{"id":"usr_abc789","name":"John Doe","email":"john@example.com","image":"/api/media/avatars/john.jpg"},"assignee":null,"assigneeIds":[],"assignees":[],"project":{"id":"prj_xyz789","name":"Product Launch","color":"#3B82F6"},"contentHash":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
```

### DELETE /api/v1/tasks/:id

Scope

tasks:write

Path parameters

-   `id` string required
    
    Task ID, identifier, or task number (URL path)
    

Request

curl

```
curl --request DELETE \
  --url 'https://projectfeed.app/api/v1/tasks/tsk_abc123' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{ "id": "tsk_abc123", "deleted": true }
```

### POST /api/v1/tasks/:id/restore

Scope

tasks:write

Path parameters

-   `id` string required
    
    Task ID, identifier, or task number (URL path)
    

Request

curl

```
curl --request POST \
  --url 'https://projectfeed.app/api/v1/tasks/tsk_abc123/restore' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{
  "id": "tsk_abc123",
  "taskNumber": 42,
  "identifier": "PRO-42",
  "sequenceNumber": 42,
  "title": "Prepare launch checklist",
  "description": [
    { "type": "p", "children": [{ "text": "Confirm the release steps." }] }
  ],
  "descriptionText": "Confirm the release steps.",
  "status": "in_progress",
  "priority": "high",
  "sortOrder": 1024,
  "orderKey": "a0",
  "parentTaskId": null,
  "startDate": 1779600000000,
  "dueDate": 1780204800000,
  "estimatePoints": 5,
  "estimateMinutes": 240,
  "subtaskTotal": 0,
  "subtaskDone": 0,
  "checklistTotal": 0,
  "checklistDone": 0,
  "reactionCount": 0,
  "createdAt": 1779600000000,
  "updatedAt": 1779680000000,
  "webUrl": "https://projectfeed.app/acme/task/PRO-42",
  "tags": [],
  "tagsTruncated": false,
  "author": {
    "id": "usr_abc789",
    "name": "John Doe",
    "email": "john@example.com",
    "image": "/api/media/avatars/john.jpg"
  },
  "assignee": null,
  "assigneeIds": [],
  "assignees": [],
  "project": {
    "id": "prj_xyz789",
    "name": "Product Launch",
    "color": "#3B82F6"
  }
}
```

### POST /api/v1/tasks/:id/move

Scope

tasks:write

Path parameters

-   `id` string required
    
    Task ID, identifier, or task number (URL path)
    

Body parameters

-   `status` string
    
    Destination status column
    
-   `beforeTaskId` string
    
    Place the task directly before this task in the destination column. Accepts a task ID, identifier, or task number.
    
-   `afterTaskId` string
    
    Place the task directly after this task in the destination column. Accepts a task ID, identifier, or task number.
    
-   `index` number
    
    0-based position in the destination column, or among the parent's subtasks for a subtask, from 0 to 1,000
    
-   `projectId` string
    
    Move to another project. The task keeps its status and goes to the end of the column unless a position is also sent. Its subtasks move with it at every level. Returns 409 when the task has more than 100 tags, more than 500 subtasks, more than 1,000 tags across itself and its subtasks, or more attachments and Chat links than one move can carry.
    

Request

curl

```
curl --request POST \
  --url 'https://projectfeed.app/api/v1/tasks/tsk_abc123/move' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "status": "in_progress"
}'
```

Response

JSON

```
{
  "id": "tsk_abc123",
  "taskNumber": 42,
  "identifier": "PRO-42",
  "sequenceNumber": 42,
  "title": "Prepare launch checklist",
  "description": [
    { "type": "p", "children": [{ "text": "Confirm the release steps." }] }
  ],
  "descriptionText": "Confirm the release steps.",
  "status": "in_progress",
  "priority": "high",
  "sortOrder": 1024,
  "orderKey": "a0",
  "parentTaskId": null,
  "startDate": 1779600000000,
  "dueDate": 1780204800000,
  "estimatePoints": 5,
  "estimateMinutes": 240,
  "subtaskTotal": 0,
  "subtaskDone": 0,
  "checklistTotal": 0,
  "checklistDone": 0,
  "reactionCount": 0,
  "createdAt": 1779600000000,
  "updatedAt": 1779680000000,
  "webUrl": "https://projectfeed.app/acme/task/PRO-42",
  "tags": [],
  "tagsTruncated": false,
  "author": {
    "id": "usr_abc789",
    "name": "John Doe",
    "email": "john@example.com",
    "image": "/api/media/avatars/john.jpg"
  },
  "assignee": null,
  "assigneeIds": [],
  "assignees": [],
  "project": {
    "id": "prj_xyz789",
    "name": "Product Launch",
    "color": "#3B82F6"
  }
}
```

### POST /api/v1/tasks/bulk

Scope

tasks:write

Body parameters

-   `action` string required
    
    status, priority, assign, move_project, delete, restore, due_date, tag_add, or tag_remove
    
-   `taskIds` string[] required
    
    Up to 50 task IDs, identifiers, or task numbers. restore also finds deleted tasks.
    
-   `status` string
    
    New status, for the status action
    
-   `priority` string
    
    New priority, for the priority action
    
-   `assigneeId` string|null
    
    User to assign, or null to remove every assignee, for the assign action
    
-   `projectId` string
    
    Destination project, for the move_project action. Subtasks fail with 400; move their parent instead. A task over the move limits fails with 409.
    
-   `dueDate` number|null
    
    Due date as Unix milliseconds, or null to clear it, for the due_date action. Required for that action.
    
-   `tagIds` string[]
    
    Tag IDs, for the tag_add and tag_remove actions. tag_remove needs this field.
    
-   `tagNames` string[]
    
    Tag names, for the tag_add action. A name that matches no tag creates one. tag_remove does not take names.
    

Request

curl

```
curl --request POST \
  --url 'https://projectfeed.app/api/v1/tasks/bulk' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "action": "status",
  "taskIds": [
    "tsk_abc123",
    "PRO-43"
  ],
  "status": "in_review"
}'
```

Response

JSON

```
{
  "action": "delete",
  "succeeded": ["tsk_abc123"],
  "failed": [
    {
      "taskId": "PRO-43",
      "status": 403,
      "code": "permission_denied",
      "detail": "Cannot delete this task"
    }
  ]
}
```

### POST /api/v1/tasks/batch

Scope

tasks:write

Body parameters

-   `tasks` object[] required
    
    1 to 50 task objects. Each takes the fields of Create task, except idempotencyKey. projectId and parentTaskId accept a project or task reference as well as an ID.
    
-   `idempotencyKey` string
    
    Up to 128 characters. May be sent as the Idempotency-Key header instead. See Idempotency keys in Conventions.
    

Request

curl

```
curl --request POST \
  --url 'https://projectfeed.app/api/v1/tasks/batch' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "tasks": [
    {
      "title": "Prepare launch checklist",
      "projectId": "prj_abc123"
    }
  ]
}'
```

Response

JSON

```
{
  "results": [
    {
      "index": 0,
      "status": 201,
      "task": {
        "id": "tsk_abc123",
        "taskNumber": 43,
        "identifier": "PRO-43",
        "title": "Fix login redirect",
        "status": "todo",
        "priority": "high"
      }
    },
    {
      "index": 1,
      "status": 404,
      "code": "not_found",
      "detail": "Project not found: PRJ-9",
      "field": "projectId"
    }
  ],
  "created": 1,
  "failed": 1
}
```

### GET /api/v1/tasks/:id/link-attachments

Scope

tasks:read

Path parameters

-   `id` string required
    
    Task ID, identifier, or number (URL path)
    

Query parameters

-   `fields` string
    
    Comma-separated fields to return. id is always included. See Choosing fields in Conventions.
    

Request

curl

```
curl --request GET \
  --url 'https://projectfeed.app/api/v1/tasks/tsk_abc123/link-attachments' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{
  "linkAttachments": [{
    "id": "lnk_abc123",
    "url": "https://example.com/spec",
    "status": "ready",
    "preview": {
      "title": "Launch spec",
      "description": "What ships and when.",
      "imageUrl": "https://example.com/spec.png",
      "faviconUrl": "https://example.com/favicon.ico",
      "siteName": "Example"
    },
    "createdBy": "usr_abc123",
    "createdAt": 1709251200000
  }],
  "hasMore": false,
  "nextCursor": null
}
```

### POST /api/v1/tasks/:id/link-attachments

Scope

tasks:write

Path parameters

-   `id` string required
    
    Task ID, identifier, or number (URL path)
    

Body parameters

-   `url` string required
    
    The link to attach (http or https)
    
-   `idempotencyKey` string
    
    Up to 128 characters. May be sent as the Idempotency-Key header instead. See Idempotency keys in Conventions.
    

Request

curl

```
curl --request POST \
  --url 'https://projectfeed.app/api/v1/tasks/tsk_abc123/link-attachments' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "url": "url_abc123"
}'
```

Response

JSON

```
{
  "id": "lnk_abc123",
  "url": "https://example.com/spec",
  "status": "ready",
  "preview": {
    "title": "Launch spec",
    "description": "What ships and when.",
    "imageUrl": "https://example.com/spec.png",
    "faviconUrl": "https://example.com/favicon.ico",
    "siteName": "Example"
  },
  "createdBy": "usr_abc123",
  "createdAt": 1709251200000
}
```

### DELETE /api/v1/tasks/:id/link-attachments/:linkId

Scope

tasks:write

Path parameters

-   `id` string required
    
    Task ID, identifier, or number (URL path)
    
-   `linkId` string required
    
    Link ID from the list (URL path)
    

Request

curl

```
curl --request DELETE \
  --url 'https://projectfeed.app/api/v1/tasks/tsk_abc123/link-attachments/lnk_abc123' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{ "id": "lnk_abc123", "deleted": true }
```

### Listing tasks

The list uses a cursor. Follow `nextCursor` until `hasMore` is false. A page can hold fewer tasks than `limit`, even none, when the key's project access hides some rows, so a short page is not the end. A cursor can stop matching if the server changes how it reads the list between pages. The request then returns 400 `invalid_cursor`; start again from the first page. See [pagination](https://projectfeed.app/docs/api/conventions#pagination).

### Filtering and sorting

Filters combine, so `status=todo,in_progress` with `creatorId=me` returns your open tasks. Dates are exclusive and tasks without the date are left out. Subtasks stay out of the list unless `includeSubtasks=true` or `parentTaskId` is set. `viewId` applies one of your saved views; filters you send in the same request take precedence.

Sorting by `priority`, `status`, `due_date`, `title`, `task_number`, or `board`, and filtering by `tagIds`, `q`, or `ids`, read a window of up to 500 tasks and page through it. When more than 500 tasks match, the response carries `truncated: true` and the order and pages cover only that window. Narrow the filters to read the rest.

`include` embeds up to 20 checklist items or subtasks per task, so a list that uses it holds at most 25 tasks. Use `checklistTruncated` and `subtasksTruncated` to see whether a task has more rows than were embedded. `ids` returns the tasks in the order you list them and adds a `missing` array with the references that matched no task you can read.

### Task activity

The activity endpoint returns the same history as the task's activity feed. For a change, `fromValue` and `toValue` hold the old and new text. Assignee changes use `fromAssigneeIds` and `toAssigneeIds`, moves between projects use `fromProjectId` and `toProjectId`, and comments carry `commentId`. Fields that do not apply are `null`. `createdVia` says where the change came from, such as `web` or `api`.

The `types` filter accepts: `status_change` , `priority_change` , `assignee_change` , `title_change` , `description_change` , `due_date_change` , `start_date_change` , `estimate_change` , `comment` , `created` , `subtask_added` , `subtask_removed` , `subtask_completed` , `checklist_item_added` , `checklist_item_checked` , `checklist_item_unchecked` , `checklist_item_updated` , `checklist_item_removed` , `project_change` , `time_entry_logged` , `time_entry_edited` , `time_entry_deleted` , `time_entry_duplicated` , `time_estimate_changed` , `timer_started` , `timer_stopped` , `timer_auto_stopped` , `timer_idle_paused` , `external_reference_added` , `external_issue_deleted` , `attachment_added` , `attachment_removed` , `tags_changed` , `link_added` , `link_removed` , `deleted` , `restored`.

### Polling for changes

To check for new or changed work, send `assigneeId=me` and set `updatedSince` to the largest `updatedAt` you have seen minus 5 seconds, and skip tasks whose `id` and `updatedAt` you already have. Writes can land slightly out of timestamp order, and two edits in the same millisecond move `updatedAt` forward by one, so a checkpoint with no overlap can miss a change. Tasks come back oldest update first, so the last task on the final page sets your next checkpoint. An empty result keeps the checkpoint where it was.

`assigneeId` matches a task when the user is any of its assignees, not only the first one. Both filters follow the same project access as the plain list, and subtasks are still left out.

A task that is unassigned from the user, trashed, turned into a subtask, or moved to a project the caller cannot open simply stops appearing. To learn about it, add `includeRemoved=true`. The response then has a `removed` array of `{ id, updatedAt, deletedAt }`, where `updatedAt` is when the user left the task and `deletedAt` is when it was trashed, or null. Removals share the cursor with the tasks, so take the largest `updatedAt` across both arrays as the next checkpoint. A task that is assigned to the user again comes back in `tasks`. When you list another user's tasks, `removed` also names a task you lost: it moved out of a project you could open, or you left that project or it turned private. A task that did not change then carries the time you lost access as `updatedAt`, and comes after the tasks on the last pages, which can be short or empty while `hasMore` is true. A task can appear in `removed` more than once, so treat each entry as idempotent. If you get access to the project back, its unchanged tasks are not sent again, so list them without `updatedSince` once the project returns in the projects list. The `status` and `priority` filters do not apply to tasks the user left, but a task still assigned to the user that changed and no longer matches them is listed in `removed` too. Removals are kept for 30 days, so start again from a full list after a longer gap.

Adding a comment does not change a task's `updatedAt`. To read new comments on a task, pass `since` to the comments endpoint, or poll notifications with `since`.

### Task IDs and identifiers

A task has an `id` such as `tsk_abc123`, an `identifier` such as `PRO-42`, and a `taskNumber`. Get, delete, restore, move, and bulk actions, the links and references endpoints, and the attachments list accept any of the three. The other endpoints expect the task `id`.

### Task fields

Task responses use the fields shown in the list example. `startDate`, `dueDate`, `completedAt`, and `estimatePoints` are left out when they have no value. `assignees` lists everyone assigned and `assignee` is the first of them. `tags` holds up to 100 tags and `tagsTruncated` is true when the task has more. `webUrl` is a link that opens the task in Project Feed. `commentCount` is `null` until the task's count has been built. `trackedSeconds` is the logged time in total, and `activeTimerUserId` is the user whose timer is running, or `null`. `createdVia` says where the task was created, such as `web` or `api`. `externalSource` and `externalId` identify a task that came from a connected tool and are `null` otherwise. `deletedAt` is `null` except when you list deleted tasks. Get task also returns `linkAttachments`, the web links on the task. User objects can carry extra avatar fields that are not part of the contract. Rely on `id`, `name`, `email`, and `image`.

### Status values

`backlog`

Not yet planned.

`todo`

Planned and ready to be worked on. The default for new tasks.

`in_progress`

Being worked on.

`perpetual`

Ongoing work that is not expected to be completed.

`in_review`

Work is complete and waiting for review.

`done`

Completed.

`cancelled`

Will not be completed.

### Priority values

`none`

No priority set. The default for new tasks.

`low`

Low priority.

`medium`

Medium priority.

`high`

High priority.

`urgent`

Needs immediate attention.

### Assignees

A task can have up to 20 assignees. Send `assigneeIds` to set the whole list. Send `assigneeId` alone to replace the list with one person, or `null` on update to remove everyone. If you send both, `assigneeIds` is the list and `assigneeId` becomes its first entry, added if it is missing. Each assignee must be a workspace member who can open the task's project.

### Dates and estimates

`startDate` and `dueDate` are Unix timestamps in milliseconds and can be set independently. `estimatePoints` holds story points from 0 to 10,000. `estimateMinutes` holds a time estimate in whole minutes, from 0 to 100,000, and returns 403 when time tracking is turned off for the workspace. On update, send `null` to clear any of these four fields.

### Moving tasks

`POST /api/v1/tasks/:id/move` uses the same ordering as dragging a card on the board. A column is the set of top-level tasks with the same status. A subtask's position is among all of its parent's subtasks, in the order the task lists them, whatever their status, so its anchor must be another subtask of the same parent. Send at most one of `beforeTaskId`, `afterTaskId`, or `index`; with none, the task goes to the end of its column or its parent's subtasks. Changing the status fires the same events as the app, including completing open subtasks when a task moves to `done`. A subtask cannot move to another project on its own. Move its parent instead.

### Bulk actions

`POST /api/v1/tasks/bulk` matches the board's multi-select actions. The `status` and `assign` actions run as one change: if any task is missing or you cannot change it, nothing changes and the request fails. The `priority`, `move_project`, `delete`, `restore`, `due_date`, `tag_add`, and `tag_remove` actions update each task on its own and list the tasks that failed with a status and reason. Each task gets the same checks, activity, and webhooks as a single update. A task you cannot open is reported as not found, the same as a task that does not exist.

`restore` also finds deleted tasks. With `due_date`, send `dueDate` as Unix milliseconds, or `null` to clear it. `tag_add` takes `tagIds`, `tagNames`, or both, and `tag_remove` takes `tagIds`.

### Creating tasks in a batch

`POST /api/v1/tasks/batch` creates up to 50 tasks. The response lists one entry per task in the order you sent them: `status: 201` with the created `task`, or an error `status`, `code`, and `detail`, plus the `field` at fault when there is one. `created` and `failed` count the two. Tasks that were created stay created when a later entry fails. Send an idempotency key so a retry after a dropped connection does not create them twice.

### Deleting and restoring

Restoring brings back the task, its subtasks, checklist, and comments. Tags removed by the delete are not restored. A subtask can only be restored after its parent. After the trash retention period ends, restore returns an error.

## Formatted text

Posts, comments, annotations, and Docs accept plain strings or Plate JSON block arrays in `content`. For Markdown, set `contentFormat` to `markdown`. Task descriptions use `description` and `descriptionFormat`. These options apply to both create and edit requests.

JSON

```
{
  "content": "## Review\n\n- **Ready**\n- [Details](https://example.com)",
  "contentFormat": "markdown"
}
```

Markdown supports headings, nested lists, checklists, links, tables, code blocks, and inline formatting. Footnotes become numbered superscript markers with the notes listed at the end. Structured JSON uses the editor's blocks. Each block has a `type` and `children`. Text leaves use `text` with optional marks such as `bold` or `italic`.

JSON

```
{
  "content": [
    {"type": "h2", "children": [{"text": "Review"}]},
    {"type": "p", "indent": 1, "listStyleType": "disc", "children": [{"text": "Ready", "bold": true}]}
  ]
}
```

Explicit formats are `plaintext`, `markdown`, and `platejs`. Omit the format to keep existing string behavior or infer structured JSON. Responses retain the stored formatting. Task comments return their Plate content as a JSON string.

Posts, task descriptions, and Docs can show a file inline. Write a Markdown image whose URL is `media:` followed by the file's media ID, such as `![Login screen](media:<mediaId>)`. The text in brackets becomes the caption. In Plate JSON, put the same URL on an `img`, `video`, `audio`, or `file` node. The file can be on the same post or task, on another post, task, or comment, on a canvas, or uploaded to a doc, as long as you can open it. A project-restricted key can only use files from its project. When the request also sends `uploads`, `upload:0` names its first upload. A media ID you cannot open returns 400. A doc read as Markdown writes its inline files back the same way, so they survive an edit.

JSON

```
{
  "content": "Fixed the overflow.\n\n![After the fix](upload:0)\n\n![Original report](media:<mediaId>)",
  "contentFormat": "markdown",
  "uploads": [
    {
      "uploadToken": "<uploadToken>",
      "parts": []
    }
  ]
}
```

The server derives `contentText` and `descriptionText` from the content. Character limits count visible text; request-size limits also apply. Names, titles, and other plain-text fields remain strings.

## Comments, checklists, and subtasks

### GET /api/v1/tasks/:id/comments

Scope

tasks:read

Path parameters

-   `id` string required
    
    Task ID, project identifier such as PRO-53, or workspace task number (URL path). Project identifiers are case-insensitive.
    

Query parameters

-   `limit` number
    
    Comments per page (max 100, default 50)
    
-   `offset` number
    
    Comments to skip, from 0 to 10,000 (default 0). Cursor takes precedence. Offset pages do not return a cursor.
    
-   `since` string
    
    Only comments created after this time, oldest first. Epoch milliseconds, or an ISO 8601 time with a timezone. Other values return 400. Cannot be combined with an offset above 0. total still counts every comment on the task.
    
-   `cursor` string
    
    The previous page's nextCursor. Omit for the first page.
    
-   `order` string
    
    asc or desc. Defaults to desc, or asc when since is set.
    

Request

curl

```
curl --request GET \
  --url 'https://projectfeed.app/api/v1/tasks/tsk_abc123/comments' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{
  "comments": [
    {
      "id": "tcm_abc123",
      "parentId": null,
      "content": "Looks good to me.",
      "createdAt": 1779680000000,
      "updatedAt": 1779680000000,
      "createdVia": "web",
      "reactionCount": 2,
      "attachments": [
        {
          "id": "att_abc123",
          "target": "taskComment",
          "parentId": "tcm_abc123",
          "fileName": "screenshot.png",
          "originalFileName": "screenshot.png",
          "fileType": "image",
          "fileSize": 48213,
          "mimeType": "image/png",
          "url": "/api/media/att_abc123",
          "thumbnailUrl": "/api/media/att_abc123/thumbnail",
          "width": 1280,
          "height": 720,
          "createdAt": 1779680000000
        }
      ],
      "author": {
        "id": "usr_abc123",
        "name": "John Doe",
        "email": "john@example.com",
        "image": "/api/media/avatars/john.jpg"
      }
    }
  ],
  "total": 1,
  "hasMore": false,
  "nextCursor": null
}
```

### POST /api/v1/tasks/:id/comments

Scope

tasks:write

Path parameters

-   `id` string required
    
    Task ID (URL path)
    

Body parameters

-   `content` string|array required
    
    Plain text, Markdown, or Plate JSON blocks. Maximum 10,000 visible characters.
    
-   `contentFormat` string
    
    plaintext, markdown, or platejs
    
-   `parentId` string
    
    ID of a comment on this task to reply to
    
-   `audience` string
    
    workspace (default) keeps the comment internal, even under a client comment. client shares it with the request submitter. Requires a task from a client request; a client reply must have a client parent.
    
-   `uploads` object[]
    
    Up to 10 files as { uploadToken, parts } from an upload prepared with destination newTaskComment for this task and not completed. Each token works once, so send an idempotencyKey to make a retry return the comment. Requires media:write.
    
-   `idempotencyKey` string
    
    Up to 128 characters. Retrying with the same key, content, audience, and uploads returns the first comment instead of adding another. Reusing the key with different content, audience, or uploads returns 409 with the code idempotency_key_reused.
    
-   `model` string
    
    Model doing the writing, such as claude-opus-5-5. 100 characters or less. Shown on what it writes.
    
-   `effort` string
    
    Reasoning effort the model is running at, such as high. 32 characters or less. Shown with the model.
    

Request

curl

```
curl --request POST \
  --url 'https://projectfeed.app/api/v1/tasks/tsk_abc123/comments' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "content": "Ready for review."
}'
```

Response

JSON

```
{ "id": "cmt_abc123" }
```

### PATCH /api/v1/tasks/:id/comments/:commentId

Scope

tasks:write

Path parameters

-   `id` string required
    
    Task ID (URL path)
    
-   `commentId` string required
    
    Comment ID (URL path)
    

Headers

-   `If-Match` string
    
    Source ETag or W/"<updatedAt>". A changed source returns 412 precondition_failed.
    

Body parameters

-   `expectedUpdatedAt` number
    
    Source updatedAt in Unix milliseconds. A changed source returns 412 precondition_failed. Must match If-Match when both are sent.
    
-   `content` string|array required
    
    New comment text (max 10,000 chars)
    
-   `contentFormat` string
    
    plaintext, markdown, or platejs
    

Request

curl

```
curl --request PATCH \
  --url 'https://projectfeed.app/api/v1/tasks/tsk_abc123/comments/cmt_abc123' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "content": "Ready for review."
}'
```

Response

JSON

```
{
  "id": "cmt_abc123",
  "content": "Ready for review.",
  "createdAt": 1779680000000,
  "updatedAt": 1779680300000,
  "author": {
    "id": "usr_def456",
    "name": "Jane Smith",
    "email": "jane@example.com",
    "image": "/api/media/avatars/jane.jpg"
  }
}
```

### DELETE /api/v1/tasks/:id/comments/:commentId

Scope

tasks:write

Path parameters

-   `id` string required
    
    Task ID (URL path)
    
-   `commentId` string required
    
    Comment ID (URL path)
    

Headers

-   `If-Match` string
    
    Source ETag or W/"<updatedAt>". A changed source returns 412 precondition_failed.
    

Request

curl

```
curl --request DELETE \
  --url 'https://projectfeed.app/api/v1/tasks/tsk_abc123/comments/cmt_abc123' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{ "deleted": true }
```

### DELETE /api/v1/tasks/:id/comments

Scope

tasks:write

Path parameters

-   `id` string required
    
    Task ID (URL path)
    

Request

curl

```
curl --request DELETE \
  --url 'https://projectfeed.app/api/v1/tasks/tsk_abc123/comments' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{ "deleted": 2, "hasMore": false }
```

### GET /api/v1/tasks/:id/subtasks

Scope

tasks:read

Path parameters

-   `id` string required
    
    Parent task ID, identifier, or number (URL path)
    

Query parameters

-   `limit` number
    
    Items per response, 1 to 200. Leave it out to get the whole list in one response, up to 1,000 items.
    
-   `cursor` string
    
    nextCursor from the previous response. Treat it as an opaque string and pass it back unchanged.
    
-   `fields` string
    
    Comma-separated task fields to return. id is always included. See Choosing fields in Conventions.
    
-   `view` string
    
    compact leaves out description and descriptionText. Default full.
    

Request

curl

```
curl --request GET \
  --url 'https://projectfeed.app/api/v1/tasks/tsk_abc123/subtasks' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{
  "subtasks": [
    {
      "id": "tsk_def456",
      "taskNumber": 44,
      "identifier": "PRO-44",
      "sequenceNumber": 44,
      "title": "Add the toggle to settings",
      "description": [
        { "type": "p", "children": [{ "text": "Wire it to the theme store." }] }
      ],
      "descriptionText": "Wire it to the theme store.",
      "status": "todo",
      "priority": "medium",
      "sortOrder": 1024,
      "orderKey": "a0",
      "parentTaskId": "tsk_abc123",
      "startDate": null,
      "dueDate": 1709856000000,
      "completedAt": null,
      "estimatePoints": null,
      "estimateMinutes": 60,
      "subtaskTotal": 0,
      "subtaskDone": 0,
      "checklistTotal": 0,
      "checklistDone": 0,
      "reactionCount": 0,
      "commentCount": 0,
      "trackedSeconds": 0,
      "activeTimerUserId": null,
      "createdVia": "web",
      "externalSource": null,
      "externalId": null,
      "createdAt": 1709251200000,
      "updatedAt": 1709294400000,
      "deletedAt": null,
      "webUrl": "https://projectfeed.app/acme/task/PRO-44",
      "tags": [],
      "tagsTruncated": false,
      "author": {
        "id": "usr_abc123",
        "name": "John Doe",
        "email": "john@example.com",
        "image": "/api/media/avatars/john.jpg"
      },
      "assignee": null,
      "assigneeIds": [],
      "assignees": [],
      "project": {
        "id": "prj_abc123",
        "name": "Product Launch",
        "color": "#3B82F6"
      }
    }
  ],
  "hasMore": false,
  "nextCursor": null,
  "total": 1
}
```

### POST /api/v1/tasks/:id/subtasks

Scope

tasks:write

Path parameters

-   `id` string required
    
    Parent task ID (URL path)
    

Body parameters

-   `title` string required
    
    Subtask title
    
-   `status` string
    
    Task status (default: todo)
    
-   `priority` string
    
    Task priority (default: none)
    
-   `assigneeId` string
    
    User ID to assign the subtask to
    
-   `assigneeIds` string[]
    
    Up to 20 user IDs to assign
    

Request

curl

```
curl --request POST \
  --url 'https://projectfeed.app/api/v1/tasks/tsk_abc123/subtasks' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "title": "Prepare launch checklist"
}'
```

Response

JSON

```
{
  "id": "tsk_abc123",
  "taskNumber": 42,
  "identifier": "PRO-42",
  "sequenceNumber": 42,
  "title": "Prepare launch checklist",
  "description": [
    { "type": "p", "children": [{ "text": "Confirm the release steps." }] }
  ],
  "descriptionText": "Confirm the release steps.",
  "status": "in_progress",
  "priority": "high",
  "sortOrder": 1024,
  "orderKey": "a0",
  "parentTaskId": null,
  "startDate": 1779600000000,
  "dueDate": 1780204800000,
  "estimatePoints": 5,
  "estimateMinutes": 240,
  "subtaskTotal": 0,
  "subtaskDone": 0,
  "checklistTotal": 0,
  "checklistDone": 0,
  "reactionCount": 0,
  "createdAt": 1779600000000,
  "updatedAt": 1779680000000,
  "webUrl": "https://projectfeed.app/acme/task/PRO-42",
  "tags": [],
  "tagsTruncated": false,
  "author": {
    "id": "usr_abc789",
    "name": "John Doe",
    "email": "john@example.com",
    "image": "/api/media/avatars/john.jpg"
  },
  "assignee": null,
  "assigneeIds": [],
  "assignees": [],
  "project": {
    "id": "prj_xyz789",
    "name": "Product Launch",
    "color": "#3B82F6"
  }
}
```

### GET /api/v1/tasks/:id/checklist

Scope

tasks:read

Path parameters

-   `id` string required
    
    Task ID, identifier, or number (URL path)
    

Query parameters

-   `limit` number
    
    Items per response, 1 to 200. Leave it out to get the whole list in one response, up to 1,000 items.
    
-   `cursor` string
    
    nextCursor from the previous response. Treat it as an opaque string and pass it back unchanged.
    
-   `fields` string
    
    Comma-separated item fields to return: id, taskId, text, checked, sortOrder, orderKey, createdVia, author, createdAt, updatedAt. id is always included.
    

Request

curl

```
curl --request GET \
  --url 'https://projectfeed.app/api/v1/tasks/tsk_abc123/checklist' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{
  "items": [
    {
      "id": "chk_abc123",
      "taskId": "tsk_abc123",
      "text": "Write the migration",
      "checked": true,
      "sortOrder": 1024,
      "orderKey": "a0",
      "createdVia": "web",
      "author": {
        "id": "usr_abc123",
        "name": "John Doe",
        "email": "john@example.com",
        "image": "/api/media/avatars/john.jpg"
      },
      "createdAt": 1709251200000,
      "updatedAt": 1709294400000
    }
  ],
  "hasMore": false,
  "nextCursor": null,
  "total": 1
}
```

### POST /api/v1/tasks/:id/checklist

Scope

tasks:write

Path parameters

-   `id` string required
    
    Task ID (URL path)
    

Body parameters

-   `text` string required
    
    Checklist item text, 1 to 500 chars after trimming
    
-   `checked` boolean
    
    Create the item already checked (default: false)
    

Request

curl

```
curl --request POST \
  --url 'https://projectfeed.app/api/v1/tasks/tsk_abc123/checklist' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "text": "Confirm launch date"
}'
```

Response

JSON

```
{ "id": "chk_abc123" }
```

### PATCH /api/v1/tasks/:id/checklist/:itemId

Scope

tasks:write

Path parameters

-   `id` string required
    
    Task ID (URL path)
    
-   `itemId` string required
    
    Checklist item ID (URL path)
    

Body parameters

-   `text` string
    
    New item text, 1 to 500 chars after trimming
    
-   `checked` boolean
    
    Set the checked state
    

Request

curl

```
curl --request PATCH \
  --url 'https://projectfeed.app/api/v1/tasks/tsk_abc123/checklist/chk_abc123' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "text": "Confirm launch date"
}'
```

Response

JSON

```
{ "updated": true }
```

### POST /api/v1/tasks/:id/checklist/:itemId/move

Scope

tasks:write

Path parameters

-   `id` string required
    
    Task ID (URL path)
    
-   `itemId` string required
    
    Checklist item ID (URL path)
    

Body parameters

-   `beforeItemId` string
    
    Place the item directly before this item
    
-   `afterItemId` string
    
    Place the item directly after this item
    
-   `index` number
    
    0-based position in the checklist. A value past the end moves the item to the end.
    

Request

curl

```
curl --request POST \
  --url 'https://projectfeed.app/api/v1/tasks/tsk_abc123/checklist/chk_abc123/move' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "beforeItemId": "beforeItemId_abc123"
}'
```

Response

JSON

```
{ "moved": true }
```

### DELETE /api/v1/tasks/:id/checklist/:itemId

Scope

tasks:write

Path parameters

-   `id` string required
    
    Task ID (URL path)
    
-   `itemId` string required
    
    Checklist item ID (URL path)
    

Request

curl

```
curl --request DELETE \
  --url 'https://projectfeed.app/api/v1/tasks/tsk_abc123/checklist/chk_abc123' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{ "deleted": true }
```

### Comment content

Comments accept the formats described in Formatted text. Responses return `content` as a string: the plain text you sent, or a JSON string of blocks when the comment was written as Markdown or blocks. Comments are paged with `limit` and `cursor`. Pass the returned `nextCursor` for the next page; a null value means there are no more cursor pages. Legacy `offset` requests remain supported. Each comment also returns `reactionCount` and its `attachments`, up to 10 files.

### Subtasks

A subtask is a task with a `parentTaskId`. Get, update, delete, and move it with the core task endpoints. The parent's `subtaskTotal` and `subtaskDone` count them. A task has at most 50 subtasks, and the list tasks endpoint does not include them.

## Links, references, and attachments

### POST /api/v1/tasks/:id/links

Scope

tasks:write

Path parameters

-   `id` string required
    
    Task ID (URL path)
    

Body parameters

-   `postId` string required
    
    Post ID to link
    

Request

curl

```
curl --request POST \
  --url 'https://projectfeed.app/api/v1/tasks/tsk_abc123/links' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "postId": "pst_abc123"
}'
```

Response

JSON

```
{ "id": "lnk_abc123" }
```

### GET /api/v1/tasks/:id/links

Scope

tasks:read

Path parameters

-   `id` string required
    
    Task ID, identifier, or task number (URL path)
    

Request

curl

```
curl --request GET \
  --url 'https://projectfeed.app/api/v1/tasks/tsk_abc123/links' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{
  "links": [
    {
      "id": "lnk_abc123",
      "linkedAt": 1779680000000,
      "post": {
        "id": "pst_abc123",
        "identifier": "PRO-P12",
        "title": "Launch notes",
        "status": "published",
        "publishedAt": 1779600000000,
        "createdAt": 1779600000000,
        "author": { "id": "usr_def456", "name": "Jane Smith", "image": "/api/media/avatars/jane.jpg" }
      }
    }
  ],
  "truncated": false
}
```

### DELETE /api/v1/tasks/:id/links/:postId

Scope

tasks:write

Path parameters

-   `id` string required
    
    Task ID, identifier, or task number (URL path)
    
-   `postId` string required
    
    Post ID (URL path)
    

Request

curl

```
curl --request DELETE \
  --url 'https://projectfeed.app/api/v1/tasks/tsk_abc123/links/pst_abc123' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{ "deleted": true }
```

### DELETE /api/v1/tasks/:id/links

Scope

tasks:write

Path parameters

-   `id` string required
    
    Task ID (URL path)
    

Request

curl

```
curl --request DELETE \
  --url 'https://projectfeed.app/api/v1/tasks/tsk_abc123/links' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{ "deleted": 200, "hasMore": true }
```

### GET /api/v1/tasks/:id/references

Scope

tasks:read

Path parameters

-   `id` string required
    
    Task ID, identifier, or task number (URL path)
    

Request

curl

```
curl --request GET \
  --url 'https://projectfeed.app/api/v1/tasks/tsk_abc123/references' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{
  "referencedBy": [
    {
      "type": "doc",
      "id": "doc_abc123",
      "title": "Launch runbook",
      "subtitle": "Engineering",
      "identifier": "DOC-4",
      "urlPath": "docs/engineering/launch-runbook",
      "updatedAt": 1779680000000
    }
  ],
  "external": [
    {
      "id": "ref_abc123",
      "provider": "github",
      "kind": "pull_request",
      "title": "Fix login redirect",
      "url": "https://github.com/acme/app/pull/12",
      "shortRef": "#12",
      "state": "open",
      "repository": "acme/app",
      "createdAt": 1779680000000
    }
  ],
  "capped": false
}
```

### DELETE /api/v1/tasks/:id/references/:referenceId

Scope

tasks:write

Path parameters

-   `id` string required
    
    Task ID, identifier, or task number (URL path)
    
-   `referenceId` string required
    
    External reference ID (URL path)
    

Request

curl

```
curl --request DELETE \
  --url 'https://projectfeed.app/api/v1/tasks/tsk_abc123/references/ref_abc123' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{ "id": "ref_abc123", "deleted": true }
```

### GET /api/v1/tasks/:id/external-issue

Scope

tasks:read

Path parameters

-   `id` string required
    
    Task ID, identifier such as PRO-42, or task number (URL path)
    

Request

curl

```
curl --request GET \
  --url 'https://projectfeed.app/api/v1/tasks/tsk_abc123/external-issue' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{
  "taskId": "tsk_abc123",
  "providers": { "github": true, "jira": false }
}
```

### POST /api/v1/tasks/:id/external-issue

Scope

tasks:write

Path parameters

-   `id` string required
    
    Task ID, identifier such as PRO-42, or task number (URL path)
    

Body parameters

-   `provider` string required
    
    github or jira
    

Request

curl

```
curl --request POST \
  --url 'https://projectfeed.app/api/v1/tasks/tsk_abc123/external-issue' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "provider": "provider_abc123"
}'
```

Response

JSON

```
{
  "taskId": "tsk_abc123",
  "provider": "github",
  "status": "queued"
}
```

### GET /api/v1/tasks/:id/attachments

Scopes

tasks:read

media:read

Path parameters

-   `id` string required
    
    Task ID, identifier, or task number (URL path)
    

Query parameters

-   `limit` number
    
    Number of files (max 100, default 50)
    
-   `cursor` string
    
    Cursor returned by the previous page
    

Request

curl

```
curl --request GET \
  --url 'https://projectfeed.app/api/v1/tasks/tsk_abc123/attachments' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{
  "items": [
    {
      "id": "att_abc123",
      "target": "task",
      "parentId": "tsk_abc123",
      "fileName": "spec.pdf",
      "fileType": "document",
      "fileSize": 48213,
      "mimeType": "application/pdf",
      "url": "/api/media/att_abc123",
      "thumbnailUrl": null,
      "createdAt": 1779680000000
    }
  ],
  "hasMore": false
}
```

Linking connects a task to a post. The references endpoint lists the docs, posts, and tasks that mention a task, and the commits, pull requests, issues, and files linked from connected tools. Mentions inside the task's own description are part of its `description`.

To open an issue in GitHub or Jira from a task, read the `external-issue` options first, then post the `provider` you want. Creation runs in the background, so the response is `status: "queued"` and the issue shows up in the task's references when it exists.

To attach a file, upload it with the Media API and send the task ID. A task holds up to 10 attachments. Listing attachments needs `media:read` as well as `tasks:read`. See the [Media API](https://projectfeed.app/docs/api/files) for upload steps, file types, and size limits.

## Tags on a task

All four task-tag endpoints accept native session tokens with Authorization: Bearer and X-Project-Feed-Workspace. Reads require task access; writes require task and project write access. Workspace and project viewers cannot write. Use GET /api/v1/tags with projectId to load eligible tags, then PUT this task's tags with tagIds to replace the selection. An empty tagIds array clears it.

### GET /api/v1/tasks/:id/tags

Scope

tasks:read

Path parameters

-   `id` string required
    
    Task ID (URL path)
    

Request

curl

```
curl --request GET \
  --url 'https://projectfeed.app/api/v1/tasks/tsk_abc123/tags' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
[
  { "id": "tag_abc123", "name": "design", "color": "#F59E0B", "description": "Design work" },
  { "id": "tag_def456", "name": "frontend", "color": "#3B82F6", "description": null }
]
```

### POST /api/v1/tasks/:id/tags

Scope

tasks:write

Path parameters

-   `id` string required
    
    Task ID (URL path)
    

Body parameters

-   `tagId` string
    
    Tag ID to add. Send tagId or tagName.
    
-   `tagName` string
    
    Tag name to add. Matches a tag in the task's project first, then a workspace tag.
    

Request

curl

```
curl --request POST \
  --url 'https://projectfeed.app/api/v1/tasks/tsk_abc123/tags' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "tagId": "tag_abc123"
}'
```

Response

JSON

```
{ "id": "tt_abc123" }
```

### PUT /api/v1/tasks/:id/tags

Scope

tasks:write

Path parameters

-   `id` string required
    
    Task ID (URL path)
    

Body parameters

-   `tagIds` string[]
    
    Tag IDs to set. Send tagIds, tagNames, or both; empty arrays clear the tags.
    
-   `tagNames` string[]
    
    Tag names to set
    

Request

curl

```
curl --request PUT \
  --url 'https://projectfeed.app/api/v1/tasks/tsk_abc123/tags' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "tagIds": [
    "tag_abc123",
    "tag_def456"
  ]
}'
```

Response

JSON

```
{
  "tagIds": ["tag_abc123", "tag_def456"]
}
```

### DELETE /api/v1/tasks/:id/tags/:tagId

Scope

tasks:write

Path parameters

-   `id` string required
    
    Task ID (URL path)
    
-   `tagId` string required
    
    Tag ID to remove (URL path)
    

Request

curl

```
curl --request DELETE \
  --url 'https://projectfeed.app/api/v1/tasks/tsk_abc123/tags/tag_abc123' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{ "deleted": true }
```

These endpoints apply tags to one task. The tags themselves, and who can create them, are covered in the [Tags API](https://projectfeed.app/docs/api/tags). A project tag can only be applied to tasks in its project.

## Permissions

Native session tokens can read one task, move or delete it, add or remove its tags, read or change its reactions, and edit or delete a single task comment. Send X-Project-Feed-Workspace with each request. The same resource and role checks apply; viewers cannot write. A comment must belong to the task named in the URL. Only its author can edit it; its author or a workspace owner or admin can delete it.

GET one task returns an ETag. Send it unchanged as If-Match when deleting the task; a 412 requires a fresh read and conflict resolution. After a timeout, re-read before retrying. A 404 means the task is unavailable, not proof that the timed-out request deleted it. Do not replace the original ETag just to retry a delete.

Move and tag writes have no If-Match check or idempotency-key replay cache. Reconcile an ambiguous move before retrying. Tag assignment is deduplicated; removing an absent tag returns 400. Confirm absence by reading the task with tagsTruncated false. Move changes project, status or order, not the parent task. Comment edit and delete accept If-Match; edits also accept expectedUpdatedAt. A changed comment returns 412 precondition_failed. Preserve the original condition and reconcile an uncertain result through the comment history before retrying. Comment writes have no keyed replay receipt, and a repeated delete can return 404.

For task reactions, send action add or remove for repeatable desired state. Omitting action toggles and is unsafe to replay after a timeout. Reading task reactions is safe to repeat. These writes have no If-Match check or idempotency-key replay cache.

Reading tasks needs the `tasks:read` scope. Creating, updating, and deleting tasks and their sub-resources needs `tasks:write`. The key's user also needs the same rights as in the app. Members can edit and assign any task in a project they can write to. Only the task's creator or a workspace owner or admin can delete or restore it. Viewers can only read. Private projects stay hidden from people who are not in them.

## Next steps

-   [Tags](https://projectfeed.app/docs/api/tags): create and manage the tags you apply to tasks.
-   [Time tracking](https://projectfeed.app/docs/api/time): log time against a task and start timers.
