Comments and annotations
Comments are threaded notes on an entry. A comment can be about the entry as a whole or about one exact version. Annotations are shapes drawn over one exact preview or thumbnail file. GET calls work with a read key. Every other call needs a write key. A read-only key gets 403 FORBIDDEN.
| Method and path | Purpose |
|---|---|
GET /entries/{entry_id}/comments |
List comments |
POST /entries/{entry_id}/comments |
Post a comment or reply |
PATCH /comments/{comment_id} |
Edit a comment |
DELETE /comments/{comment_id} |
Delete a comment |
POST /comments/{comment_id}/resolve |
Resolve a thread |
POST /comments/{comment_id}/unresolve |
Reopen a thread |
PUT /comments/{comment_id}/reactions |
Add a reaction |
DELETE /comments/{comment_id}/reactions/{emoji} |
Remove your reaction |
POST /attachments |
Upload a PNG to attach |
PUT /attachments/{attachment_id}/strokes |
Upload the attachment’s editable markup |
GET /attachments/{attachment_id} |
Read an attachment’s PNG |
GET /attachments/{attachment_id}/strokes |
Read an attachment’s markup |
POST /entries/{entry_id}/annotations |
Draw an annotation |
GET /entries/{entry_id}/annotations |
List annotations |
PATCH /annotations/{annotation_id} |
Link a discussion to an annotation |
DELETE /annotations/{annotation_id} |
Delete an annotation |
In this page, “admin” means a workspace owner or admin.
Comment payload
Section titled “Comment payload”{ "id": 91, "entry_id": 412, "object_id": 1880, "parent_id": null, "body": "Pivot looks off on this version, @Lee Lead", "author": { "id": 7, "name": "<user>", "display_name": "Sam Rigger" }, "mentions": [{ "id": 12, "name": "<user>", "display_name": "Lee Lead" }], "attachments": [{ "id": 301, "width": 1920, "height": 1080, "size": 402113, "has_strokes": true }], "reactions": [{ "emoji": "👀", "count": 2, "me": true, "names": ["Sam Rigger", "Lee Lead"] }], "created_at": "2026-07-25T12:00:00Z", "updated_at": null, "updated_by": 7, "resolved_at": null, "resolved_by": null}| Field | Description |
|---|---|
object_id |
The version the comment is about, or null for the entry as a whole. |
parent_id |
The top-level comment this reply belongs to, or null. Threads are one level deep. |
mentions |
People the body mentions. See Mentions. |
attachments |
Attached PNGs. size is in bytes. has_strokes is true when the attachment has editable markup. |
reactions |
One chip per emoji, in a fixed order. count is how many people reacted. names lists their display names, or login names for people without one. me is true if you reacted. |
updated_at |
Set after the first edit, otherwise null. |
updated_by |
User id of whoever last wrote the comment. It is the author until someone edits it. |
resolved_at, resolved_by |
Set while the thread is resolved. resolved_by is a user stub like author. |
GET /entries/{entry_id}/comments
Section titled “GET /entries/{entry_id}/comments”Returns {"comments": [comment]} with every comment and reply on the entry, oldest first. There is no pagination. GET /entries/{entry_id} embeds the same comments, without the entry_id and updated_by fields. Unknown entry: 404 ENTRY_NOT_FOUND.
POST /entries/{entry_id}/comments
Section titled “POST /entries/{entry_id}/comments”{ "body": "Pivot looks off on this version, @Lee Lead", "object_id": 1880, "attachment_ids": [301] }| Field | Type | Description |
|---|---|---|
body |
string, required | Plain text, 1 to 4,000 characters. The server trims leading and trailing whitespace. |
object_id |
integer | Pins the comment to a version in this entry’s lineage. Unknown id: 404 OBJECT_NOT_FOUND. A version from another lineage: 409 LINEAGE_CONFLICT. |
parent_id |
integer | Makes the comment a reply. The parent must be a top-level comment on the same entry, otherwise 422. Unknown id: 404 COMMENT_NOT_FOUND. |
attachment_ids |
array of integers | Up to 10 of your own unattached uploads. See Attachments. |
Returns 201 with the comment. These people get a notification:
- Everyone watching the entry.
- The author of the parent comment, for a reply.
- Everyone the body mentions.
You never get a notification for your own comment. Posting a comment also makes you watch the entry, unless you muted it.
Mentions
Section titled “Mentions”Write @ followed by a teammate’s display name (@Lee Lead) or login name. The server resolves mentions when it saves the comment. Display names match without regard to case. A display name that two people share resolves to nobody, so use the login name for them. Only active people resolve. Text that matches nobody stays plain text and is never an error. Resolved people appear in mentions.
PATCH /comments/{comment_id}
Section titled “PATCH /comments/{comment_id}”{ "body": "Pivot fixed in the next version", "attachment_ids": [] }body is required. attachment_ids is optional. Omit it to keep the current attachments, or send a list to replace them. An attachment you drop goes back to unattached and follows the one-day cleanup rule. Only the author or an admin can edit. Anyone else gets 403 FORBIDDEN. Returns the comment.
The server re-reads mentions on every edit. Only people the edit newly mentions get a notification. People no longer mentioned drop out of mentions.
DELETE /comments/{comment_id}
Section titled “DELETE /comments/{comment_id}”Only the author or an admin can delete (403 FORBIDDEN otherwise). Returns 204. Deleting a top-level comment also deletes its replies and their attachments.
Resolve and reopen
Section titled “Resolve and reopen”POST /comments/{comment_id}/resolve and POST /comments/{comment_id}/unresolve take no body and return the comment. Anyone in the workspace can resolve or reopen a thread. Only top-level comments resolve. A reply gets 422. Repeating a call changes nothing, and a second resolve keeps the original resolved_by. Resolving notifies the comment’s author, unless they resolved it themselves.
Reactions
Section titled “Reactions”PUT /comments/{comment_id}/reactions with {"emoji": "🎉"} adds your reaction and returns 204. Sending the same emoji again changes nothing. DELETE /comments/{comment_id}/reactions/{emoji} removes your reaction and returns 204, also when you had not reacted. URL-encode the emoji in the path.
Allowed emoji: 👍 👎 ❤️ 😄 😮 😢 🎉 🚀 👀 🔥 ✅ ❌. Any other emoji gets 422. Send ❤️ as U+2764 followed by U+FE0F.
Reactions send no notifications and do not appear in the activity feed.
Attachments
Section titled “Attachments”An attachment is a PNG, usually a marked-up screenshot. It belongs to one comment, one review request or one review response.
- Upload the PNG. Send
POST /attachmentswith the raw PNG bytes as the body andContent-Type: image/png. The file can be up to 8 MiB and 16,384 px on each side. A larger file or one that is not a PNG gets422. Returns201with{"id", "width", "height", "size"}. - Optionally upload the editable markup. Send
PUT /attachments/{attachment_id}/strokeswith a JSON document of up to 1 MiB. It holds the shapes your tool drew, so a client can reopen the markup for editing. Only the uploader can do this (403otherwise). An empty body, or a body that is not a UTF-8 JSON object, gets422. Sending it again replaces the document. Returns{"id", "width", "height", "size", "has_strokes"}. - Attach it. Pass the id in
attachment_idson a comment, a review request or a review response. An unknown id is404. An attachment that is already attached is409. Someone else’s upload is403.
GET /attachments/{attachment_id} returns the PNG and GET /attachments/{attachment_id}/strokes returns the JSON. On hosted workspaces both answer 302 to a short-lived presigned URL. Follow it without the Authorization header. The strokes call returns 404 when the attachment has no markup.
Until you attach an upload, only you and admins can read it. Everyone else gets 404. Once attached, everyone in the workspace can read it.
Attach an upload within a day. Prophouse deletes unattached uploads older than a day.
Annotations
Section titled “Annotations”An annotation is a shape drawn over one exact preview or thumbnail file of a version. A regenerated preview is a new file with no annotations, so shapes never shift onto a different image. Prophouse keeps an annotated file for as long as the annotation exists.
Get the file ids from preview_artifact_id and thumbnail_artifact_id on entry detail, and load the image from GET /previews/artifacts/{artifact_id} to draw on.
POST /entries/{entry_id}/annotations
Section titled “POST /entries/{entry_id}/annotations”{ "object_id": 1880, "preview_artifact_id": 5521, "shape": "rect", "geometry": { "x": 0.25, "y": 0.1, "w": 0.2, "h": 0.15 }, "comment_id": 91}| Field | Type | Description |
|---|---|---|
object_id |
integer, required | A version in this entry’s lineage. Unknown id: 404 OBJECT_NOT_FOUND. Another lineage: 409 LINEAGE_CONFLICT. |
preview_artifact_id |
integer, required | A preview or thumbnail file of that version. Anything else is 422. |
shape |
string, required | rect, ellipse, freehand or point3d. |
geometry |
object, required | The shape’s coordinates. See the table below. At most 16 KiB as JSON. |
comment_id |
integer | A top-level comment on the same entry that holds the discussion. A reply or a comment on another entry is 422. |
| Shape | Geometry |
|---|---|
rect, ellipse |
Exactly {x, y, w, h}. Each value is 0 to 1, relative to the image. |
freehand |
Exactly {points: [[x, y], ...]}, with 2 to 2,000 points. Each coordinate is 0 to 1. |
point3d |
Exactly {point: [x, y, z], camera: {...}}. point is a world-space point on a 3D preview. camera is your viewer’s camera object, which the server stores as sent. |
Extra keys, missing keys or out-of-range values get 422. Returns 201:
{ "id": 44, "entry_id": 412, "object_id": 1880, "preview_artifact_id": 5521, "comment_id": 91, "shape": "rect", "geometry": { "x": 0.25, "y": 0.1, "w": 0.2, "h": 0.15 }, "author": { "id": 7, "name": "<user>", "display_name": "Sam Rigger" }, "created_at": "2026-07-25T12:05:00Z"}Other annotation calls
Section titled “Other annotation calls”| Endpoint | Detail |
|---|---|
GET /entries/{entry_id}/annotations |
Returns {"annotations": [annotation]}, oldest first. Add ?object_id= to list one version’s annotations. |
PATCH /annotations/{annotation_id} |
Body {"comment_id": <id>} links a discussion to an annotation that has none. Anyone in the workspace can do this. An annotation that already has one is 409 CONFLICT. The comment must be top-level on the same entry (422 otherwise). Returns the annotation. |
DELETE /annotations/{annotation_id} |
Only the author or an admin can delete (403 FORBIDDEN otherwise). Returns 204. |
You cannot change an annotation’s shape or geometry. Delete it and draw a new one. Unknown annotation id: 404 ANNOTATION_NOT_FOUND.
Activity
Section titled “Activity”New comments, resolves and reopens, and new annotations appear in the activity feed as comment.create, comment.resolve and annotation.create. A comment.resolve event’s payload carries resolved: true or false. Edits, deletes and reactions add no events.
