Skip to main content

Read mail configuration

Read mail configuration. GET /api/openapi/v1/mail-servers/current, scope admin.v1.mail-settings.read.

  • Scope: admin.v1.mail-settings.read
  • Permission: Read enterprise mail (mail-settings)
  • Permission type: Read
  • Endpoint: GET/api/openapi/v1/mail-servers/current
Returns the custom SMTP enabled state and the availability of the system mail service. A deployment that provides the system service uses it when custom SMTP is disabled.

Authentication and request headers

Call with an application API key. This endpoint checks only the scope above; read, manage and execute permissions do not imply one another.
NameLocationTypeRequiredDescriptionExample
AuthorizationheaderstringYesApplication API key, passed as a Bearer token.Bearer qwk_***
X-Request-IdheaderstringNoOptional request tracing identifier; generated by the server if omitted.req-20260831-001

Request parameters

This endpoint has no additional request parameters.

Request example

cURL

Responses

200 OK
NameTypeRequiredDescriptionExample
auth_enabledbooleanYesServer requires authenticationfalse
ca_pemstringYesCustom CA certificate (optional)"<string>"
enabledbooleanYesWhether custom SMTP is enabledfalse
central_availablebooleanYesWhether the deployment provides the system mail servicetrue
delivery_availablebooleanYesWhether custom SMTP or the system service is available for deliverytrue
configuredbooleanYesWhether configuration is presentfalse
from_addressstringYesSender email"<string>"
from_namestringYesDisplay name"<string>"
hoststringYesSMTP host"<string>"
last_testOpenapifacadeMailTestResultNoLast test result{"at":"2026-08-27T10:00:00Z","code":"<string>","server_version":0,"status":"unknown","template_id":"<string>"}
last_test.atstring · date-timeYesTest time"2026-08-27T10:00:00Z"
last_test.codestringYesError code"<string>"
last_test.server_versioninteger · int64YesMail server configuration version0
last_test.statusstringYesTest status"unknown"
last_test.template_idstringNoTemplate ID"<string>"
password_configuredbooleanYesWhether a password is configuredfalse
portinteger · int64YesPort0
providerstringYesMail delivery provider"central"
tls_modestringYesEncryption mode"tls"
updated_atstring · date-timeNoUpdated at"2026-08-27T10:00:00Z"
usernamestringYesAuthentication account"<string>"
versioninteger · int64YesVersion used for concurrent update checks0
Response example
default Flat business error
NameTypeRequiredDescriptionExample
codestringNoStable business error code"<string>"
detailstringYesHuman-readable error description"<string>"
detailsOpenapiErrorDetailsNoTest result details{"field":"<string>","reason":"<string>","suggestion":"<string>"}
details.fieldstringNoRequest field that failed validation"<string>"
details.reasonstringNoStable validation failure reason"<string>"
details.suggestionstringNoSuggested normalized value"<string>"
errorstringYesStable HTTP error type"<string>"
Response example