Skip to main content
POST
/
fetchMessages
Fetch chat contacts/message list
curl --request POST \
  --url http://localhost/mogl/mogl-backend/api/fetchMessages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "text": "Jane",
  "unread_only": "N",
  "partner_id": 1,
  "athlete_id": 123,
  "page": 1,
  "limit": 10,
  "page_limit": 10
}
'

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

Search filter on user names

Example:

"Jane"

unread_only
enum<string>

Filter to unread conversations only

Available options:
Y,
N
Example:

"N"

partner_id
integer

Append specific partner conversation

Example:

1

athlete_id
integer

Agent delegation

Example:

123

page
integer
Example:

1

limit
integer
Example:

10

page_limit
integer

Alias for limit

Example:

10

Response

200

Message contacts list