OpenFolia

Email’s settings

GET
/mail

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.

Authorization

bearer
headerAuthorizationBearer <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.

Header Parameters

X-Ccms-User?string

Demo 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).

Response Body

application/vnd.api+json
  1. response
data*

id is always instance. Read-only: the settings are in the environment.

Example Request
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"    }  }}