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.

MethodPathWhat it does
GET/api/notificationsList my notifications
GET/api/notifications/unread-countCount my unread notifications
POST/api/notifications/:id/readMark a notification read
POST/api/notifications/:id/unreadMark a notification unread
DELETE/api/notifications/readDelete my read notifications
POST/api/notifications/read-allMark all my notifications read
DELETE/api/notifications/:idDelete a notification
GET/api/notifications/preferencesGet my notification preferences
PUT/api/notifications/preferencesChange 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

InputTypeDescription
limit (query)integer, 1 to 100, optionalHow many to return. Default 50
offset (query)integer, 0 or more, optionalHow 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

InputTypeDescription
id (path)string (uuid), requiredThe 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

InputTypeDescription
id (path)string (uuid), requiredThe 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

InputTypeDescription
id (path)string (uuid), requiredThe 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

InputTypeDescription
script_approved (body)boolean, optionalMy script or approval request is fully approved
script_rejected (body)boolean, optionalMy script or approval request is rejected
approval_requested (body)boolean, optionalSomeone asks for an approval I can sign
release_deployed (body)boolean, optionalA release is signed off
release_failed (body)boolean, optionalA release run fails. Nothing sends this kind at present
script_resubmitted (body)boolean, optionalA script is submitted again. Nothing sends this kind at present
approval_signed (body)boolean, optionalSomeone signs my approval request and it still needs more signatures
snapshot_problem (body)boolean, optionalA decision snapshot I captured for an approval request failed or is incomplete