Create and send an email

Creates an email record linked to a supported SchoolSet model and dispatches the email through the user email job.

Authentication

AuthorizationBearer

The signed-in SchoolSet user token sent by the frontend.

Request

This endpoint expects an object.
tostringRequiredformat: "email"
titlestringRequired
emaillist of stringsRequired
model_nameenumRequired
Allowed values:
model_idintegerRequired
fromstring or nullOptionalformat: "email"

Response

The email record was created and queued successfully.
statusstringOptional
messagestringOptional
datamap from strings to anyOptional

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
500
Internal Server Error