# Comments

Source: https://projectfeed.app/docs/api/comments

Read and write post comments, threaded replies, and media annotations. Resolve review feedback and track it in tasks.

-   [Plan Free to read, Pro or Enterprise for API key writes](https://projectfeed.app/docs/billing)
-   [Scopes comments:read, comments:write, tasks:write](https://projectfeed.app/docs/api/scopes)

Session tokens accept editing and deleting post comments with comments:write. Send Authorization: Bearer with X-Project-Feed-Workspace. Viewers cannot do either. Comment ownership and post access checks still apply. Edit and delete accept If-Match; edits also accept expectedUpdatedAt in the body. A changed source returns 412 precondition_failed. Preserve the original condition and reconcile an uncertain outcome before retrying. These writes have no Idempotency-Key deduplication.

Reading needs `comments:read`. Creating, editing, resolving, and deleting need `comments:write`, which Free workspace keys cannot have. The task endpoint also needs `tasks:write`. A request body over 512 KiB returns 413.

## Formatted text

Posts, comments, annotations, and Docs accept plain strings or Plate JSON block arrays in `content`. For Markdown, set `contentFormat` to `markdown`. Task descriptions use `description` and `descriptionFormat`. These options apply to both create and edit requests.

JSON

```
{
  "content": "## Review\n\n- **Ready**\n- [Details](https://example.com)",
  "contentFormat": "markdown"
}
```

Markdown supports headings, nested lists, checklists, links, tables, code blocks, and inline formatting. Footnotes become numbered superscript markers with the notes listed at the end. Structured JSON uses the editor's blocks. Each block has a `type` and `children`. Text leaves use `text` with optional marks such as `bold` or `italic`.

JSON

```
{
  "content": [
    {"type": "h2", "children": [{"text": "Review"}]},
    {"type": "p", "indent": 1, "listStyleType": "disc", "children": [{"text": "Ready", "bold": true}]}
  ]
}
```

Explicit formats are `plaintext`, `markdown`, and `platejs`. Omit the format to keep existing string behavior or infer structured JSON. Responses retain the stored formatting. Task comments return their Plate content as a JSON string.

Posts, task descriptions, and Docs can show a file inline. Write a Markdown image whose URL is `media:` followed by the file's media ID, such as `![Login screen](media:<mediaId>)`. The text in brackets becomes the caption. In Plate JSON, put the same URL on an `img`, `video`, `audio`, or `file` node. The file can be on the same post or task, on another post, task, or comment, on a canvas, or uploaded to a doc, as long as you can open it. A project-restricted key can only use files from its project. When the request also sends `uploads`, `upload:0` names its first upload. A media ID you cannot open returns 400. A doc read as Markdown writes its inline files back the same way, so they survive an edit.

JSON

```
{
  "content": "Fixed the overflow.\n\n![After the fix](upload:0)\n\n![Original report](media:<mediaId>)",
  "contentFormat": "markdown",
  "uploads": [
    {
      "uploadToken": "<uploadToken>",
      "parts": []
    }
  ]
}
```

The server derives `contentText` and `descriptionText` from the content. Character limits count visible text; request-size limits also apply. Names, titles, and other plain-text fields remain strings.

## Endpoints

### GET /api/v1/posts/:id/comments

Scope

comments:read

Path parameters

-   `id` string required
    
    Post ID (URL path)
    

Query parameters

-   `limit` number
    
    Comments per page, 1 to 100 (default 100)
    
-   `since` number|string
    
    Only comments created after this time, as Unix milliseconds or an ISO 8601 time with a timezone. The time is exclusive.
    
-   `cursor` string
    
    nextCursor from the previous page
    
-   `attachmentId` string
    
    Only annotations on this media item and their replies
    
-   `status` string
    
    open or resolved; returns annotations only
    
-   `annotated` boolean
    
    true for annotations only, false for everything that is not an annotation
    
-   `parentId` string
    
    Only replies to this comment
    
-   `reviewStatus` string
    
    Only annotations with this review status: comment, needs_changes, approved, question, or suggestion
    
-   `authorId` string
    
    Only comments by this user. Use me for your own.
    
-   `createdVia` string
    
    Only comments created from this source: web, api, slack_bot, discord_bot, ai_aggregation, inbound_webhook, or mobile
    
-   `order` string
    
    asc or desc
    
-   `include` string
    
    attachments adds each comment's files, with their processing state
    

Request

curl

```
curl --request GET \
  --url 'https://projectfeed.app/api/v1/posts/pst_abc123/comments' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{
  "comments": [
    {
      "id": "cmt_abc123",
      "postId": "pst_abc123",
      "content": "The logo clips on the last frame.",
      "contentText": "The logo clips on the last frame.",
      "contentFormat": "plaintext",
      "parentId": null,
      "createdAt": 1779680000000,
      "updatedAt": 1779680000000,
      "createdVia": "api",
      "author": {
        "id": "usr_abc123",
        "name": "Jane Smith",
        "email": "jane@example.com",
        "image": "/api/media/avatars/jane.jpg"
      },
      "replyCount": 1,
      "replyCountCapped": false,
      "reactionCount": 0,
      "task": null,
      "annotation": {
        "attachmentId": "att_abc123",
        "x": 42.5,
        "y": 18,
        "timeMs": 12500,
        "endTimeMs": 15000,
        "frame": null,
        "endFrame": null,
        "page": null,
        "lines": null,
        "camera": null,
        "drawing": null,
        "frameMediaId": null,
        "reviewStatus": "needs_changes",
        "resolved": false,
        "resolvedAt": null,
        "resolvedBy": null
      }
    }
  ],
  "hasMore": false,
  "nextCursor": null
}
```

### GET /api/v1/posts/:id/comments/wait

Scope

comments:read

Path parameters

-   `id` string required
    
    Post ID (URL path)
    

Query parameters

-   `since` number|string
    
    Return comments created after this time, as Unix milliseconds or an ISO 8601 time with a timezone. Default is the time of the request.
    
-   `timeoutSeconds` number
    
    How long to hold the request, 0 to 50 (default 25)
    
-   `attachmentId` string
    
    Only annotations on this media item and their replies
    
-   `annotated` boolean
    
    true for annotations only
    

Request

curl

```
curl --request GET \
  --url 'https://projectfeed.app/api/v1/posts/pst_abc123/comments/wait' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{
  "comments": [
    {
      "id": "cmt_abc123",
      "postId": "pst_abc123",
      "content": "The logo clips on the last frame.",
      "contentText": "The logo clips on the last frame.",
      "contentFormat": "plaintext",
      "parentId": null,
      "createdAt": 1779680000000,
      "updatedAt": 1779680000000,
      "createdVia": "api",
      "author": {
        "id": "usr_abc123",
        "name": "Jane Smith",
        "email": "jane@example.com",
        "image": "/api/media/avatars/jane.jpg"
      },
      "replyCount": 1,
      "replyCountCapped": false,
      "reactionCount": 0,
      "task": null,
      "annotation": {
        "attachmentId": "att_abc123",
        "x": 42.5,
        "y": 18,
        "timeMs": 12500,
        "endTimeMs": 15000,
        "frame": null,
        "endFrame": null,
        "page": null,
        "lines": null,
        "camera": null,
        "drawing": null,
        "frameMediaId": null,
        "reviewStatus": "needs_changes",
        "resolved": false,
        "resolvedAt": null,
        "resolvedBy": null
      }
    }
  ],
  "since": "1779680000000"
}
```

### POST /api/v1/posts/:id/comments/resolve-all

Scope

comments:write

Path parameters

-   `id` string required
    
    Post ID (URL path)
    

Body parameters

-   `attachmentId` string required
    
    ID of the media item whose annotations to resolve
    

Request

curl

```
curl --request POST \
  --url 'https://projectfeed.app/api/v1/posts/pst_abc123/comments/resolve-all' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "attachmentId": "attachmentId_abc123"
}'
```

Response

JSON

```
{
  "resolved": 12,
  "continuing": false
}
```

### GET /api/v1/comments

Scope

comments:read

Query parameters

-   `projectId` string
    
    Only comments on posts in this project (ID or slug)
    
-   `limit` number
    
    Comments per page, 1 to 100 (default 100)
    
-   `cursor` string
    
    nextCursor from the previous page
    
-   `since` number|string
    
    Only comments created after this time, as Unix milliseconds or an ISO 8601 time with a timezone. The time is exclusive.
    
-   `status` string
    
    open or resolved; returns annotations only
    
-   `annotated` boolean
    
    true for annotations only, false for everything that is not an annotation
    
-   `reviewStatus` string
    
    Only annotations with this review status: comment, needs_changes, approved, question, or suggestion
    
-   `authorId` string
    
    Only comments by this user. Use me for your own.
    
-   `createdVia` string
    
    Only comments created from this source: web, api, slack_bot, discord_bot, ai_aggregation, inbound_webhook, or mobile
    
-   `order` string
    
    asc or desc
    
-   `include` string
    
    attachments adds each comment's files, with their processing state
    

Request

curl

```
curl --request GET \
  --url 'https://projectfeed.app/api/v1/comments' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{
  "comments": [
    {
      "id": "cmt_abc123",
      "postId": "pst_abc123",
      "content": "The logo clips on the last frame.",
      "contentText": "The logo clips on the last frame.",
      "contentFormat": "plaintext",
      "parentId": null,
      "createdAt": 1779680000000,
      "updatedAt": 1779680000000,
      "createdVia": "api",
      "author": {
        "id": "usr_abc123",
        "name": "Jane Smith",
        "email": "jane@example.com",
        "image": "/api/media/avatars/jane.jpg"
      },
      "replyCount": 1,
      "replyCountCapped": false,
      "reactionCount": 0,
      "task": null,
      "annotation": {
        "attachmentId": "att_abc123",
        "x": 42.5,
        "y": 18,
        "timeMs": 12500,
        "endTimeMs": 15000,
        "frame": null,
        "endFrame": null,
        "page": null,
        "lines": null,
        "camera": null,
        "drawing": null,
        "frameMediaId": null,
        "reviewStatus": "needs_changes",
        "resolved": false,
        "resolvedAt": null,
        "resolvedBy": null
      }
    }
  ],
  "hasMore": false,
  "nextCursor": null
}
```

### GET /api/v1/posts/:id/comments/:commentId

Scope

comments:read

Path parameters

-   `id` string required
    
    Post ID (URL path)
    
-   `commentId` string required
    
    Comment ID (URL path)
    

Request

curl

```
curl --request GET \
  --url 'https://projectfeed.app/api/v1/posts/pst_abc123/comments/cmt_abc123' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{
  "id": "cmt_abc123",
  "postId": "pst_abc123",
  "content": "The logo clips on the last frame.",
  "contentText": "The logo clips on the last frame.",
  "contentFormat": "plaintext",
  "parentId": null,
  "createdAt": 1779680000000,
  "updatedAt": 1779680000000,
  "createdVia": "api",
  "author": {
    "id": "usr_abc123",
    "name": "Jane Smith",
    "email": "jane@example.com",
    "image": "/api/media/avatars/jane.jpg"
  },
  "replyCount": 1,
  "replyCountCapped": false,
  "reactionCount": 0,
  "task": null,
  "annotation": {
    "attachmentId": "att_abc123",
    "x": 42.5,
    "y": 18,
    "timeMs": 12500,
    "endTimeMs": 15000,
    "frame": null,
    "endFrame": null,
    "page": null,
    "lines": null,
    "camera": null,
    "drawing": null,
    "frameMediaId": null,
    "reviewStatus": "needs_changes",
    "resolved": false,
    "resolvedAt": null,
    "resolvedBy": null
  }
}
```

### POST /api/v1/posts/:id/comments

Scope

comments:write

Path parameters

-   `id` string required
    
    Post ID (URL path)
    

Body parameters

-   `content` string|array required
    
    Plain text, Markdown, or Plate JSON blocks. Up to 5,000 visible characters and 128 KiB. May be empty for an annotation.
    
-   `contentFormat` string
    
    plaintext, markdown, or platejs; omitted infers the input format
    
-   `parentId` string
    
    Parent comment ID for threaded replies
    
-   `annotation` object
    
    attachmentId plus anchor fields; see Annotations below. Up to 256 KB of JSON. Not allowed with parentId.
    
-   `idempotencyKey` string
    
    Up to 128 characters. Retrying with the same key and body returns the original comment. Reusing the key with a different body returns 409 with the code idempotency_key_reused.
    
-   `model` string
    
    Model doing the writing, such as claude-opus-5-5. 100 characters or less. Shown on what it writes.
    
-   `effort` string
    
    Reasoning effort the model is running at, such as high. 32 characters or less. Shown with the model.
    

Request

curl

```
curl --request POST \
  --url 'https://projectfeed.app/api/v1/posts/pst_abc123/comments' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "content": "Ready for review."
}'
```

Response

JSON

```
{
  "id": "cmt_abc123",
  "postId": "pst_abc123",
  "content": "The logo clips on the last frame.",
  "contentText": "The logo clips on the last frame.",
  "contentFormat": "plaintext",
  "parentId": null,
  "createdAt": 1779680000000,
  "updatedAt": 1779680000000,
  "createdVia": "api",
  "author": {
    "id": "usr_abc123",
    "name": "Jane Smith",
    "email": "jane@example.com",
    "image": "/api/media/avatars/jane.jpg"
  },
  "replyCount": 1,
  "replyCountCapped": false,
  "reactionCount": 0,
  "task": null,
  "annotation": {
    "attachmentId": "att_abc123",
    "x": 42.5,
    "y": 18,
    "timeMs": 12500,
    "endTimeMs": 15000,
    "frame": null,
    "endFrame": null,
    "page": null,
    "lines": null,
    "camera": null,
    "drawing": null,
    "frameMediaId": null,
    "reviewStatus": "needs_changes",
    "resolved": false,
    "resolvedAt": null,
    "resolvedBy": null
  }
}
```

### PATCH /api/v1/posts/:id/comments/:commentId

Scope

comments:write

Path parameters

-   `id` string required
    
    Post ID (URL path)
    
-   `commentId` string required
    
    Comment ID (URL path)
    

Headers

-   `If-Match` string
    
    Source ETag or W/"<updatedAt>". A changed source returns 412 precondition_failed.
    

Body parameters

-   `expectedUpdatedAt` number
    
    Source updatedAt in Unix milliseconds. A changed source returns 412 precondition_failed. Must match If-Match when both are sent.
    
-   `content` string|array
    
    Plain text, Markdown, or Plate JSON blocks. Up to 5,000 visible characters and 128 KiB. Comment author only.
    
-   `contentFormat` string
    
    plaintext, markdown, or platejs; omitted infers the input format
    
-   `annotation` object
    
    Anchor fields to change: x, y, timeMs, endTimeMs, frame, endFrame, page, camera, drawing. Comment author only, and only on annotations. A changed time range is checked against the stored start, and an end that is not after the start returns 400.
    
-   `reviewStatus` string
    
    comment, needs_changes, approved, question, or suggestion. The annotation author, the post author, or an owner or admin.
    

Request

curl

```
curl --request PATCH \
  --url 'https://projectfeed.app/api/v1/posts/pst_abc123/comments/cmt_abc123' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "content": "Updated comment"
}'
```

Response

JSON

```
{
  "id": "cmt_abc123",
  "postId": "pst_abc123",
  "content": "The logo clips on the last frame.",
  "contentText": "The logo clips on the last frame.",
  "contentFormat": "plaintext",
  "parentId": null,
  "createdAt": 1779680000000,
  "updatedAt": 1779680000000,
  "createdVia": "api",
  "author": {
    "id": "usr_abc123",
    "name": "Jane Smith",
    "email": "jane@example.com",
    "image": "/api/media/avatars/jane.jpg"
  },
  "replyCount": 1,
  "replyCountCapped": false,
  "reactionCount": 0,
  "task": null,
  "annotation": {
    "attachmentId": "att_abc123",
    "x": 42.5,
    "y": 18,
    "timeMs": 12500,
    "endTimeMs": 15000,
    "frame": null,
    "endFrame": null,
    "page": null,
    "lines": null,
    "camera": null,
    "drawing": null,
    "frameMediaId": null,
    "reviewStatus": "needs_changes",
    "resolved": false,
    "resolvedAt": null,
    "resolvedBy": null
  }
}
```

### DELETE /api/v1/posts/:id/comments/:commentId

Scope

comments:write

Path parameters

-   `id` string required
    
    Post ID (URL path)
    
-   `commentId` string required
    
    Comment ID (URL path)
    

Headers

-   `If-Match` string
    
    Source ETag or W/"<updatedAt>". A changed source returns 412 precondition_failed.
    

Request

curl

```
curl --request DELETE \
  --url 'https://projectfeed.app/api/v1/posts/pst_abc123/comments/cmt_abc123' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{ "deleted": true }
```

### POST /api/v1/posts/:id/comments/:commentId/resolve

Scope

comments:write

Path parameters

-   `id` string required
    
    Post ID (URL path)
    
-   `commentId` string required
    
    Comment ID (URL path)
    

Request

curl

```
curl --request POST \
  --url 'https://projectfeed.app/api/v1/posts/pst_abc123/comments/cmt_abc123/resolve' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{
  "id": "cmt_abc123",
  "postId": "pst_abc123",
  "content": "The logo clips on the last frame.",
  "contentText": "The logo clips on the last frame.",
  "contentFormat": "plaintext",
  "parentId": null,
  "createdAt": 1779680000000,
  "updatedAt": 1779680000000,
  "createdVia": "api",
  "author": {
    "id": "usr_abc123",
    "name": "Jane Smith",
    "email": "jane@example.com",
    "image": "/api/media/avatars/jane.jpg"
  },
  "replyCount": 1,
  "replyCountCapped": false,
  "reactionCount": 0,
  "task": null,
  "annotation": {
    "attachmentId": "att_abc123",
    "x": 42.5,
    "y": 18,
    "timeMs": 12500,
    "endTimeMs": 15000,
    "frame": null,
    "endFrame": null,
    "page": null,
    "lines": null,
    "camera": null,
    "drawing": null,
    "frameMediaId": null,
    "reviewStatus": "needs_changes",
    "resolved": true,
    "resolvedAt": 1779690000000,
    "resolvedBy": { "id": "usr_abc123", "name": "Jane Smith" }
  }
}
```

### POST /api/v1/posts/:id/comments/:commentId/reopen

Scope

comments:write

Path parameters

-   `id` string required
    
    Post ID (URL path)
    
-   `commentId` string required
    
    Comment ID (URL path)
    

Request

curl

```
curl --request POST \
  --url 'https://projectfeed.app/api/v1/posts/pst_abc123/comments/cmt_abc123/reopen' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{
  "id": "cmt_abc123",
  "postId": "pst_abc123",
  "content": "The logo clips on the last frame.",
  "contentText": "The logo clips on the last frame.",
  "contentFormat": "plaintext",
  "parentId": null,
  "createdAt": 1779680000000,
  "updatedAt": 1779680000000,
  "createdVia": "api",
  "author": {
    "id": "usr_abc123",
    "name": "Jane Smith",
    "email": "jane@example.com",
    "image": "/api/media/avatars/jane.jpg"
  },
  "replyCount": 1,
  "replyCountCapped": false,
  "reactionCount": 0,
  "task": null,
  "annotation": {
    "attachmentId": "att_abc123",
    "x": 42.5,
    "y": 18,
    "timeMs": 12500,
    "endTimeMs": 15000,
    "frame": null,
    "endFrame": null,
    "page": null,
    "lines": null,
    "camera": null,
    "drawing": null,
    "frameMediaId": null,
    "reviewStatus": "needs_changes",
    "resolved": false,
    "resolvedAt": null,
    "resolvedBy": null
  }
}
```

### POST /api/v1/posts/:id/comments/:commentId/task

Scopes

tasks:write

comments:write

Path parameters

-   `id` string required
    
    Post ID (URL path)
    
-   `commentId` string required
    
    Comment ID (URL path)
    

Body parameters

-   `title` string
    
    Title for a new task (max 500 characters)
    
-   `taskId` string
    
    Link this existing task instead of creating one. Sending task fields as well returns 400.
    
-   `description` string|array
    
    New task description; defaults to the annotation's text and file name
    
-   `descriptionFormat` string
    
    plaintext, markdown, or platejs
    
-   `projectId` string
    
    Only needed when the post is not in a project; otherwise the post's project
    
-   `status` string
    
    Task status (default todo)
    
-   `priority` string
    
    none, low, medium, high, or urgent
    
-   `assigneeId` string
    
    Workspace member to assign
    
-   `startDate` number
    
    Start date as a Unix timestamp in milliseconds
    
-   `dueDate` number
    
    Due date as a Unix timestamp in milliseconds
    

Request

curl

```
curl --request POST \
  --url 'https://projectfeed.app/api/v1/posts/pst_abc123/comments/cmt_abc123/task' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "title": "Prepare launch checklist"
}'
```

Response

JSON

```
{
  "id": "tsk_abc123",
  "taskNumber": 42,
  "identifier": "PRO-42",
  "sequenceNumber": 42,
  "title": "Prepare launch checklist",
  "description": [
    { "type": "p", "children": [{ "text": "Confirm the release steps." }] }
  ],
  "descriptionText": "Confirm the release steps.",
  "status": "in_progress",
  "priority": "high",
  "sortOrder": 1024,
  "orderKey": "a0",
  "parentTaskId": null,
  "startDate": 1779600000000,
  "dueDate": 1780204800000,
  "estimatePoints": 5,
  "estimateMinutes": 240,
  "subtaskTotal": 0,
  "subtaskDone": 0,
  "checklistTotal": 0,
  "checklistDone": 0,
  "reactionCount": 0,
  "createdAt": 1779600000000,
  "updatedAt": 1779680000000,
  "webUrl": "https://projectfeed.app/acme/task/PRO-42",
  "tags": [],
  "tagsTruncated": false,
  "author": {
    "id": "usr_abc789",
    "name": "John Doe",
    "email": "john@example.com",
    "image": "/api/media/avatars/john.jpg"
  },
  "assignee": null,
  "assigneeIds": [],
  "assignees": [],
  "project": {
    "id": "prj_xyz789",
    "name": "Product Launch",
    "color": "#3B82F6"
  }
}
```

## Annotations

An annotation is a top-level comment pinned to one media item on the post: a spot on an image, a moment in a video, a page in a PDF, a point on a 3D model, or a frame in an animation. Every comment in a response has an `annotation` field. It is `null` for plain comments and for replies, which belong to their parent's annotation. Anchor fields that do not apply to the media are `null`.

-   `attachmentId`: The media item on the post, as listed by the Media API. Required when creating an annotation.
-   `x, y`: Position in percent (0 to 100) of the media's width and height, measured from the top-left corner.
-   `timeMs, endTimeMs`: Milliseconds from the start of time-based media such as video or audio. endTimeMs ends a range, needs timeMs, and must be after it.
-   `frame, endFrame`: 0-based frame number for animated media. endFrame ends a frame range, needs frame, and must not be before it.
-   `page`: 1-based page number for documents such as PDFs. Cannot be combined with frame.
-   `lines`: Line range in a text or code file: start, end, and selectedText. Lines start at 1.
-   `camera`: 3D viewer state. position and target are [x, y, z] in the model's world units. Optional fov (above 0 and below 180 degrees), framerate (1 to 240), worldPosition (the picked surface point), meshName, materialName, shadingMode, rootMotionInPlace, and modelAnchor. Pins placed in the app also return a read-only lighting object with the viewer lighting they were placed under.
-   `drawing`: Marks drawn over the media. Shape points are fractions (0 to 1) of the media's width and height.
-   `frameMediaId`: Read only. The comment file holding the paused frame a drawing was made on, if any. Fetch it with the Media API.
-   `reviewStatus`: comment, needs_changes, approved, question, or suggestion. Defaults to comment.
-   `resolved, resolvedAt, resolvedBy`: Read only. Whether the feedback is addressed, when, and by whom. Use the resolve and reopen endpoints to change it.

Set only the anchors that fit the media. A drawing sent without `x` and `y` is pinned at its first shape. Documents take a page instead of a frame, and only documents take a page. An annotation request can hold up to 256 KB of JSON.

Shell

```
# Pin feedback on part of an image
curl -X POST "https://projectfeed.app/api/v1/posts/pst_abc123/comments" \
  -H "Authorization: Bearer pf_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "content": "Crop tighter on the logo.",
    "annotation": {
      "attachmentId": "att_abc123",
      "x": 42.5,
      "y": 18,
      "reviewStatus": "needs_changes"
    }
  }'

# Comment on a range of a video, with an arrow drawn on the frame
curl -X POST "https://projectfeed.app/api/v1/posts/pst_abc123/comments" \
  -H "Authorization: Bearer pf_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "content": "The title card lingers here.",
    "annotation": {
      "attachmentId": "att_def456",
      "timeMs": 12500,
      "endTimeMs": 15000,
      "drawing": {
        "version": 1,
        "tool": "arrow",
        "color": "#22c55e",
        "strokeWidth": 4,
        "shapes": [{
          "id": "a1",
          "type": "arrow",
          "start": { "x": 0.25, "y": 0.5 },
          "end": { "x": 0.4, "y": 0.6 },
          "color": "#22c55e",
          "strokeWidth": 4
        }]
      }
    }
  }'

# Mark a spot on page 3 of a PDF
curl -X POST "https://projectfeed.app/api/v1/posts/pst_abc123/comments" \
  -H "Authorization: Bearer pf_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "content": "Update this figure.", "annotation": { "attachmentId": "att_ghi789", "page": 3, "x": 30, "y": 60 } }'
```

### Drawings

A drawing is `{ version: 1, tool, color, strokeWidth, shapes }`. The tool is pin, draw, arrow, line, or rect. A `pin` shape has a `point`, a `freehand` shape has `points`, and `arrow`, `line`, and `rect` shapes have `start` and `end`. Every shape needs an `id`. Colors are #ff4fd8, #f59e0b, #22c55e, #60a5fa, #ffffff, and #ef4444. Stroke widths are 2, 3, 4, 5, 6, and 8. A drawing holds up to 50 shapes, and a freehand shape up to 500 points.

## Pages and filters

The list returns up to 100 comments per page. When `hasMore` is true, pass `nextCursor` back as `cursor` with the same filters. Combine `attachmentId` with `status=open` to get the open feedback on one file, or pass `parentId` to read one thread. `replyCount` counts up to 20 replies on each top-level comment. When `replyCountCapped` is true the comment has more replies than that; read them with `parentId`. Both fields are `null` on replies. See [API conventions](https://projectfeed.app/docs/api/conventions) for cursors.

## Review status and resolving

The annotation author, the post author, and workspace owners and admins can resolve, reopen, and change the review status of an annotation. Replies are resolved with their annotation, and plain comments cannot be resolved. Resolving records `resolvedAt` and `resolvedBy` and adds an entry to the post's activity.

## Track feedback in a task

Send a `title` to the task endpoint to create a task in the post's project, or a `taskId` to link a task you already have. The comment's `task` field then holds the task's `id`, `identifier`, `taskNumber`, and `title`, and the task links back to the post. Only annotations can become tasks. If the annotation already has a task, the endpoint returns it instead of creating another.

## Replies and mentions

-   Send `parentId` to reply to a comment. It is `null` on top-level comments.
-   In plain text, `@username` mentions a workspace member and notifies them.

## Editing and deleting

-   Only the comment author can edit its content or move an annotation. Editing content keeps the annotation's position, timestamp, drawing, and attached files.
-   The comment author, the post author, and workspace owners and admins can delete a comment. Deleting removes the comment from lists, deletes its replies and reactions, and removes its attached files.
-   To attach a file to a comment, call `POST /api/v1/media` with a `commentId`. The [Files API](https://projectfeed.app/docs/api/files) covers the upload format, file types, and size limits.

## Access and limits

-   Viewers can read comments but not write them. Comments on a private project need access to that project, and comments on another member's draft are not available.
-   Each person can create 20 comments a minute across the app and the API. Past that the API returns 429. Other limits are on the [rate limits page](https://projectfeed.app/docs/api/rate-limits).
-   `idempotencyKey` is scoped to the key owner. Reusing a key with a different body returns 409 with the code `idempotency_key_reused`.

## Next steps

[Reactions API](https://projectfeed.app/docs/api/reactions) [Tasks API](https://projectfeed.app/docs/api/tasks)
