Skip to content

Get User Messages

GET /api/admin/user/messages

Fetch all messages for the currently authenticated user.

  • Returns messages in chronological order by default.
  • Can be used to populate dashboards, reminders, or task lists in the frontend.

Authentication / Permissions

  • The user must be authenticated.
  • Only the currently authenticated user’s information is returned.
JavaScript Fetch Example
const response = await fetch('https://uranus.zxy/api/admin/user/messages', {
  method: 'GET',
  headers: {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer YOUR_ACCESS_TOKEN'
  }
});

const data = await response.json();
JSON Response Example
{
  "messages": null
}