Skip to main content
POST
/
fetchChatById
Fetch chat by ID
curl --request POST \
  --url http://localhost/mogl/mogl-backend/api/fetchChatById \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "message_id": 1,
  "chat_id": 1,
  "updateRead": true,
  "athlete_id": 123
}
'

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

Message/conversation ID

Example:

1

chat_id
integer

Specific chat row ID

Example:

1

updateRead
boolean

If false, marks chat as read

Example:

true

athlete_id
integer

Agent delegation

Example:

123

Response

200

Chat data