Notifications and watches
Every call on this page reads or changes the inbox, preferences and watches of the person the key belongs to. Nobody can read another person’s inbox, admins included. The GET routes work with any key. Every POST, PUT and DELETE here needs a write-scoped key. A read-only key gets 403 FORBIDDEN.
| Method and path | Purpose |
|---|---|
GET /notifications |
Your inbox, newest first |
GET /notifications/unread-count |
Number of unread items |
POST /notifications/read |
Mark items read |
POST /notifications/seen |
Mark items seen without marking them read |
GET /notifications/prefs, PUT /notifications/prefs |
Turn reasons off or on |
GET, PUT, DELETE /entries/{entry_id}/watch |
Your watch state on one prop |
GET /watches |
Props you watch or muted |
For how the inbox looks in the apps, see Notifications and watching. Agents use the get_notifications, mark_notifications_read and watch_prop tools.
Reasons
Section titled “Reasons”Each notification has a reason.
| Reason | You get it when |
|---|---|
review.requested |
Someone adds you as a reviewer on a new review request, or adds you to an open one. |
review.responded |
A reviewer responds to your review request. |
review.assigned |
Someone assigns a review to you, or a reviewer requests changes and assigns them to you. When the reviewer names no assignee, the requester gets review.assigned. |
review.mention |
Someone mentions you in a review request note or response note. |
comment.mention |
Someone mentions you in a comment, or edits a comment to add a mention of you. |
comment.reply |
Someone replies to a comment you wrote. |
comment.new |
Someone comments on a prop you watch. |
comment.resolved |
Someone resolves a comment you wrote. |
You never get a notification for your own action. When one action reaches you for several reasons, you get one notification with the reason highest in the table. A mention on a prop you watch arrives as comment.mention, not comment.new. Prophouse may add reasons later, so ignore any you do not recognize.
GET /notifications
Section titled “GET /notifications”| Parameter | Type | Description |
|---|---|---|
unread |
boolean | true returns only items with no read_at. Default false. |
cursor |
integer | Returns items older than this id. Pass the previous response’s next_cursor. |
limit |
integer | 1 to 200. Default 50. |
{ "notifications": [ { "id": 802, "reason": "comment.mention", "actor": { "id": 12, "name": "<user>", "display_name": "Lee Lead" }, "entry_id": 412, "lineage_id": "guid:6F9619FF8B86D011B42D00C04FC964FF", "object_id": 1880, "comment_id": 91, "request_id": null, "payload": { "parent_id": null }, "seen_at": null, "read_at": null, "created_at": "2026-07-25T12:00:00Z" } ], "next_cursor": null}next_cursor is the last item’s id when the page is full, and null otherwise. Keep requesting until it is null.
actor is the person who acted, or null if there is none. Comment reasons fill comment_id. Review reasons fill request_id. payload depends on the reason:
| Reasons | payload |
|---|---|
comment.new, comment.reply, comment.mention |
{"parent_id"}, the comment replied to or null |
comment.mention from an edited comment |
{"edited": true} |
comment.resolved |
{} |
review.requested, and review.mention from a request |
{"note"} |
review.responded, review.assigned, and review.mention from a response |
{"response", "derived_state", "note"} |
Prophouse deletes read notifications 90 days after they were created, and all notifications after 365 days.
GET /notifications/unread-count
Section titled “GET /notifications/unread-count”Returns {"unread": 3}, the number of items with no read_at. The query is cheap, so poll it for a badge.
POST /notifications/read
Section titled “POST /notifications/read”Send exactly one of these bodies:
{ "ids": [802, 801] }{ "all": true, "before_id": 802 }ids takes up to 500 ids. Ids that are not yours, or are already read, are skipped. all: true marks every unread item read. Add before_id (the newest id you displayed) to limit it to items with that id or lower, so an item that arrived after you loaded the list stays unread. before_id works only with all.
Sending both ids and all, neither, or before_id with ids returns 422 VALIDATION.
The response gives the number of items changed and your new unread count:
{ "updated": 2, "unread": 1 }POST /notifications/seen
Section titled “POST /notifications/seen”Sets seen_at on your items that have none. The body is optional: {"before_id": 802} limits it to items with that id or lower. The response is {"updated": <n>}.
Seen and read are separate. This call does not set read_at and does not change the unread count.
Preferences
Section titled “Preferences”All reasons are on by default. GET /notifications/prefs returns the overrides you stored and the list of known reasons:
{ "prefs": [{ "reason": "comment.new", "enabled": false }], "reasons": ["review.requested", "review.responded", "review.assigned", "review.mention", "comment.mention", "comment.reply", "comment.new", "comment.resolved"]}PUT /notifications/prefs replaces all your overrides with the list you send, up to 32 items:
{ "prefs": [{ "reason": "comment.new", "enabled": false }] }Reasons you leave out are on. {"reason": "*", "enabled": false} turns off every reason. Send {"prefs": []} to clear all overrides. An unknown reason returns 422 VALIDATION. The response has the same shape as GET: prefs, your stored overrides sorted by reason, and the reasons list.
A disabled reason stops new notifications with that reason. Items already in your inbox stay.
Watches
Section titled “Watches”Watching a prop sends you comment.new for every new comment on it. Watching does not affect review notifications.
You watch a prop without a stored choice when you created it. Prophouse also starts watching a prop for you when you:
- comment on it,
- request a review on it, or are named as a reviewer when someone requests one,
- respond to a review on it.
Prophouse never replaces a stored choice when it starts a watch this way. If you muted a prop, commenting or reviewing does not unmute it.
| Endpoint | Body | Response |
|---|---|---|
GET /entries/{entry_id}/watch |
None | Watch state |
PUT /entries/{entry_id}/watch |
{"state": "watching"} or {"state": "muted"}. Default watching. |
Watch state |
DELETE /entries/{entry_id}/watch |
None | Watch state after your stored choice is removed |
GET /watches |
None | {"watches": [{entry_id, name, state, reason, created_at}]}, newest first |
A watch state looks like this:
{ "entry_id": 412, "watching": true, "state": "watching", "reason": "manual", "implicit": false }| Field | Values |
|---|---|
watching |
true if you get comment.new for this prop. |
state |
watching, muted, or null when you have no stored choice and did not create the prop. |
reason |
manual (set with PUT), comment or review (started by Prophouse), creator (you created the prop), or null. |
implicit |
true when you watch only because you created the prop and have no stored choice. |
DELETE removes your stored choice. If you created the prop, you go back to watching it. Otherwise you stop watching, until your next comment or review on it starts a new watch. To stop for good, PUT muted instead.
GET /watches lists only stored choices, both watching and muted. Props you watch only as creator do not appear.
The watch routes return 404 ENTRY_NOT_FOUND when the entry does not exist.
