Settings endpoints

Change DB DevOps settings, and export or erase what is stored about a person. Paths are relative to the address of your Simcha DB Studio server.

Through the MCP server these endpoints are the Settings tool group, off until an admin turns it on.

While this group is on, the MCP server also offers the lookups its tools need: users_list (List users, from Users and Roles).

MethodPathWhat it does
GET/api/db-devops/settingsList the settings
GET/api/db-devops/settings/policy/securityGet the security policy
GET/api/db-devops/settings/policy/mailShow how email is sent
GET/api/db-devops/settings/:keyGet a setting
PUT/api/db-devops/settings/:keySet a setting
POST/api/db-devops/settings/batchSet several settings
DELETE/api/db-devops/settings/:keyDelete a setting
GET/api/data-protection/export/:userIdExport the data stored about a user
DELETE/api/data-protection/erase/:userIdErase a user and their personal data
GET/api/data-protection/access/:userIdSummarize the data stored about a user

GET /api/db-devops/settings

Returns every stored setting as an object of keys and values. Secret values are redacted.

Reads only · Role: Any signed-in user · MCP tool: settings_list

No inputs.

GET /api/db-devops/settings/policy/security

Returns the security policy in force (session timeout, sign-in attempts and lockout, password length and complexity, sign-out on inactivity) with the allowed range of each number.

Reads only · Role: Admin · MCP tool: settings_security_policy

No inputs.

GET /api/db-devops/settings/policy/mail

Returns whether outgoing email is set up, how it is sent, the sender address, which messages are sent to whom, and the host of the alert webhook.

Reads only · Role: Admin · MCP tool: settings_mail_status

No inputs.

GET /api/db-devops/settings/:key

Returns one setting and its value, with secret values redacted.

Reads only · Role: Any signed-in user · MCP tool: settings_get

InputTypeDescription
key (path)string, requiredThe setting key

PUT /api/db-devops/settings/:key

Saves the value of a setting, creating it when it is new, and returns it. AI settings (keys starting with ai_ or agents_) and MCP server settings (mcp_) are refused; they have their own endpoints. Values are checked for these keys: allow_self_approval takes true or false; default_required_approvers a whole number from 1 to 10; sessionTimeoutMinutes 1 to 1440; maxLoginAttempts 1 to 100; lockoutDurationMinutes 1 to 1440; minPasswordLength 12 to 200; enforcePasswordComplexity and autoLogoutOnInactivity true or false.

Changes data · Role: Admin · MCP tool: settings_set

InputTypeDescription
key (path)string, requiredThe setting key
value (body)string or number or boolean or object or null, requiredThe value, any JSON value
description (body)string, optionalWhat the setting is for. Saved only when the setting is new

POST /api/db-devops/settings/batch

Saves several settings at once, all or none. AI settings (keys starting with ai_ or agents_) and MCP server settings (mcp_) are refused; they have their own endpoints. Values are checked for these keys: allow_self_approval takes true or false; default_required_approvers a whole number from 1 to 10; sessionTimeoutMinutes 1 to 1440; maxLoginAttempts 1 to 100; lockoutDurationMinutes 1 to 1440; minPasswordLength 12 to 200; enforcePasswordComplexity and autoLogoutOnInactivity true or false.

Changes data · Role: Admin · MCP tool: settings_set_many

InputTypeDescription
settings (body)object, requiredThe settings to save, as keys and their JSON values

DELETE /api/db-devops/settings/:key

Deletes a stored setting. A setting with a default, such as those of the security policy, goes back to it. AI and MCP server settings (keys starting with ai_, agents_ or mcp_) are refused.

Changes data and can remove or overwrite it · Role: Admin · MCP tool: settings_delete

InputTypeDescription
key (path)string, requiredThe setting key

GET /api/data-protection/export/:userId

Downloads a JSON file of what is stored about a user: the account, their activity in the audit log and their sign-in history, for a data portability request.

Reads only · Role: Admin · MCP tool: settings_export_user_data · Returns a file

InputTypeDescription
userId (path)string (uuid), requiredThe user ID

DELETE /api/data-protection/erase/:userId

For an erasure request: deletes the user account, replaces their email in the audit log with ERASED and clears the IP addresses there, and clears the IP addresses and browser details of their sign-in records. Sends a security alert. This cannot be undone.

Changes data and can remove or overwrite it · Role: Admin · MCP tool: settings_erase_user_data

InputTypeDescription
userId (path)string (uuid), requiredThe user ID

GET /api/data-protection/access/:userId

Returns a user's account, the kinds of data stored about them with record counts, and how long each kind is kept, for a data access request.

Reads only · Role: Admin · MCP tool: settings_user_data_summary

InputTypeDescription
userId (path)string (uuid), requiredThe user ID