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.
/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": {}
} /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": {}
} /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_idthat does not exist at all fails validation (422); one that exists in another workspace returns 403.
/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_idandtype_idcannot be set to null.- A body with no recognised field returns 422
No fields to update.
/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
idreturns 422 witherrors.id.
Task object
Every task endpoint returns tasks in this shape.
| Field | Type | Description |
|---|---|---|
id | integer | Task id. |
projectId | integer | Owning project. |
project | object | null | { id, name, tenantId }. |
title | string | Task title. |
description | string | null | Free text or HTML from the app editor. |
priority | integer | 1 (Critical) to 5. See priorities. |
effort | integer | null | Estimated effort in seconds. |
spentTime | integer | null | Tracked time in seconds. Read-only. |
typeId | integer | See task types. |
parentId | integer | null | Parent task id, for sub-tasks. |
statusId | integer | See task statuses. |
status | object | null | { id, name } with the stored status name. |
assigneeIds | integer[] | Ids of assigned users. |
assignees | object[] | { id, name, email, avatar } per assignee. |
startedAt | string | null | ISO 8601, UTC. |
endAt | string | null | Due date. ISO 8601, UTC. |
createdAt | string | ISO 8601, UTC. |
updatedAt | string | ISO 8601, UTC. |
Types
| type_id | Type | Notes |
|---|---|---|
| 1 | Task | Default when type_id is omitted. |
| 2 | Bug | - |
| 3 | User Story | - |
| 4 | Feature | - |
| 5 | Epic | - |
Priorities
Lower numbers are more urgent. The API accepts 1 to 5; the app only labels 1 to 4.
| priority | Label | Notes |
|---|---|---|
| 1 | Critical | - |
| 2 | High | Default when priority is omitted. |
| 3 | Medium | - |
| 4 | Low | - |
| 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_id | status.name | Shown in the app as | Notes |
|---|---|---|---|
| 3 | New | New | Default for new tasks. |
| 4 | Active | Active | In progress. |
| 9 | Pending | Review | Waiting for review. The API returns the stored name Pending. |
| 2 | Disable | Paused | The API returns the stored name Disable. |
| 10 | Failed | Failed | - |
| 5 | Resolved | Resolved | Counts as done. |
| 6 | Closed | Closed | Counts 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.