Platform endpoints

First-run setup, the license, health checks and error reports. Paths are relative to the address of your Simcha DB Studio server.

These endpoints are never available through the MCP server: First-run setup, the license, health checks and error reports are kept out of AI clients.

MethodPathWhat it does
GET/api/setup/statusShow the first-run setup status
POST/api/setup/testTest the metadata database connection
POST/api/setup/runRun first-run setup
POST/api/license/activateActivate a license key
GET/api/license/statusShow the license status
DELETE/api/license/deactivateDeactivate the license
POST/api/license/check-updateCheck for an updated license
GET/api/license/seatsShow seat usage
POST/api/client-errorsReport a browser error
POST/api/report-issueSend an issue report
GET/api/healthCheck server health
GET/api/health/migrationsList applied database migrations
GET/api/openapi.jsonGet the OpenAPI document

GET /api/setup/status

Reports whether first-run setup is still needed: whether the metadata database server and database can be reached, are migrated and have a user, and whether setup can finish them. While setup is needed it also names the configured host, port and database. No sign-in or license is needed.

Reads only · Role: Any signed-in user · Not available through the MCP server

No inputs.

POST /api/setup/test

Tries to reach the configured metadata database server and returns ok with a message that says whether the database will be created during setup. Nothing is changed. Refused with 403 once setup is complete.

Reads only · Role: Any signed-in user · Not available through the MCP server

No inputs.

POST /api/setup/run

Creates the configured metadata database if it is missing, applies the migrations and creates the first administrator. Refused with 403 once setup is complete, 409 when the database server cannot be reached, and 400 when connection details are sent, since the connection always comes from the server configuration.

Changes data · Role: Any signed-in user · Not available through the MCP server

InputTypeDescription
adminEmail (body)string, requiredThe administrator email address
adminPassword (body)string, requiredThe administrator password: 12 to 200 characters with an uppercase and a lowercase letter, a digit and a symbol
adminName (body)string, optionalThe administrator name. Defaults to Administrator

POST /api/license/activate

Checks a license key, registers it to this setup and makes it the active license; on an installation with no users it also creates an administrator named admin and returns its generated password once. Refused when the key is invalid or expired, was issued for or is in use by another setup, was revoked, or cannot be registered. While no usable license is active anyone may call it; after that only administrators.

Changes data · Role: Admin · Not available through the MCP server

InputTypeDescription
licenseKey (body)string, requiredThe license key, starting with SDB-

GET /api/license/status

Returns whether a license is active, its customer, seats, expiry date, days left and end of grace period, whether update checks are available, and the installation ID of this setup. No sign-in is needed.

Reads only · Role: Any signed-in user · Not available through the MCP server

No inputs.

DELETE /api/license/deactivate

Removes the active license, which locks every licensed feature on every server of this setup, and releases the key from this setup through the license service when one is configured. Refused with 404 when no license is active.

Changes data and can remove or overwrite it · Role: Admin · Not available through the MCP server

No inputs.

POST /api/license/check-update

Asks the license service for the newest key of the active license and activates it when there is one; result is current, revoked, unknown or updated. Refused with 409 without LICENSE_SERVICE_URL or an active license. While no usable license is active anyone may call it.

Changes data · Role: Admin · Not available through the MCP server

No inputs.

GET /api/license/seats

Returns the number of seats in the license, null for no limit, and how many are taken. Administrators also get the users who are past the seat count and cannot sign in.

Reads only · Role: Any signed-in user · Not available through the MCP server

No inputs.

POST /api/client-errors

Records an error from the browser app in the server log and answers 204. No sign-in or license is needed.

Changes data · Role: Any signed-in user · Not available through the MCP server

InputTypeDescription
message (body)string, requiredThe error message
name (body)string, optionalThe error name. Defaults to Error
stack (body)string, optionalThe stack trace
source (body)string, optionalWhere in the app the error was caught
componentStack (body)string, optionalThe component stack of a rendering error
url (body)string, optionalThe page address where it happened
userAgent (body)string, optionalThe browser user agent
extra (body)object, optionalAny further details
timestamp (body)string (date-time), optionalWhen the error happened in the browser

POST /api/report-issue

Emails an issue report from the signed-in user to the address in REPORT_ISSUE_EMAIL and sends the reporter an acknowledgement. Answers 503 ISSUE_REPORTING_NOT_CONFIGURED when email or that address is not set up.

Changes data · Role: Any signed-in user · Not available through the MCP server

InputTypeDescription
subject (body)string, optionalThe subject; the first 200 characters are kept. Defaults to Issue report
message (body)string, requiredThe report; the first 10000 characters are kept
context (body)object, optionalWhere the issue happened
context.url (body)string, optionalThe page address; the first 500 characters are kept
context.userAgent (body)string, optionalThe browser user agent; the first 500 characters are kept

GET /api/health

Returns status OK with 200 once the metadata database is connected and migrated, or STARTING with 503 until then, with the server uptime in seconds. No sign-in or license is needed.

Reads only · Role: Any signed-in user · Not available through the MCP server

No inputs.

GET /api/health/migrations

Lists the metadata database migrations that have been applied, each with its file name as version and when it was applied. No sign-in or license is needed.

Reads only · Role: Any signed-in user · Not available through the MCP server

No inputs.

GET /api/openapi.json

Returns an OpenAPI 3.1 document describing every endpoint of this server: inputs, whether each reads or changes data, the role it needs and whether the MCP server offers it.

Reads only · Role: Any signed-in user · Not available through the MCP server

No inputs.