Source of truth: src/routes/config.ts.
The config API exposes the in-memory runtime settings used by the backend.
Returns the current config snapshot.
- Response
200config: object with the runtime numeric settings
Example:
{
"config": {
"rateLimitPerWindow": 60,
"rateLimitWindowMs": 60000,
"bulkMaxItems": 100,
"eventLogCap": 10000
}
}Updates one or more runtime config fields.
Allowed fields:
rateLimitPerWindowrateLimitWindowMsbulkMaxItemseventLogCap
Each field must be a positive integer, with bulkMaxItems additionally capped at 1000.
- Response
200config: updated runtime config snapshot
Example:
{
"rateLimitPerWindow": 75,
"eventLogCap": 2000
}Example response:
{
"config": {
"rateLimitPerWindow": 75,
"rateLimitWindowMs": 60000,
"bulkMaxItems": 100,
"eventLogCap": 2000
}
}400 invalid_requestbody must be a JSON objectunexpected field: <name><field> must be a positive integerbulkMaxItems must be an integer between 1 and 1000
- The route does not expose a
404path; invalid inputs are reported as400 invalid_request. - The response shape is intentionally stable so callers can read back the full runtime config after any successful update.