Skip to main content

Endpoints

MethodPathAuth Required
GET/api/dashboard/infoADMIN only

GET /api/dashboard/info

Returns a snapshot of platform-wide statistics including aggregate counts and detailed object lists for users, events, categories, and reports. Auth: Bearer token required. Role: ADMIN only.
This endpoint is restricted to the ADMIN role. Any request from a non-admin authenticated user will receive 403 Forbidden.

Response Fields

status
boolean
Indicates whether the request was successful.
statusCode
integer
HTTP status code of the response.
message
string
Human-readable message describing the result.
data
object
The dashboard statistics object.

Example

curl -X GET "https://api.meetpoint.com/api/dashboard/info" \
  -H "Authorization: Bearer <admin-token>"

Example Response

{
  "status": true,
  "statusCode": 200,
  "message": "Dashboard info retrieved successfully.",
  "data": {
    "usersCount": 120,
    "eventsCount": 45,
    "attendancesCount": 310,
    "commentsCount": 87,
    "users": [
      {
        "id": "user-id-string",
        "fullName": "Jane Doe",
        "email": "jane@example.com",
        "roles": ["USER"]
      }
    ],
    "events": [
      {
        "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "title": "Jazz Night",
        "description": "An evening of live jazz music.",
        "attendancesCount": 25,
        "commentsCount": 8,
        "publicationDate": "2026-03-01T18:00:00Z"
      }
    ],
    "categories": [
      {
        "id": "a1b2c3d4-1234-5678-abcd-ef1234567890",
        "name": "Music",
        "description": "Events related to music and concerts",
        "createdDate": "2026-01-15T10:00:00Z"
      }
    ],
    "reports": [
      {
        "id": "b2c3d4e5-2345-6789-bcde-f12345678901",
        "reporterName": "John Smith",
        "organizerName": "Bad Organizer",
        "reason": "This organizer cancelled the event without notice.",
        "reportDate": "2026-03-10T14:30:00Z"
      }
    ]
  }
}

Build docs developers (and LLMs) love