Tasks

Tasks belong to a project. A token sees the tasks of every project in its workspace. Reading needs tasks:read; creating and updating need tasks:write.

Webhooks and notifications

Creates and updates made through the External API do not fire outbound webhooks or in-app notifications. If you need to react to your own writes, use the API response.

GET /api/v1/external/tasks

Scope: tasks:read

List the tasks of every project in the token's workspace.

Query parameters

Name Type Required Description
project_id integer No Only tasks of this project.
status_id integer No Only tasks with this status.
type_id integer No Only tasks of this type.
search string No A number matches the task id exactly; any other text matches the title.
page integer No Page number. Default 1.
per_page integer No Items per page. Default 20. Values are clamped to 1..100.

Request

curl "https://app.taskforce.place/api/v1/external/tasks?project_id=42&status_id=3" \
  -H "Authorization: Bearer $TASKFORCE_TOKEN" \
  -H "Accept: application/json"

Response

{
  "success": true,
  "message": "",
  "data": {
    "tasks": [
      {
        "id": 1287,
        "projectId": 42,
        "project": {
          "id": 42,
          "name": "Website relaunch",
          "tenantId": 7
        },
        "title": "Write the API reference",
        "description": "Cover projects, tasks and webhooks.",
        "priority": 2,
        "effort": 14400,
        "spentTime": 0,
        "typeId": 1,
        "parentId": null,
        "statusId": 3,
        "status": {
          "id": 3,
          "name": "New"
        },
        "assigneeIds": [
          15
        ],
        "assignees": [
          {
            "id": 15,
            "name": "Ana Costa",
            "email": "[email protected]",
            "avatar": null
          }
        ],
        "startedAt": "2026-09-25T00:00:00+00:00",
        "endAt": "2026-10-03T00:00:00+00:00",
        "createdAt": "2026-09-25T10:15:00+00:00",
        "updatedAt": "2026-09-25T10:15:00+00:00"
      }
    ],
    "meta": {
      "currentPage": 1,
      "from": 1,
      "lastPage": 1,
      "perPage": 20,
      "to": 1,
      "total": 1
    }
  },
  "meta": {}
}
GET /api/v1/external/tasks/{id}

Scope: tasks:read

Fetch one task.

Path parameters

Name Type Required Description
id integer Yes Path parameter. Task id. Non-numeric ids do not match the route and return 404.

Request

curl "https://app.taskforce.place/api/v1/external/tasks/1287" \
  -H "Authorization: Bearer $TASKFORCE_TOKEN" \
  -H "Accept: application/json"

Response

{
  "success": true,
  "message": "",
  "data": {
    "id": 1287,
    "projectId": 42,
    "project": {
      "id": 42,
      "name": "Website relaunch",
      "tenantId": 7
    },
    "title": "Write the API reference",
    "description": "Cover projects, tasks and webhooks.",
    "priority": 2,
    "effort": 14400,
    "spentTime": 0,
    "typeId": 1,
    "parentId": null,
    "statusId": 3,
    "status": {
      "id": 3,
      "name": "New"
    },
    "assigneeIds": [
      15
    ],
    "assignees": [
      {
        "id": 15,
        "name": "Ana Costa",
        "email": "[email protected]",
        "avatar": null
      }
    ],
    "startedAt": "2026-09-25T00:00:00+00:00",
    "endAt": "2026-10-03T00:00:00+00:00",
    "createdAt": "2026-09-25T10:15:00+00:00",
    "updatedAt": "2026-09-25T10:15:00+00:00"
  },
  "meta": {}
}
POST /api/v1/external/tasks

Scope: tasks:write

Create a task in a project.

Body

Name Type Required Description
title string Yes Max 255 characters.
project_id integer Yes Must be a project of the token's workspace (403 otherwise).
description string | null No Free text.
priority integer | null No 1 to 5, default 2 (High). See priorities.
effort integer | null No Estimated effort in seconds, 0 or more. Not converted: 4 hours is 14400.
status_id integer | null No Default 3 (New). See task statuses.
type_id integer | null No 1 to 5, default 1 (Task). See task types.
parent_id integer | null No Id of an existing task, to create a sub-task.
assignee_ids integer[] | null No User ids. Each must exist; users who are not members of the workspace are silently dropped.
started_at string | null No Any date string PHP can parse, ideally ISO 8601.
end_at string | null No Due date. Same format as started_at.

Request

curl -X POST "https://app.taskforce.place/api/v1/external/tasks" \
  -H "Authorization: Bearer $TASKFORCE_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"title":"Write the API reference","project_id":42,"effort":14400,"assignee_ids":[15],"end_at":"2026-10-03"}'

Response

{
  "success": true,
  "message": "Task created successfully",
  "data": {
    "id": 1287,
    "projectId": 42,
    "project": {
      "id": 42,
      "name": "Website relaunch",
      "tenantId": 7
    },
    "title": "Write the API reference",
    "description": "Cover projects, tasks and webhooks.",
    "priority": 2,
    "effort": 14400,
    "spentTime": 0,
    "typeId": 1,
    "parentId": null,
    "statusId": 3,
    "status": {
      "id": 3,
      "name": "New"
    },
    "assigneeIds": [
      15
    ],
    "assignees": [
      {
        "id": 15,
        "name": "Ana Costa",
        "email": "[email protected]",
        "avatar": null
      }
    ],
    "startedAt": "2026-09-25T00:00:00+00:00",
    "endAt": "2026-10-03T00:00:00+00:00",
    "createdAt": "2026-09-25T10:15:00+00:00",
    "updatedAt": "2026-09-25T10:15:00+00:00"
  },
  "meta": {}
}
  • Returns 201 with the new task.
  • A project_id that does not exist at all fails validation (422); one that exists in another workspace returns 403.
PATCH /api/v1/external/tasks/{id}

Scope: tasks:write

Update some fields of a task. Fields you leave out are unchanged.

Path parameters

Name Type Required Description
id integer Yes Path parameter. Task id. Non-numeric ids do not match the route and return 404.

Body

Name Type Required Description
title string No Max 255 characters.
project_id integer No Move the task to another project of the same workspace.
description string | null No Send null to clear.
priority integer | null No 1 to 5.
effort integer | null No Seconds.
status_id integer No See task statuses.
type_id integer No 1 to 5.
parent_id integer | null No Send null to detach from the parent.
assignee_ids integer[] No Replaces the whole assignee list. Send [] to unassign everyone.
started_at string | null No Date string, or null.
end_at string | null No Date string, or null.

Request

curl -X PATCH "https://app.taskforce.place/api/v1/external/tasks/1287" \
  -H "Authorization: Bearer $TASKFORCE_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"status_id":5}'

Response

{
  "success": true,
  "message": "Task updated successfully",
  "data": {
    "id": 1287,
    "projectId": 42,
    "project": {
      "id": 42,
      "name": "Website relaunch",
      "tenantId": 7
    },
    "title": "Write the API reference",
    "description": "Cover projects, tasks and webhooks.",
    "priority": 2,
    "effort": 14400,
    "spentTime": 0,
    "typeId": 1,
    "parentId": null,
    "statusId": 5,
    "status": {
      "id": 5,
      "name": "Resolved"
    },
    "assigneeIds": [
      15
    ],
    "assignees": [
      {
        "id": 15,
        "name": "Ana Costa",
        "email": "[email protected]",
        "avatar": null
      }
    ],
    "startedAt": "2026-09-25T00:00:00+00:00",
    "endAt": "2026-10-03T00:00:00+00:00",
    "createdAt": "2026-09-25T10:15:00+00:00",
    "updatedAt": "2026-09-25T10:15:00+00:00"
  },
  "meta": {}
}
  • title, project_id, status_id and type_id cannot be set to null.
  • A body with no recognised field returns 422 No fields to update.
PATCH /api/v1/external/tasks

Scope: tasks:write

Same as PATCH /tasks/{id}, with the task id in the body. Useful for tools that cannot build dynamic URLs.

Body

Name Type Required Description
id integer Yes Task id, 1 or more.
title string No Max 255 characters.
project_id integer No Move the task to another project of the same workspace.
description string | null No Send null to clear.
priority integer | null No 1 to 5.
effort integer | null No Seconds.
status_id integer No See task statuses.
type_id integer No 1 to 5.
parent_id integer | null No Send null to detach from the parent.
assignee_ids integer[] No Replaces the whole assignee list. Send [] to unassign everyone.
started_at string | null No Date string, or null.
end_at string | null No Date string, or null.

Request

curl -X PATCH "https://app.taskforce.place/api/v1/external/tasks" \
  -H "Authorization: Bearer $TASKFORCE_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"id":1287,"assignee_ids":[15,21]}'

Response

{
  "success": true,
  "message": "Task updated successfully",
  "data": {
    "id": 1287,
    "projectId": 42,
    "project": {
      "id": 42,
      "name": "Website relaunch",
      "tenantId": 7
    },
    "title": "Write the API reference",
    "description": "Cover projects, tasks and webhooks.",
    "priority": 2,
    "effort": 14400,
    "spentTime": 0,
    "typeId": 1,
    "parentId": null,
    "statusId": 3,
    "status": {
      "id": 3,
      "name": "New"
    },
    "assigneeIds": [
      15,
      21
    ],
    "assignees": [
      {
        "id": 15,
        "name": "Ana Costa",
        "email": "[email protected]",
        "avatar": null
      },
      {
        "id": 21,
        "name": "Rui Lopes",
        "email": "[email protected]",
        "avatar": null
      }
    ],
    "startedAt": "2026-09-25T00:00:00+00:00",
    "endAt": "2026-10-03T00:00:00+00:00",
    "createdAt": "2026-09-25T10:15:00+00:00",
    "updatedAt": "2026-09-25T10:15:00+00:00"
  },
  "meta": {}
}
  • A missing or invalid id returns 422 with errors.id.

Task object

Every task endpoint returns tasks in this shape.

FieldTypeDescription
idintegerTask id.
projectIdintegerOwning project.
projectobject | null{ id, name, tenantId }.
titlestringTask title.
descriptionstring | nullFree text or HTML from the app editor.
priorityinteger1 (Critical) to 5. See priorities.
effortinteger | nullEstimated effort in seconds.
spentTimeinteger | nullTracked time in seconds. Read-only.
typeIdintegerSee task types.
parentIdinteger | nullParent task id, for sub-tasks.
statusIdintegerSee task statuses.
statusobject | null{ id, name } with the stored status name.
assigneeIdsinteger[]Ids of assigned users.
assigneesobject[]{ id, name, email, avatar } per assignee.
startedAtstring | nullISO 8601, UTC.
endAtstring | nullDue date. ISO 8601, UTC.
createdAtstringISO 8601, UTC.
updatedAtstringISO 8601, UTC.

Types

type_idTypeNotes
1TaskDefault when type_id is omitted.
2Bug-
3User Story-
4Feature-
5Epic-

Priorities

Lower numbers are more urgent. The API accepts 1 to 5; the app only labels 1 to 4.

priorityLabelNotes
1Critical-
2HighDefault when priority is omitted.
3Medium-
4Low-
5(no label)Accepted by the API, but the app has no label for it. Avoid.

Statuses

Listed in the order of the task board.

status_idstatus.nameShown in the app asNotes
3NewNewDefault for new tasks.
4ActiveActiveIn progress.
9PendingReviewWaiting for review. The API returns the stored name Pending.
2DisablePausedThe API returns the stored name Disable.
10FailedFailed-
5ResolvedResolvedCounts as done.
6ClosedClosedCounts as done.

status_id is validated only against the status table, so any id from 1 to 13 is accepted for both tasks and projects. Stick to the ids listed here; the others (Enable, Paid, Deleted, Expired, Accepted, Declined) are used elsewhere in the product. status.name in responses is the stored name, which can differ from the label shown in the app.

A brighter way to work

Bring your team and AI agents together, starting today.