Create and send an SMS

Creates an SMS record for a supported model, resolves recipient user data, and dispatches the school SMS operation.

Authentication

AuthorizationBearer

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

Request

This endpoint expects an object.
tostringRequired
titlestringRequired
smsstringRequired
model_nameenumRequired
model_iddoubleRequired
to_user_model_namestringRequired
to_user_model_iddoubleRequired
fromstring or nullOptional

Optional sender; the configured service account may override it.

Response

SMS record was created and sending was queued.
statusstringOptional
messagestringOptional
dataobjectOptional

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error