Settings
Set setting values
Set setting values for specific keys. Masked credential values ("******") read from GET /v1/settings are not accepted: a masked value that matches the stored one is skipped as unchanged, any other value carrying the mask is refused. Send the real credential, or leave the key out to keep the stored value.
post/v1/settings
Request
- Base URL: https://your-emailengine-host
- URL: https://your-emailengine-host/v1/settings
- Auth: HTTP bearer
Headers
x-ee-timeoutinteger
Request timeout in milliseconds. Raises the command timeout above the EENGINE_TIMEOUT default for a long-running request; a value below the default has no effect
Example:30000
Request body
Example request
{
"webhooks": "https://api.example.com/email/webhooks",
"webhookEvents": [
"messageNew"
],
"webhooksCustomHeaders": [
{
"key": "Authorization",
"value": "Bearer <token>"
}
],
"notifyHeaders": [
"List-ID"
],
"serviceUrl": "https://emailengine.example.com",
"notificationBaseUrl": "https://emailengine.example.com/notifications",
"imapIndexer": "full",
"openAiAPIKey": "sk-…",
"openAiModel": "gpt-6-luna",
"openAiAPIUrl": "https://api.openai.com",
"openAiTemperature": 0.8,
"openAiTopP": 0.1,
"openAiReasoningEffort": "low",
"openAiMaxTokens": 30000,
"openAiPrompt": "Return a JSON object with the property \"language\", the ISO 639-1 code of the language the email is written in.",
"serviceSecret": "verysecret",
"authServer": "https://api.example.com/email/auth",
"proxyUrl": "socks5://proxy.example.com:1080",
"httpProxyUrl": "http://proxy.example.com:8080",
"smtpEhloName": "relay.example.com",
"notifyTextSize": 1048576,
"notifyAttachmentSize": 5242880,
"logs": {
"maxLogLines": 10000
},
"sentryDsn": "https://public-key@sentry.example.com/1",
"localAddresses": [
"198.51.100.24"
],
"smtpServerPort": 2525,
"smtpServerHost": "0.0.0.0",
"smtpServerPassword": "verysecret",
"tlsProvisioning": "acme",
"tlsHostnames": [
"smtp.example.com"
],
"apiTLSCertificate": "auto",
"smtpServerTLSCertificate": "auto",
"imapProxyServerTLSCertificate": "auto",
"imapProxyServerPort": 9993,
"imapProxyServerHost": "0.0.0.0",
"imapProxyServerPassword": "verysecret",
"queueKeep": 50,
"deliveryAttempts": 10,
"gmailSubscriptionTtl": 31,
"templateHeader": "<div class=\"brand-bar\">Acme Mail</div>",
"templateHtmlHead": "<link rel=\"stylesheet\" href=\"https://example.com/brand.css\">",
"scriptEnv": "{\"key\":\"value\"}",
"locale": "fr",
"timezone": "Europe/Tallinn",
"pageBrandName": "EmailEngine",
"openAiPreProcessingFn": "return true; // pass every email",
"imapClientName": "EmailEngine",
"imapClientVersion": "1.3.45",
"imapClientVendor": "Postal Systems",
"imapClientSupportUrl": "https://github.com/postalsys/emailengine/issues",
"exportMaxConcurrent": 2,
"exportMaxGlobalConcurrent": 8,
"gmailExportBatchSize": 10,
"outlookExportBatchSize": 20,
"exportMaxMessages": 500000,
"exportMaxSize": 10737418240,
"exportMaxMessageSize": 52428800,
"exportMaxAge": 86400000
}Response
Returns the list of setting keys that were updated.
Example response
{
"updated": [
"notifyHeaders"
]
}Changes
No recorded changes to this operation across all 1 revision of this API.