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.
| Method | Path | What it does |
|---|---|---|
| GET | /api/setup/status | Show the first-run setup status |
| POST | /api/setup/test | Test the metadata database connection |
| POST | /api/setup/run | Run first-run setup |
| POST | /api/license/activate | Activate a license key |
| GET | /api/license/status | Show the license status |
| DELETE | /api/license/deactivate | Deactivate the license |
| POST | /api/license/check-update | Check for an updated license |
| GET | /api/license/seats | Show seat usage |
| POST | /api/client-errors | Report a browser error |
| POST | /api/report-issue | Send an issue report |
| GET | /api/health | Check server health |
| GET | /api/health/migrations | List applied database migrations |
| GET | /api/openapi.json | Get 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
| Input | Type | Description |
|---|---|---|
adminEmail (body) | string, required | The administrator email address |
adminPassword (body) | string, required | The administrator password: 12 to 200 characters with an uppercase and a lowercase letter, a digit and a symbol |
adminName (body) | string, optional | The 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
| Input | Type | Description |
|---|---|---|
licenseKey (body) | string, required | The 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
| Input | Type | Description |
|---|---|---|
message (body) | string, required | The error message |
name (body) | string, optional | The error name. Defaults to Error |
stack (body) | string, optional | The stack trace |
source (body) | string, optional | Where in the app the error was caught |
componentStack (body) | string, optional | The component stack of a rendering error |
url (body) | string, optional | The page address where it happened |
userAgent (body) | string, optional | The browser user agent |
extra (body) | object, optional | Any further details |
timestamp (body) | string (date-time), optional | When 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
| Input | Type | Description |
|---|---|---|
subject (body) | string, optional | The subject; the first 200 characters are kept. Defaults to Issue report |
message (body) | string, required | The report; the first 10000 characters are kept |
context (body) | object, optional | Where the issue happened |
context.url (body) | string, optional | The page address; the first 500 characters are kept |
context.userAgent (body) | string, optional | The 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.