ProjectFlow Pre-launch

Comments

Comments on objects of a project.

List comments

GET/projects/{projectId}/comments

Scope readPermission projects:read

Path parameters

  • projectIdstringrequired

Query parameters

  • targetIdstring

    Only comments on this object.

  • targetTypestring

    Only comments on this object type (e.g. task).

  • limitinteger1 to 200 · Default: 100

    Page size.

  • cursorstring

    Opaque cursor from the previous response's nextCursor.

Response 200

Success.

  • commentsarray of Comment
    Show 7 attributes
    • idstringrequired
    • contentstring
    • targetIdstring
    • targetTypestring
    • userIdstring
    • userDisplayNamestring
    • createdAtstring (date-time)
  • nextCursorstring | null
  • totalinteger

Errors

  • 400invalid_request: malformed body, missing field, invalid cursor.
  • 401unauthorized: missing, invalid or revoked token.
  • 403forbidden or a plan code (plan-api-read-only, plan-api-disabled, plan-webhooks): missing scope or permission, or the plan does not allow it.
  • 404not_found.
  • 429rate_limited or daily_write_limit.

All error codes

Request
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)
Response · 200JSON
{
  "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-Personastringmax 80 characters

    Agent 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 gets 400 persona-requires-user-token. Errors persona-invalid-name 400, persona-not-found 404, persona-archived 409, persona-limit 429. When the workspace policy personas is off or the persona is blocked, the write succeeds without persona and the response carries X-ProjectFlow-Persona-Ignored: policy|blocked.

Request body application/json

  • contentstringrequired
  • targetIdstringrequired
  • targetTypestringrequired

    e.g. task.

Response 201

Created.

  • commentComment

    A 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

  • 400invalid_request: malformed body, missing field, invalid cursor.
  • 401unauthorized: missing, invalid or revoked token.
  • 403forbidden or a plan code (plan-api-read-only, plan-api-disabled, plan-webhooks): missing scope or permission, or the plan does not allow it.
  • 404not_found.
  • 409conflict, e.g. webhook limit reached.
  • 429rate_limited or daily_write_limit.

All error codes

Request
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)
Response · 201JSON
{
  "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.

  • commentComment

    A 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

  • 400invalid_request: malformed body, missing field, invalid cursor.
  • 401unauthorized: missing, invalid or revoked token.
  • 403forbidden or a plan code (plan-api-read-only, plan-api-disabled, plan-webhooks): missing scope or permission, or the plan does not allow it.
  • 404not_found.
  • 429rate_limited or daily_write_limit.

All error codes

Request
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)
Response · 200JSON
{
  "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
  • targetTypestringrequired

    e.g. task.

Response 200

Success.

  • commentComment

    A 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

  • 400invalid_request: malformed body, missing field, invalid cursor.
  • 401unauthorized: missing, invalid or revoked token.
  • 403forbidden or a plan code (plan-api-read-only, plan-api-disabled, plan-webhooks): missing scope or permission, or the plan does not allow it.
  • 404not_found.
  • 409conflict, e.g. webhook limit reached.
  • 429rate_limited or daily_write_limit.

All error codes

Request
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)
Response · 200JSON
{
  "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

  • 400invalid_request: malformed body, missing field, invalid cursor.
  • 401unauthorized: missing, invalid or revoked token.
  • 403forbidden or a plan code (plan-api-read-only, plan-api-disabled, plan-webhooks): missing scope or permission, or the plan does not allow it.
  • 404not_found.
  • 409conflict, e.g. webhook limit reached.
  • 429rate_limited or daily_write_limit.

All error codes

Request
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)
Response · 200JSON
{
  "success": true,
  "deletedCommentId": "deletedcomment_1",
  "requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}

↑↓ to select, Enter to open, Esc to close