Skip to main content
POST
Send a chat message

Authorizations

Authorization
string
header
required

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

Body

application/json
receiver_user_id
integer

Receiver user ID (NOT receiver_id)

Example:

1

message
string
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

has_fixed_attachment
boolean

If true, uses attachment as-is (no upload)

Example:

false

reply_id
integer

Chat reply reference ID

Example:

1

athlete_id
integer

Agent acting on behalf of athlete

Example:

123

job_id
integer

Job ID for deliverable approval flow

Example:

1

milestone_id
integer

Milestone ID for approval flow

Example:

1

milestone_athlete_rel_id
integer

Milestone-athlete relation ID

Example:

1

addChatWithApproval
enum<string>

Trigger approval insert

Available options:
Yes,
No
Example:

false

from_mass_messaging
boolean

Skip file upload and Pusher event

Example:

false

Response

200

Message sent