Server Configuration API
API to manage server-wide configuration that is mutable at runtime without a restart. Each configuration section is stored under a well-known name. A section is read as three layers: readOnly (declarative, fixed at boot), writable (runtime-mutable, set via PUT), and merged (the effective value in use, derived from the other two). The concrete shape of a section's value is section-specific.
Download the OpenAPI definition (YAML)
Security schemes
OAuth2: oauth2
authorizationCode flow, token URL /oauth2/token, authorization URL /oauth2/authorize
1 scopes
| Scope | Description |
|---|---|
system | Access to system management APIs |
clientCredentials flow, token URL /oauth2/token
1 scopes
| Scope | Description |
|---|---|
system | Access to system management APIs |
management
Manage server-wide configuration (admin)
List server configuration sections
GET /server-config
Returns the names of the supported server-wide configuration sections.
Scopes: system
Responses
| Code | Description | Schema |
|---|---|---|
200 | The supported configuration section names | ServerConfigNameList |
401 | Unauthorized | Error |
500 | Internal server error | Error |
Get a server configuration section
GET /server-config/{name}
Returns a single server-wide configuration section by name as its three layers. All three
layers (readOnly, writable, merged) are always present in the response; the shape of
each layer's value is section-specific.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
name | path | string | Yes | The configuration section name. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | The requested server configuration section | ServerConfigLayers |
400 | Unsupported configuration name | Error |
401 | Unauthorized | Error |
500 | Internal server error | Error |
Update a server configuration section
PUT /server-config/{name}
Replaces the writable layer of the named section with the request body. The value is validated before any write; an invalid value is rejected and nothing is changed. The section is cleared by setting it to an empty value. Returns the recomputed layers.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
name | path | string | Yes | The configuration section name. |
Request body (required): application/json
Schema: ServerConfigValue
Responses
| Code | Description | Schema |
|---|---|---|
200 | The recomputed server configuration section | ServerConfigLayers |
400 | Bad request | Error |
401 | Unauthorized | Error |
500 | Internal server error | Error |
Schemas
ServerConfigValue
Type: any
The value of a configuration section. Its concrete shape is section-specific and may be any valid JSON value (object, array, or scalar). See AccountAccessConfig for the shape of the accountAccess section and NotificationConfig for the notification section.
AccountAccessConfig
Type: object
The value of the accountAccess section: automatic account lock and sign-in recording
settings for each identity category.
Every field is optional. A PUT replaces the entire runtime layer; include all runtime
overrides that must be kept. An omitted field falls back to the deployment base, not the
previous runtime value. Omitting a field is not the same as setting it
to 0: a lock duration of 0 never expires, and a decay of 0 never resets the lock count.
A category that is not included uses the deployment defaults. To turn off locking for a
category, set its default.enabled to false.
The defaults come from the account_access block of the deployment configuration, which
must be valid on its own: an enabled policy there needs its threshold, failure window and lock
durations, or the server does not start. A declarative accountAccess resource, when present,
overrides the defaults and makes the section read-only, so a PUT is rejected with
SCF-1003. Otherwise the stored value overrides the defaults.
Only user and agent can be configured. Applications are never locked, so an
application key is rejected as an unknown field. An enabled policy that cannot form a lock
is rejected with SCF-1003.
notifications configures the account lock email for each category and takes effect without
a restart. Its templates are set only through this section, not the deployment configuration;
the bootstrap stores the defaults. A PUT replaces the stored value, so it must carry the
templates to keep them. The email is sent through the default email sender of the
notification section.
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
user | AccountAccessCategory | Account lock and sign-in recording settings for one identity category. | |
agent | AccountAccessCategory | Account lock and sign-in recording settings for one identity category. |
AccountAccessCategory
Type: object
Account lock and sign-in recording settings for one identity category.
12 properties
| Name | Type | Required | Description |
|---|---|---|---|
lockGranularity | string | What a lock applies to. Allowed values: | |
recordLastLogin | boolean | Whether to record Recording adds a write to the sign-in path, so it is off unless enabled. The server does not use the value itself; it helps find inactive identities. | |
lastLoginResolutionSeconds | integer | Minimum time between two | |
default | AccountAccessPolicy | The lock policy applied to every authentication method in this category. | |
default.enabled | boolean | Whether automatic locking applies. Defaults to | |
default.threshold | integer | Number of failures that forms a lock. The count restarts after | |
default.failureWindowSeconds | integer | Time without a failure after which the failure count resets. | |
default.lockDurationsSeconds | array of integer | Lock duration for each consecutive lock, in order. The last entry applies to every later
lock. An entry of | |
default.lockDecaySeconds | integer | Time after a lock ends before the consecutive lock count resets to zero. | |
default.maxConsecutiveFailures | integer | Failures with no success in between, counted per authentication method (or for the whole
account under | |
notifications | AccountAccessNotifications | Notices sent to the account holder. Kept separate from the lock policy, so turning the email off does not change the policy and turning locking off does not change the email setting. Only the | |
notifications.onLock | object |
AccountAccessNotifications
Type: object
The notices a category sends, keyed by event.
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
onLock | object | ||
onLock.email | AccountAccessLockEmail | The email sent when an account is locked automatically. It goes to the user type's primary
email; a user whose type has no primary email, or who has no value for it, gets no email. The
sender is not set here: the email goes through the |
AccountAccessLockEmail
Type: object
The email sent when an account is locked automatically. It goes to the user type's primary
email; a user whose type has no primary email, or who has no value for it, gets no email. The
sender is not set here: the email goes through the notification section's
defaultEmailSenderId.
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
enabled | boolean | Whether to send the email when a lock forms. Enabled for users by default. | |
templates | AccountAccessLockTemplates | The email notification templates the lock email uses, set only through this section; the
bootstrap stores the defaults. A template can use |
AccountAccessLockTemplates
Type: object
The email notification templates the lock email uses, set only through this section; the
bootstrap stores the defaults. temporary and permanent serve every lock, account
overrides them for a lock on every sign-in method, and methods
overrides them for a lock on one sign-in method. An override field that is not set uses the
default. With no template for a lock, no email is sent.
A template can use {{ctx(lockedAuthenticationMethod)}}, the sign-in method that locked
(credential or otp, empty for a lock on every sign-in method), {{ctx(lockDuration)}}
and {{ctx(unlockTime)}}, the time a temporary lock lifts in UTC. The method is not
translated; to word each method in its own language, set a template for each in methods.
8 properties
| Name | Type | Required | Description |
|---|---|---|---|
temporary | string | Handle of the template for a lock that expires. The bootstrap sets | |
permanent | string | Handle of the template for a lock that does not expire. The bootstrap sets
| |
account | AccountAccessTemplatePair | Templates for a lock on every sign-in method. The bootstrap sets | |
account.temporary | string | Handle of the template for a lock that expires. | |
account.permanent | string | Handle of the template for a lock that does not expire. | |
methods | object | Templates for a lock on one sign-in method. The bootstrap sets none. | |
methods.credential | AccountAccessTemplatePair | The templates for a lock that expires and for one that does not. | |
methods.otp | AccountAccessTemplatePair | The templates for a lock that expires and for one that does not. |
AccountAccessTemplatePair
Type: object
The templates for a lock that expires and for one that does not.
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
temporary | string | Handle of the template for a lock that expires. | |
permanent | string | Handle of the template for a lock that does not expire. |
AccountAccessPolicy
Type: object
The lock policy for a category, applied to every authentication method.
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
enabled | boolean | Whether automatic locking applies. Defaults to | |
threshold | integer | Number of failures that forms a lock. The count restarts after | |
failureWindowSeconds | integer | Time without a failure after which the failure count resets. | |
lockDurationsSeconds | array of integer | Lock duration for each consecutive lock, in order. The last entry applies to every later
lock. An entry of | |
lockDecaySeconds | integer | Time after a lock ends before the consecutive lock count resets to zero. | |
maxConsecutiveFailures | integer | Failures with no success in between, counted per authentication method (or for the whole
account under |
NotificationConfig
Type: object
The value of the notification section. A declarative notification resource that names a
sender locks the section: a PUT is then rejected with SCF-1003. An unknown field is
rejected with SCF-1003.
1 property
| Name | Type | Required | Description |
|---|---|---|---|
defaultEmailSenderId | string | The email sender ( |
ServerConfigLayers
Type: object
A configuration section as its three layers. readOnly is the declarative value fixed at boot,
writable is the runtime-mutable value set via PUT, and merged is the effective value in
use — the merge of the other two. Every layer is always present; each value's shape is
section-specific.
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
readOnly | ServerConfigValue | Yes | Declarative layer fixed at boot. |
writable | ServerConfigValue | Yes | Runtime-mutable layer set via |
merged | ServerConfigValue | Yes | Effective value in use — the merge of the readOnly and writable layers. |
I18nMessage
Type: object
Internationalized message with translation key and default value.
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
key | string | Yes | Translation key for fetching localized message. |
defaultValue | string | Yes | Default message in English (fallback). |
Error
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | Error code identifying the error condition (e.g. |
message | I18nMessage | Yes | Internationalized message with translation key and default value. |
description | I18nMessage | Internationalized message with translation key and default value. |
Was this page helpful?