Email’s settings
GET
Whether the server sends email, and through which mail server: its host, port and TLS, whether it signs in, the sender’s address and name. Never the user or the password. Read-only: the settings are in the environment (CCMS_MAIL_*). Needs the admin.roles permission.
bearerheader
AuthorizationBearer <JWT>A service account's token (ccms_sat_…, issued by POST /service-accounts/{id}/tokens), or, for local use and demo mode, the server's shared CCMS_API_TOKEN.
X-Ccms-User?stringDemo mode only (CCMS_AUTH_MODE=demo): the user ID to act as. The bearer token is still required; without demo mode the header is refused (400).
application/vnd.api+json- response
data*id is always instance. Read-only: the settings are in the environment.
curl -X GET 'http://localhost:3000/mail'Example Response
{ "data": { "type": "MailSettings", "id": "string", "attributes": { "state": "on", "host": "string", "port": -9007199254740991, "tls": "implicit", "authenticated": true, "from": "string", "senderName": "string", "language": "en" } }}