curl --request POST \
--url http://localhost/mogl/mogl-backend/api/sendMessage \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"receiver_user_id": 1,
"message": "Hello, how are you?",
"attachment": null,
"has_fixed_attachment": false,
"reply_id": 1,
"athlete_id": 123,
"job_id": 1,
"milestone_id": 1,
"milestone_athlete_rel_id": 1,
"addChatWithApproval": false,
"from_mass_messaging": false
}
'curl --request POST \
--url http://localhost/mogl/mogl-backend/api/sendMessage \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"receiver_user_id": 1,
"message": "Hello, how are you?",
"attachment": null,
"has_fixed_attachment": false,
"reply_id": 1,
"athlete_id": 123,
"job_id": 1,
"milestone_id": 1,
"milestone_athlete_rel_id": 1,
"addChatWithApproval": false,
"from_mass_messaging": false
}
'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.
Receiver user ID (NOT receiver_id)
1
"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
If true, uses attachment as-is (no upload)
false
Chat reply reference ID
1
Agent acting on behalf of athlete
123
Job ID for deliverable approval flow
1
Milestone ID for approval flow
1
Milestone-athlete relation ID
1
Trigger approval insert
Yes, No false
Skip file upload and Pusher event
false
Message sent