curl --request POST \
--url http://localhost/mogl/mogl-backend/api/sendMessageMass \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"athlete_id": [
123
],
"message": "Hello, how are you?",
"attachment": null,
"is_all_selected": "false",
"excluded_athletes": []
}
'curl --request POST \
--url http://localhost/mogl/mogl-backend/api/sendMessageMass \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"athlete_id": [
123
],
"message": "Hello, how are you?",
"attachment": null,
"is_all_selected": "false",
"excluded_athletes": []
}
'Documentation Index
Fetch the complete documentation index at: https://developer.mogl.online/llms.txt
Use this file to discover all available pages before exploring further.
JWT Bearer token authentication. Use the /api/login endpoint to obtain a token.
Array of athlete user IDs (NOT receiver_ids)
[123]Max 1000 characters
"Hello, how are you?"
Optional file as base64-encoded string or data URI (e.g. data:image/png;base64,...). Send null if no attachment.
null
Select all athletes
true, false "false"
Exclude these athlete IDs when is_all_selected
[]Mass message sent