Subtasks
Checklist items inside a task.
- GET
/projects/{projectId}/tasks/{taskId}/subtasksList subtasks - POST
/projects/{projectId}/tasks/{taskId}/subtasksCreate a subtask - GET
/projects/{projectId}/tasks/{taskId}/subtasks/{subtaskId}Get a subtask - PATCH
/projects/{projectId}/tasks/{taskId}/subtasks/{subtaskId}Update a subtask - DELETE
/projects/{projectId}/tasks/{taskId}/subtasks/{subtaskId}Delete a subtask
List subtasks
GET/projects/{projectId}/tasks/{taskId}/subtasks
Scope readPermission tasks:read
Path parameters
-
projectIdstringrequired -
taskIdstringrequired
Query parameters
-
limitintegerPage size.
-
cursorstringOpaque cursor from the previous response's
nextCursor.
Response 200
Success.
-
subtasksarray of SubtaskShow 7 attributes
-
idstringrequired -
titlestring -
isCompletedboolean -
assigneeIdstring -
completedBystring -
completedAtstring (date-time) -
createdAtstring (date-time)
-
-
nextCursorstring | null -
totalinteger
Errors
- 400
invalid_request: malformed body, missing field, invalid cursor. - 401
unauthorized: missing, invalid or revoked token. - 403
forbiddenor a plan code (plan-api-read-only,plan-api-disabled,plan-webhooks): missing scope or permission, or the plan does not allow it. - 404
not_found. - 429
rate_limitedordaily_write_limit.
curl "https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/TASK_ID/subtasks?limit=50" \
-H "Authorization: Bearer pfat_YOUR_TOKEN"const res = await fetch('https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/TASK_ID/subtasks?limit=50', {
headers: {
Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
},
});
const data = await res.json();import os
import requests
res = requests.get(
"https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/TASK_ID/subtasks?limit=50",
headers={
"Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
},
)
data = res.json()var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/TASK_ID/subtasks?limit=50")!)
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
let (data, response) = try await URLSession.shared.data(for: request)
{
"success": true,
"subtasks": [
{
"id": "subtask_1",
"title": "Prepare kickoff",
"isCompleted": false,
"assigneeId": "assignee_1",
"completedBy": "completedBy",
"completedAt": "2026-11-02T09:00:00.000Z",
"createdAt": "2026-11-02T09:00:00.000Z"
}
],
"nextCursor": null,
"total": 1,
"requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}
Create a subtask
POST/projects/{projectId}/tasks/{taskId}/subtasks
Scope tasks:writePermission tasks:write
Requires title.
Path parameters
-
projectIdstringrequired -
taskIdstringrequired
Headers
-
X-ProjectFlow-PersonastringAgent persona the write is attributed to ("Mira · agent of <you>"): a persona name or
id:<personaId>of the token owner (auto-created when unknown unless switched off in "My team"). Only user-bound credentials (OAuth, personal token) and only on writes; a workspace API token gets400 persona-requires-user-token. Errorspersona-invalid-name400,persona-not-found404,persona-archived409,persona-limit429. When the workspace policypersonasis off or the persona is blocked, the write succeeds without persona and the response carriesX-ProjectFlow-Persona-Ignored: policy|blocked.
Request body application/json
-
titlestring -
isCompletedboolean -
assigneeIdstring -
completedBystring -
completedAtstring (date-time)
Response 201
Created.
-
subtaskSubtaskA subtask. The stored document may carry more fields than listed.
Show 7 attributes
-
idstringrequired -
titlestring -
isCompletedboolean -
assigneeIdstring -
completedBystring -
completedAtstring (date-time) -
createdAtstring (date-time)
-
Errors
- 400
invalid_request: malformed body, missing field, invalid cursor. - 401
unauthorized: missing, invalid or revoked token. - 403
forbiddenor a plan code (plan-api-read-only,plan-api-disabled,plan-webhooks): missing scope or permission, or the plan does not allow it. - 404
not_found. - 409
conflict, e.g. webhook limit reached. - 429
rate_limitedordaily_write_limit.
curl -X POST "https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/TASK_ID/subtasks" \
-H "Authorization: Bearer pfat_YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"title": "Prepare kickoff",
"isCompleted": false,
"assigneeId": "assignee_1",
"completedBy": "completedBy",
"completedAt": "2026-11-02T09:00:00.000Z"
}'const res = await fetch('https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/TASK_ID/subtasks', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
title: 'Prepare kickoff',
isCompleted: false,
assigneeId: 'assignee_1',
completedBy: 'completedBy',
completedAt: '2026-11-02T09:00:00.000Z'
}),
});
const data = await res.json();import os
import requests
res = requests.post(
"https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/TASK_ID/subtasks",
headers={
"Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
},
json={
"title": "Prepare kickoff",
"isCompleted": False,
"assigneeId": "assignee_1",
"completedBy": "completedBy",
"completedAt": "2026-11-02T09:00:00.000Z"
},
)
data = res.json()var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/TASK_ID/subtasks")!)
request.httpMethod = "POST"
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
let body: [String: Any] = [
"title": "Prepare kickoff",
"isCompleted": false,
"assigneeId": "assignee_1",
"completedBy": "completedBy",
"completedAt": "2026-11-02T09:00:00.000Z",
]
request.httpBody = try JSONSerialization.data(withJSONObject: body)
let (data, response) = try await URLSession.shared.data(for: request)
{
"success": true,
"subtask": {
"id": "subtask_1",
"title": "Prepare kickoff",
"isCompleted": false,
"assigneeId": "assignee_1",
"completedBy": "completedBy",
"completedAt": "2026-11-02T09:00:00.000Z",
"createdAt": "2026-11-02T09:00:00.000Z"
},
"requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}
Get a subtask
GET/projects/{projectId}/tasks/{taskId}/subtasks/{subtaskId}
Scope readPermission tasks:read
Path parameters
-
projectIdstringrequired -
taskIdstringrequired -
subtaskIdstringrequired
Response 200
Success.
-
subtaskSubtaskA subtask. The stored document may carry more fields than listed.
Show 7 attributes
-
idstringrequired -
titlestring -
isCompletedboolean -
assigneeIdstring -
completedBystring -
completedAtstring (date-time) -
createdAtstring (date-time)
-
Errors
- 400
invalid_request: malformed body, missing field, invalid cursor. - 401
unauthorized: missing, invalid or revoked token. - 403
forbiddenor a plan code (plan-api-read-only,plan-api-disabled,plan-webhooks): missing scope or permission, or the plan does not allow it. - 404
not_found. - 429
rate_limitedordaily_write_limit.
curl "https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/TASK_ID/subtasks/SUBTASK_ID" \
-H "Authorization: Bearer pfat_YOUR_TOKEN"const res = await fetch('https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/TASK_ID/subtasks/SUBTASK_ID', {
headers: {
Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
},
});
const data = await res.json();import os
import requests
res = requests.get(
"https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/TASK_ID/subtasks/SUBTASK_ID",
headers={
"Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
},
)
data = res.json()var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/TASK_ID/subtasks/SUBTASK_ID")!)
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
let (data, response) = try await URLSession.shared.data(for: request)
{
"success": true,
"subtask": {
"id": "subtask_1",
"title": "Prepare kickoff",
"isCompleted": false,
"assigneeId": "assignee_1",
"completedBy": "completedBy",
"completedAt": "2026-11-02T09:00:00.000Z",
"createdAt": "2026-11-02T09:00:00.000Z"
},
"requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}
Update a subtask
PATCH/projects/{projectId}/tasks/{taskId}/subtasks/{subtaskId}
Scope tasks:writePermission tasks:write
Path parameters
-
projectIdstringrequired -
taskIdstringrequired -
subtaskIdstringrequired
Request body application/json
-
titlestring -
isCompletedboolean -
assigneeIdstring -
completedBystring -
completedAtstring (date-time)
Response 200
Success.
-
subtaskSubtaskA subtask. The stored document may carry more fields than listed.
Show 7 attributes
-
idstringrequired -
titlestring -
isCompletedboolean -
assigneeIdstring -
completedBystring -
completedAtstring (date-time) -
createdAtstring (date-time)
-
Errors
- 400
invalid_request: malformed body, missing field, invalid cursor. - 401
unauthorized: missing, invalid or revoked token. - 403
forbiddenor a plan code (plan-api-read-only,plan-api-disabled,plan-webhooks): missing scope or permission, or the plan does not allow it. - 404
not_found. - 409
conflict, e.g. webhook limit reached. - 429
rate_limitedordaily_write_limit.
curl -X PATCH "https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/TASK_ID/subtasks/SUBTASK_ID" \
-H "Authorization: Bearer pfat_YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"title": "Prepare kickoff",
"isCompleted": false,
"assigneeId": "assignee_1",
"completedBy": "completedBy",
"completedAt": "2026-11-02T09:00:00.000Z"
}'const res = await fetch('https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/TASK_ID/subtasks/SUBTASK_ID', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
title: 'Prepare kickoff',
isCompleted: false,
assigneeId: 'assignee_1',
completedBy: 'completedBy',
completedAt: '2026-11-02T09:00:00.000Z'
}),
});
const data = await res.json();import os
import requests
res = requests.patch(
"https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/TASK_ID/subtasks/SUBTASK_ID",
headers={
"Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
},
json={
"title": "Prepare kickoff",
"isCompleted": False,
"assigneeId": "assignee_1",
"completedBy": "completedBy",
"completedAt": "2026-11-02T09:00:00.000Z"
},
)
data = res.json()var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/TASK_ID/subtasks/SUBTASK_ID")!)
request.httpMethod = "PATCH"
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
let body: [String: Any] = [
"title": "Prepare kickoff",
"isCompleted": false,
"assigneeId": "assignee_1",
"completedBy": "completedBy",
"completedAt": "2026-11-02T09:00:00.000Z",
]
request.httpBody = try JSONSerialization.data(withJSONObject: body)
let (data, response) = try await URLSession.shared.data(for: request)
{
"success": true,
"subtask": {
"id": "subtask_1",
"title": "Prepare kickoff",
"isCompleted": false,
"assigneeId": "assignee_1",
"completedBy": "completedBy",
"completedAt": "2026-11-02T09:00:00.000Z",
"createdAt": "2026-11-02T09:00:00.000Z"
},
"requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}
Delete a subtask
DELETE/projects/{projectId}/tasks/{taskId}/subtasks/{subtaskId}
Scope tasks:writePermission tasks:delete
Path parameters
-
projectIdstringrequired -
taskIdstringrequired -
subtaskIdstringrequired
Response 200
Success.
-
deletedSubtaskIdstring
Errors
- 400
invalid_request: malformed body, missing field, invalid cursor. - 401
unauthorized: missing, invalid or revoked token. - 403
forbiddenor a plan code (plan-api-read-only,plan-api-disabled,plan-webhooks): missing scope or permission, or the plan does not allow it. - 404
not_found. - 409
conflict, e.g. webhook limit reached. - 429
rate_limitedordaily_write_limit.
curl -X DELETE "https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/TASK_ID/subtasks/SUBTASK_ID" \
-H "Authorization: Bearer pfat_YOUR_TOKEN"const res = await fetch('https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/TASK_ID/subtasks/SUBTASK_ID', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
},
});
const data = await res.json();import os
import requests
res = requests.delete(
"https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/TASK_ID/subtasks/SUBTASK_ID",
headers={
"Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
},
)
data = res.json()var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/TASK_ID/subtasks/SUBTASK_ID")!)
request.httpMethod = "DELETE"
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
let (data, response) = try await URLSession.shared.data(for: request)
{
"success": true,
"deletedSubtaskId": "deletedsubtask_1",
"requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}