Retrieve the user’s profile.
Requires a valid authentication token in the AUTH header.
Authentication token (JWT) obtained from the /auth/login endpoint
Example Request
curl -X GET "https://api.scorton.tech/users/me" \
-H "AUTH: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
Example Response
Success Response
| Status | Description |
|---|
| 200 | Returns the authenticated user’s details |
Error Responses
| Status | Description | Example |
|---|
| 401 | Missing or invalid token | { "detail": "Unauthorized: Invalid or expired token." } |
| 403 | Account not validated yet | { "detail": "Forbidden: Account is not validated yet." } |
| 404 | User not found | { "detail": "Not Found: User does not exist." } |