Skip to main content
POST
/
sendMessageMass
Send mass message to multiple users
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.

Authorizations

Authorization
string
header
required

JWT Bearer token authentication. Use the /api/login endpoint to obtain a token.

Body

application/json
athlete_id
integer[]

Array of athlete user IDs (NOT receiver_ids)

Example:
[123]
message
string

Max 1000 characters

Example:

"Hello, how are you?"

attachment
string

Optional file as base64-encoded string or data URI (e.g. data:image/png;base64,...). Send null if no attachment.

Example:

null

is_all_selected
enum<string>

Select all athletes

Available options:
true,
false
Example:

"false"

excluded_athletes
integer[]

Exclude these athlete IDs when is_all_selected

Example:
[]

Response

200

Mass message sent