GET /api/v1/user/find/{id}

Retrieve user information by their unique identifier. Returns comprehensive user profile data.

Path parameters

  • id string Required

    The unique identifier (UUID) of the target user

Responses

  • 200 application/json

    User found and retrieved successfully

  • 400 application/json

    Invalid user ID format provided

  • 401 application/json

    Authentication token required

  • 404 application/json

    User not found with the provided ID

GET /api/v1/user/find/{id}
curl \
 --request GET 'https://api.echoplain.social/api/v1/user/find/user-uuid-123e4567-e89b-12d3-a456-426614174000'
Response examples (200)
{
  "id": "user-uuid-123e4567-e89b-12d3-a456-426614174000",
  "role": "LECTURER",
  "email": "jane.smith@university.edu",
  "phone": "+254712345679",
  "status": "ACTIVE",
  "lastname": "Smith",
  "createdAt": "2024-01-10T08:15:00Z",
  "firstname": "Jane",
  "updatedAt": "2024-01-20T14:45:00Z",
  "instituteid": "institute-uuid-here"
}
Response examples (400)
{
  "error": "Bad Request",
  "message": "Invalid UUID format",
  "statusCode": 400
}
Response examples (401)
{
  "error": "Unauthorized",
  "message": "Unauthorized",
  "statusCode": 401
}
Response examples (404)
{
  "error": "Not Found",
  "message": "User not found",
  "statusCode": 404
}