Skip to main content
POST
Send mass message to multiple users

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:
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