GET /api/v1/user/me

Retrieve the authenticated user's profile information including personal details, role, and institutional affiliations.

Responses

  • 200 application/json

    Current user profile retrieved successfully

  • 400 application/json

    Default bad request error 400 response

    Hide response attributes Show response attributes object
    • message string Required

      Response message

    • error string Required
    • statusCode number Required
  • 401 application/json

    Authentication token required

GET /api/v1/user/me
curl \
 --request GET 'https://api.echoplain.social/api/v1/user/me'
Response examples (200)
{
  "id": "user-uuid-here",
  "role": "STUDENT",
  "email": "john.doe@university.edu",
  "phone": "+254712345678",
  "status": "ACTIVE",
  "lastname": "Doe",
  "createdAt": "2024-01-15T10:30:00Z",
  "firstname": "John",
  "updatedAt": "2024-01-15T10:30:00Z",
  "instituteid": "institute-uuid-here"
}
Response examples (400)
{
  "message": "string",
  "error": "string",
  "statusCode": 42.0
}
Response examples (401)
{
  "error": "Unauthorized",
  "message": "Unauthorized",
  "statusCode": 401
}