Send a test email
POST
Queues a test email to the signed-in administrator’s own address, in language (else the installation’s), with the branding. It is sent in the background, as every email is, and retried; a failure for good is recorded as mail.failed. Recorded as mail.test. 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- body
data*application/vnd.api+json- response
data*id is the message’s ID (a UUID), as the audit log names it.
curl -X POST 'http://localhost:3000/mail/test' \ -H 'Content-Type: application/vnd.api+json' \ -d '{ "data": { "type": "MailTest" }}'Example Response
{ "data": { "type": "MailMessage", "id": "string", "attributes": { "template": "test", "to": "string", "language": "en", "status": "queued" } }}