Comments
Comments on objects of a project.
List comments
GET/projects/{projectId}/comments
Scope readPermission projects:read
Path parameters
-
projectIdstringrequired
Query parameters
-
targetIdstringOnly comments on this object.
-
targetTypestringOnly comments on this object type (e.g.
task). -
limitintegerPage size.
-
cursorstringOpaque cursor from the previous response's
nextCursor.
Response 200
Success.
-
commentsarray of CommentShow 7 attributes
-
idstringrequired -
contentstring -
targetIdstring -
targetTypestring -
userIdstring -
userDisplayNamestring -
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/comments?limit=50" \
-H "Authorization: Bearer pfat_YOUR_TOKEN"const res = await fetch('https://api.getprojectflow.com/v1/projects/PROJECT_ID/comments?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/comments?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/comments?limit=50")!)
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
let (data, response) = try await URLSession.shared.data(for: request)
{
"success": true,
"comments": [
{
"id": "comment_1",
"content": "Looks good to me.",
"targetId": "target_1",
"targetType": "targetType",
"userId": "user_1",
"userDisplayName": "userDisplayName",
"createdAt": "2026-11-02T09:00:00.000Z"
}
],
"nextCursor": null,
"total": 1,
"requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}
Create comment
POST/projects/{projectId}/comments
Scope projects:writePermission projects:write
Requires content, targetId, targetType.
Path parameters
-
projectIdstringrequired
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
-
contentstringrequired -
targetIdstringrequired -
targetTypestringrequirede.g.
task.
Response 201
Created.
-
commentCommentA comment on a task, milestone or other object. The stored document may carry more fields than listed.
Show 7 attributes
-
idstringrequired -
contentstring -
targetIdstring -
targetTypestring -
userIdstring -
userDisplayNamestring -
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/comments" \
-H "Authorization: Bearer pfat_YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"content": "Looks good to me.",
"targetId": "target_1",
"targetType": "targetType"
}'const res = await fetch('https://api.getprojectflow.com/v1/projects/PROJECT_ID/comments', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
content: 'Looks good to me.',
targetId: 'target_1',
targetType: 'targetType'
}),
});
const data = await res.json();import os
import requests
res = requests.post(
"https://api.getprojectflow.com/v1/projects/PROJECT_ID/comments",
headers={
"Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
},
json={
"content": "Looks good to me.",
"targetId": "target_1",
"targetType": "targetType"
},
)
data = res.json()var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/projects/PROJECT_ID/comments")!)
request.httpMethod = "POST"
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
let body: [String: Any] = [
"content": "Looks good to me.",
"targetId": "target_1",
"targetType": "targetType",
]
request.httpBody = try JSONSerialization.data(withJSONObject: body)
let (data, response) = try await URLSession.shared.data(for: request)
{
"success": true,
"comment": {
"id": "comment_1",
"content": "Looks good to me.",
"targetId": "target_1",
"targetType": "targetType",
"userId": "user_1",
"userDisplayName": "userDisplayName",
"createdAt": "2026-11-02T09:00:00.000Z"
},
"requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}
Get comment
GET/projects/{projectId}/comments/{commentId}
Scope readPermission projects:read
Path parameters
-
projectIdstringrequired -
commentIdstringrequired
Response 200
Success.
-
commentCommentA comment on a task, milestone or other object. The stored document may carry more fields than listed.
Show 7 attributes
-
idstringrequired -
contentstring -
targetIdstring -
targetTypestring -
userIdstring -
userDisplayNamestring -
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/comments/COMMENT_ID" \
-H "Authorization: Bearer pfat_YOUR_TOKEN"const res = await fetch('https://api.getprojectflow.com/v1/projects/PROJECT_ID/comments/COMMENT_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/comments/COMMENT_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/comments/COMMENT_ID")!)
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
let (data, response) = try await URLSession.shared.data(for: request)
{
"success": true,
"comment": {
"id": "comment_1",
"content": "Looks good to me.",
"targetId": "target_1",
"targetType": "targetType",
"userId": "user_1",
"userDisplayName": "userDisplayName",
"createdAt": "2026-11-02T09:00:00.000Z"
},
"requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}
Update comment
PATCH/projects/{projectId}/comments/{commentId}
Scope projects:writePermission projects:write
Path parameters
-
projectIdstringrequired -
commentIdstringrequired
Request body application/json
-
contentstringrequired -
targetIdstringrequired -
targetTypestringrequirede.g.
task.
Response 200
Success.
-
commentCommentA comment on a task, milestone or other object. The stored document may carry more fields than listed.
Show 7 attributes
-
idstringrequired -
contentstring -
targetIdstring -
targetTypestring -
userIdstring -
userDisplayNamestring -
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/comments/COMMENT_ID" \
-H "Authorization: Bearer pfat_YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"content": "Looks good to me.",
"targetId": "target_1",
"targetType": "targetType"
}'const res = await fetch('https://api.getprojectflow.com/v1/projects/PROJECT_ID/comments/COMMENT_ID', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
content: 'Looks good to me.',
targetId: 'target_1',
targetType: 'targetType'
}),
});
const data = await res.json();import os
import requests
res = requests.patch(
"https://api.getprojectflow.com/v1/projects/PROJECT_ID/comments/COMMENT_ID",
headers={
"Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
},
json={
"content": "Looks good to me.",
"targetId": "target_1",
"targetType": "targetType"
},
)
data = res.json()var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/projects/PROJECT_ID/comments/COMMENT_ID")!)
request.httpMethod = "PATCH"
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
let body: [String: Any] = [
"content": "Looks good to me.",
"targetId": "target_1",
"targetType": "targetType",
]
request.httpBody = try JSONSerialization.data(withJSONObject: body)
let (data, response) = try await URLSession.shared.data(for: request)
{
"success": true,
"comment": {
"id": "comment_1",
"content": "Looks good to me.",
"targetId": "target_1",
"targetType": "targetType",
"userId": "user_1",
"userDisplayName": "userDisplayName",
"createdAt": "2026-11-02T09:00:00.000Z"
},
"requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}
Delete comment
DELETE/projects/{projectId}/comments/{commentId}
Scope projects:writePermission projects:delete
Path parameters
-
projectIdstringrequired -
commentIdstringrequired
Response 200
Success.
-
deletedCommentIdstring
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/comments/COMMENT_ID" \
-H "Authorization: Bearer pfat_YOUR_TOKEN"const res = await fetch('https://api.getprojectflow.com/v1/projects/PROJECT_ID/comments/COMMENT_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/comments/COMMENT_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/comments/COMMENT_ID")!)
request.httpMethod = "DELETE"
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
let (data, response) = try await URLSession.shared.data(for: request)
{
"success": true,
"deletedCommentId": "deletedcomment_1",
"requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}