Enterprise
Enterprise
Section titled “Enterprise”Configures enterprise licensing and branding settings.
This object can be configured from the WebUI under Settings › Enterprise
Fields
Section titled “Fields”apiKey
Section titled “apiKey”Type:
SecretKeyOptional· requiredAPI key for license retrieval and automatic renewals. Obtain your API key at https://license.stalw.art.
licenseKey
Section titled “licenseKey”Type:
SecretKeyOptional· requiredUpgrade to the enterprise version of Stalwart by entering your license key here. Obtain your license at https://license.stalw.art/buy
logoUrl
Section titled “logoUrl”Type:
Uri?· enterpriseURL to the default logo to use in the Webadmin interface.
JMAP API
Section titled “JMAP API”The Enterprise singleton is available via the urn:stalwart:jmap capability.
x:Enterprise/get
Section titled “x:Enterprise/get”This is a standard Foo/get method as defined in RFC 8620, Section 5.1.
For singletons, the ids argument should be the literal singleton (or null to return the single instance).
This method requires the sysEnterpriseGet permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:Enterprise/get", { "ids": [ "singleton" ] }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'x:Enterprise/set
Section titled “x:Enterprise/set”This is a standard Foo/set method as defined in RFC 8620, Section 5.3.
For singletons, only the update argument with id singleton is accepted; create and destroy arguments are rejected.
This method requires the sysEnterpriseUpdate permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:Enterprise/set", { "update": { "singleton": { "apiKey": { "@type": "None" } } } }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'stalwart-cli wraps the same JMAP calls. See the CLI reference for installation, authentication, and general usage.
stalwart-cli get EnterpriseUpdate
Section titled “Update”stalwart-cli update Enterprise --field apiKey='{"@type":"None"}'Nested types
Section titled “Nested types”SecretKeyOptional
Section titled “SecretKeyOptional”An optional secret value, or none.
None: No secret. No additional fields.Value: Secret value. Carries the fields ofSecretKeyValue.EnvironmentVariable: Secret read from environment variable. Carries the fields ofSecretKeyEnvironmentVariable.File: Secret read from file. Carries the fields ofSecretKeyFile.
SecretKeyValue
Section titled “SecretKeyValue”A secret value provided directly.
secret
Section titled “secret”Type:
String· required · secretPassword or secret value
SecretKeyEnvironmentVariable
Section titled “SecretKeyEnvironmentVariable”A secret value read from an environment variable.
variableName
Section titled “variableName”Type:
String· requiredEnvironment variable name to read the secret from
SecretKeyFile
Section titled “SecretKeyFile”A secret value read from a file.
filePath
Section titled “filePath”Type:
String· requiredFile path to read the secret from