Notifications endpoints
Read and clear your notifications, and choose which events notify you. Paths are relative to the address of your Simcha DB Studio server.
Through the MCP server these endpoints are the Notifications tool group, off until an admin turns it on.
| Method | Path | What it does |
|---|---|---|
| GET | /api/notifications | List my notifications |
| GET | /api/notifications/unread-count | Count my unread notifications |
| POST | /api/notifications/:id/read | Mark a notification read |
| POST | /api/notifications/:id/unread | Mark a notification unread |
| DELETE | /api/notifications/read | Delete my read notifications |
| POST | /api/notifications/read-all | Mark all my notifications read |
| DELETE | /api/notifications/:id | Delete a notification |
| GET | /api/notifications/preferences | Get my notification preferences |
| PUT | /api/notifications/preferences | Change my notification preferences |
GET /api/notifications
Lists the caller's notifications, newest first, with whether each one has been read.
Reads only · Role: Any signed-in user · MCP tool: notifications_list
| Input | Type | Description |
|---|---|---|
limit (query) | integer, 1 to 100, optional | How many to return. Default 50 |
offset (query) | integer, 0 or more, optional | How many of the newest to skip, for paging. Default 0 |
GET /api/notifications/unread-count
Returns how many of the caller's notifications are unread.
Reads only · Role: Any signed-in user · MCP tool: notifications_unread_count
No inputs.
POST /api/notifications/:id/read
Marks one of the caller's notifications read and returns it.
Changes data · Role: Any signed-in user · MCP tool: notifications_mark_read
| Input | Type | Description |
|---|---|---|
id (path) | string (uuid), required | The notification ID |
POST /api/notifications/:id/unread
Marks one of the caller's notifications unread and returns it.
Changes data · Role: Any signed-in user · MCP tool: notifications_mark_unread
| Input | Type | Description |
|---|---|---|
id (path) | string (uuid), required | The notification ID |
DELETE /api/notifications/read
Deletes every notification of the caller that has been read and returns how many were deleted.
Changes data and can remove or overwrite it · Role: Any signed-in user · MCP tool: notifications_clear_read
No inputs.
POST /api/notifications/read-all
Marks every unread notification of the caller read and returns how many changed.
Changes data · Role: Any signed-in user · MCP tool: notifications_mark_all_read
No inputs.
DELETE /api/notifications/:id
Deletes one of the caller's notifications.
Changes data and can remove or overwrite it · Role: Any signed-in user · MCP tool: notifications_delete
| Input | Type | Description |
|---|---|---|
id (path) | string (uuid), required | The notification ID |
GET /api/notifications/preferences
Returns which kinds of notification the caller receives. Every kind is on until the caller changes it.
Reads only · Role: Any signed-in user · MCP tool: notifications_preferences_get
No inputs.
PUT /api/notifications/preferences
Saves which kinds of notification the caller receives and returns them. Kinds left out are turned on, so send every kind to keep earlier choices. Refused when a value is not true or false or a kind is unknown.
Changes data · Role: Any signed-in user · MCP tool: notifications_preferences_update
| Input | Type | Description |
|---|---|---|
script_approved (body) | boolean, optional | My script or approval request is fully approved |
script_rejected (body) | boolean, optional | My script or approval request is rejected |
approval_requested (body) | boolean, optional | Someone asks for an approval I can sign |
release_deployed (body) | boolean, optional | A release is signed off |
release_failed (body) | boolean, optional | A release run fails. Nothing sends this kind at present |
script_resubmitted (body) | boolean, optional | A script is submitted again. Nothing sends this kind at present |
approval_signed (body) | boolean, optional | Someone signs my approval request and it still needs more signatures |
snapshot_problem (body) | boolean, optional | A decision snapshot I captured for an approval request failed or is incomplete |