Skip to main content
POST
/
chatMessageInitiate
Initiate new chat conversation
curl --request POST \
  --url http://localhost/mogl/mogl-backend/api/chatMessageInitiate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "user_id": 1
}'

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
user_id
integer

Other user ID to start conversation with (NOT receiver_id)

Example:

1

Response

200

Chat initiated